17 lines
218 B
WebGPU Shading Language
17 lines
218 B
WebGPU Shading Language
|
@compute @workgroup_size(1)
|
||
|
fn f() {
|
||
|
var i : i32;
|
||
|
var result : i32;
|
||
|
switch(i) {
|
||
|
case 0: {
|
||
|
result = 10;
|
||
|
}
|
||
|
case 1, default: {
|
||
|
result = 22;
|
||
|
}
|
||
|
case 2: {
|
||
|
result = 33;
|
||
|
}
|
||
|
}
|
||
|
}
|