summaryrefslogtreecommitdiffstats
path: root/tests/bugs/gh-3643.slang
blob: 5d8d8191c8aeb00263e1595cc3c05b95795af96d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//TEST:SIMPLE(filecheck=CHECK): -target spirv -entry PSMain -stage fragment
struct PSInput
{
	float4 color : COLOR;
};

// CHECK: OpEntryPoint

float4 PSMain(PSInput input) : SV_TARGET
{
    const int nTaps = 2;
    const float flOffsets[ nTaps ] = { 0.0, 0.1 };
    return input.color.rgba + flOffsets[0].xxxx;
}