blob: c06cc686abcbb6e25f46fb13c12d6d028b6a4125 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//TEST_DISABLED:CROSS_COMPILE: -profile ps_5_0 -entry main -target spirv-assembly
// Note: disabled pending IR-based translation of the `Sample()`
// operation for Vulkan.
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;
}
|