dawn-cmake/test/tint/statements/switch/only_default_case.wgsl.expe...

12 lines
145 B
WebGPU Shading Language
Raw Permalink Normal View History

@compute @workgroup_size(1)
fn f() {
var i : i32;
var result : i32;
switch(i) {
default: {
result = 44;
break;
}
}
}