shader-slang / slang

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

Implement for `kIROp_ImageSubscript` (GLSL/SPIRV/Metal) Multisampling support #4404

Closed ArielG-NV closed 3 months ago

ArielG-NV commented 3 months ago

Problem: Currently the following code does not compile correctly:

RWTexture2DArrayMS<int4> outputTexture4;
...
outputTexture4[0, 0].xz = int2(1,2); // fails
outputTexture4[int3(0, 0, 1), 1].xz = int2(3,4); //fail

Expected Behavior: Code compiles correctly.