Sign in
dawn
/
tint
/
refs/heads/chromium/4863
/
.
/
test
/
bug
/
tint
/
1081.wgsl.expected.wgsl
blob: 3f7cc7a4d2344b39fe4f91cd61a0567cbd2f33a5 [
file
] [
log
] [
blame
] [
edit
]
fn f
(
x
:
i32
)
->
i32
{
if
((
x
==
10
))
{
discard
;
}
return
x
;
}
@stage
(
fragment
)
fn main
(
@location
(
1
)
@interpolate
(
flat
)
x
:
vec3
<i32>
)
->
@location
(
2
)
i32
{
var
y
=
x
.
x
;
loop
{
let
r
=
f
(
y
);
if
((
r
==
0
))
{
break
;
}
}
return
y
;
}