summaryrefslogtreecommitdiffstats
path: root/tests/bugs/gh-5321.slang
blob: 6bb1de1a7467434cbf03294e73ac8d3574058af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//TEST:SIMPLE(filecheck=CHECK): -target spirv

// CHECK: error {{.*}} compile-time constant

uniform uint FillType_Solid = 0u;

[shader("compute")]
float cs(uniform uint x)
    : SV_Target
{
    switch (x)
    {
    case FillType_Solid:
        return 0.0;
    }
    return 0.0;
}