summaryrefslogtreecommitdiffstats
path: root/tests/reflection/reflection0.hlsl
blob: 1f138894ffa95f210cd806db122dcecb5b5dbb1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//TEST:SIMPLE:-profile ps_4_0  -target reflection-json

// Confirm that basic reflection info can be output

float4 use(float4 val) { return val; };
float4 use(Texture2D t, SamplerState s) { return t.Sample(s, 0.0); }

Texture2D 		t;
SamplerState 	s;

cbuffer C
{
	float c;
}

float4 main() : SV_Target
{
	return use(t,s) + use(c);
}