Sign in
dawn
/
dawn
/
e7099d4f3bb22e23e975099fb1d1314f76cd6227
/
.
/
test
/
tint
/
statements
/
switch
/
common.wgsl
blob: 6b8735d1ac5dcc9b76f178eef10bbf4b1f9bd352 [
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
;
}
}
}