shader-slang / slang

Making it easier to work with shaders
MIT License
2.06k stars 177 forks source link

[Metal] global static array. #4373

Closed csyonghe closed 3 months ago

csyonghe commented 3 months ago

We currently generate invalid metal code where there is a global static constant array. For example, tests/compute/static-const-array.slang does not compile to valid metal.

Metal requires global constant arrays to be defined in constant address space, but we are missing address space declarations in our output.