summaryrefslogtreecommitdiffstats
path: root/tests/reflection/sample-rate-input.hlsl
blob: 0545afb0294fd1b475e97e549c94b439b238e3ce (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 (not necessarly *uses*) a `sample` qualified input

struct PSInput
{
    float4 extra : EXTRA;
	sample float4 color : COLOR;
};

float4 main(PSInput input) : SV_Target
{
	return input.extra + input.color;
}