shader-slang / slang

Making it easier to work with shaders
MIT License
1.79k stars 160 forks source link

Fix SPIRV emit for `Flat` decoration and TessLevel builtin. #4318

Closed csyonghe closed 4 weeks ago

csyonghe commented 4 weeks ago

Clean up the logic to emit Flat decoration for builtin and non-builtin shader inputs so that we don't emit duplicate Flat decorations.

Fix the legalization logic of array-typed system values to allow emitting correct code for SV_TessFactor and SV_InsideTessFactor for spirv.

Closes #4313. Closes #4315.

csyonghe commented 4 weeks ago

Opened #4332 to track development of InputPatch and OutputPatch.