2022-06-07 13:55:34 +00:00
|
|
|
@compute @workgroup_size(1)
|
2021-07-29 18:05:19 +00:00
|
|
|
fn f() {
|
|
|
|
var i : i32;
|
2021-11-05 20:39:07 +00:00
|
|
|
var result : i32;
|
2021-07-29 18:05:19 +00:00
|
|
|
switch(i) {
|
|
|
|
case 0: {
|
2021-11-05 20:39:07 +00:00
|
|
|
result = 10;
|
|
|
|
}
|
|
|
|
case 1: {
|
|
|
|
result = 22;
|
|
|
|
}
|
|
|
|
case 2: {
|
|
|
|
result = 33;
|
2021-07-29 18:05:19 +00:00
|
|
|
}
|
|
|
|
default: {
|
2021-11-05 20:39:07 +00:00
|
|
|
result = 44;
|
2021-07-29 18:05:19 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|