2022-01-19 22:46:57 +00:00
|
|
|
@stage(compute) @workgroup_size(1)
|
2021-11-05 20:39:07 +00:00
|
|
|
fn f() {
|
|
|
|
var i : i32;
|
|
|
|
var result : i32;
|
|
|
|
switch(i) {
|
|
|
|
case 0: {
|
|
|
|
result = 10;
|
|
|
|
}
|
|
|
|
case 1: {
|
|
|
|
result = 22;
|
|
|
|
}
|
|
|
|
case 2: {
|
|
|
|
result = 33;
|
|
|
|
}
|
|
|
|
default: {
|
|
|
|
result = 44;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|