diff options
Diffstat (limited to 'tests/reflection/sample-index-input.hlsl')
| -rw-r--r-- | tests/reflection/sample-index-input.hlsl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/reflection/sample-index-input.hlsl b/tests/reflection/sample-index-input.hlsl new file mode 100644 index 000000000..edb0690d6 --- /dev/null +++ b/tests/reflection/sample-index-input.hlsl @@ -0,0 +1,15 @@ +//TEST:REFLECTION:-profile ps_5_0 -target hlsl + +// Confirm that we register a shader as sample-rate when +// it declares `SV_SampleIndex` as an input. + +struct PSInput +{ + float4 color : COLOR; + uint sampleIndex : SV_SampleIndex; +}; + +float4 main(PSInput input) : SV_Target +{ + return input.color; +}
\ No newline at end of file |
