Sign in
dawn
/
dawn
/
170a50353c08673ca0ebec556dbbbb3a074cdce1
/
.
/
test
/
bug
/
tint
/
1081.wgsl
blob: 7350e4cda23f90c27cf3a8c59ab4a75a63c3690c [
file
] [
log
] [
blame
]
fn f
(
x
:
i32
)
->
i32
{
if
(
x
==
10
)
{
discard
;
}
return
x
;
}
[[
stage
(
fragment
)]]
fn main
([[
location
(
1
)]]
x
:
vec3
<i32>
)
->
[[
location
(
2
)]]
i32
{
var
y
=
x
.
x
;
loop
{
let
r
=
f
(
y
);
if
(
r
==
0
)
{
break
;
}
}
return
y
;
}