summaryrefslogtreecommitdiffstats
path: root/tests/reflection/sample-rate-input.hlsl
blob: f69149df85701f1c4d1e491757cdbdd4e8714e00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//TEST:REFLECTION:-profile ps_5_0 -target hlsl -no-codegen

// 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;
}