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

// Confirm that shader parameters in imported modules get reflected properly.

__import reflect_imported_code;

Texture2D 		t;
SamplerState 	s;

cbuffer C
{
	float c;
}

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