yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
69cb6e8f3
master
1//TEST:REFLECTION:-profile ps_5_0 -target hlsl -no-codegen 2 3// Confirm that we register a shader as sample-rate when 4// it declares `SV_SampleIndex` as an input. 5 6struct PSInput 7{ 8float4 color : COLOR ; 9uint sampleIndex : SV_SampleIndex ; 10}; 11 12float4 main ( PSInput input ) : SV_Target 13{ 14return input . color ; 15}