blob: edb0690d671937aab8e142376d24594d48226c2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}
|