Sign in
dawn
/
tint
/
3e80ae68ee4baa5a53d01bf5eb6795b416dc5bd5
/
.
/
test
/
statements
/
switch
/
common.wgsl.expected.wgsl
blob: 8b56b034b6ffb85ce8f27653f0ee4be0be6f235b [
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
;
}
}
}