summaryrefslogtreecommitdiffstats
path: root/tests/reflection/global-uniforms.hlsl
blob: 6d4992db2c1b23c3b035e741aba3b23e68a24ec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//TEST_IGNORE_FILE
//TEST:REFLECTION:-profile ps_4_0 -target hlsl

// Confirm that we handle uniforms at global scope


float4 u;

Texture2D t;
SamplerState s;

cbuffer CB
{
	float4 v;
}

float4 w;

float4 main() : SV_Target
{
	return u + v + w + t.Sample(s, u.xy);
}