Closed ArielG-NV closed 1 day ago
fixes: #4468 fixes: tests\bugs\gh-2959.slang, part of https://github.com/shader-slang/slang/issues/4291
tests\bugs\gh-2959.slang
problem: legalizeArrayReturnType does not assign an address space to an expected pointer argument of an automatically generated/modified function.
legalizeArrayReturnType
solution: Remove returned-array-legalization pass for metal, then we won't generate a function that requires legalization.
The higher level question is, do we really need legalizeArrayReturnType for metal?
Let me test if we can remove the pass for metal.
fixes: #4468 fixes:
tests\bugs\gh-2959.slang
, part of https://github.com/shader-slang/slang/issues/4291problem:
legalizeArrayReturnType
does not assign an address space to an expected pointer argument of an automatically generated/modified function.solution: Remove returned-array-legalization pass for metal, then we won't generate a function that requires legalization.