Sign in
dawn
/
dawn
/
ec448b1ca35aa798201feae2bb2e3f37b5380274
/
.
/
test
/
tint
/
statements
/
switch
/
common.wgsl.expected.wgsl
blob: 8e96822eec2fd65902b3150162668eba09b3cc66 [
file
] [
log
] [
blame
]
@compute
@workgroup_size
(
1
)
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
;
}
}
}