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; }