Sign in
dawn
/
tint
/
4e6e1138160a7a003c5d09e6d6e9ba45dcb50347
/
.
/
test
/
statements
/
switch
/
common.wgsl.expected.wgsl
blob: 9aad3f1fb3007ae0e6ceacf9fc0b1594250c5113 [
file
] [
log
] [
blame
]
[[
stage
(
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
;
}
}
}