summaryrefslogtreecommitdiff
path: root/tests/cross-compile/compile-time-loop.slang
blob: aae35f09e2edecb71128ef128a40e191f9190c32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//TEST:CROSS_COMPILE: -profile ps_5_0 -entry main -target spirv-assembly

Texture2D t;
SamplerState s;

float4 main(float2 uv) : SV_Target
{
	float4 result = 0;
	$for(i in Range(0,5))
	{
		result += t.Sample(s, uv, int2(i - 2, 0));
	}
	return result;
}