Sign in
dawn
/
tint
/
refs/heads/chromium/4755
/
.
/
test
/
statements
/
switch
/
common.wgsl
blob: ada8f5e56db5c61a3b248628a0f29b8b41e8e26a [
file
] [
log
] [
blame
] [
edit
]
[[
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
;
}
}
}