yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Yong HeProperly check switch case. (#5341)307315a73

master
280 B17 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -target spirv
2
3// CHECK: error {{.*}} compile-time constant
4
5uniform uint FillType_Solid = 0u;
6
7[shader("compute")]
8float cs(uniform uint x)
9    : SV_Target
10{
11    switch (x)
12    {
13    case FillType_Solid:
14        return 0.0;
15    }
16    return 0.0;
17}