diff options
| author | Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> | 2024-11-18 16:34:03 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-18 13:34:03 -0800 |
| commit | ec5e019fa9732b99b75b2a3ca4f2ff5a7a3d2f33 (patch) | |
| tree | f314f5b16ad18dd3325a7c3a4228242d6d448752 /source/slang/slang-ir-specialize-resources.cpp | |
| parent | 05903f708856a70d68bf41bbfb2b06620508dee0 (diff) | |
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
Diffstat (limited to 'source/slang/slang-ir-specialize-resources.cpp')
| -rw-r--r-- | source/slang/slang-ir-specialize-resources.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-ir-specialize-resources.cpp b/source/slang/slang-ir-specialize-resources.cpp index 56f468ac7..22cd9cb3f 100644 --- a/source/slang/slang-ir-specialize-resources.cpp +++ b/source/slang/slang-ir-specialize-resources.cpp @@ -1308,6 +1308,9 @@ bool specializeResourceUsage(CodeGenContext* codeGenContext, IRModule* irModule) bool isIllegalGLSLParameterType(IRType* type) { + if (auto arrayType = as<IRArrayTypeBase>(type)) + return isIllegalGLSLParameterType(arrayType->getElementType()); + if (as<IRParameterGroupType>(type)) return true; if (as<IRHLSLStructuredBufferTypeBase>(type)) |
