shader-slang / slang

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

Capabilities System: Check if set capabilities are incompatible with the current target/stage, error if not compatible #4422

Open ArielG-NV opened 3 months ago

ArielG-NV commented 3 months ago

Currently if we set capabilities of a compile to SPIRV_1_5 but we compile with HLSL, Slang will ignore SPIRV_1_5. This should be an error.

This logic should apply the same for if we compile with cs_5_0 but our target stage is fragment