From ec5e019fa9732b99b75b2a3ca4f2ff5a7a3d2f33 Mon Sep 17 00:00:00 2001 From: Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> Date: Mon, 18 Nov 2024 16:34:03 -0500 Subject: Add `IDifferentiablePtrType` support for arrays (#5576) * Add `IDifferentiablePtrType` support for arrays - Also fixes an issue with spirv-emit of constructors that contain references to global params * Fix GLSL legalization for arrays of resource types --- source/slang/diff.meta.slang | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/slang/diff.meta.slang') diff --git a/source/slang/diff.meta.slang b/source/slang/diff.meta.slang index 6042ff5cc..1200aef42 100644 --- a/source/slang/diff.meta.slang +++ b/source/slang/diff.meta.slang @@ -1241,6 +1241,12 @@ extension Array : IDifferentiable } } +__generic +extension Array : IDifferentiablePtrType +{ + typedef Array Differential; +} + __generic extension Tuple : IDifferentiable { -- cgit v1.2.3