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