summaryrefslogtreecommitdiffstats
path: root/tests/reflection/parameter-block.slang
blob: c20337480ffc67bcccc48f8c9f7e9d819d0425cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//TEST:REFLECTION:-profile glsl_fragment -target glsl

// Confirm that we do parameter binding correctly
// when we have both a parameter block *and* user-defined
// resource parameters that both need automatic
// binding allocation.

struct Helper
{
	Texture2D t;
	SamplerState s;	
};

ParameterBlock<Helper> a;

Texture2D b;

float4 main() : SV_target
{ return 0.0; }