Sign in
dawn
/
dawn
/
0e22bdbae79384907d7044572dc6c07831929c2e
/
.
/
test
/
tint
/
expressions
/
type_conv
/
scalar
/
var
/
f32-i32.wgsl.expected.fxc.hlsl
blob: 46bcf97399c36154eff78e370a0ab034f1f945b0 [
file
] [
log
] [
blame
]
[
numthreads
(
1
,
1
,
1
)]
void
unused_entry_point
()
{
return
;
}
int
tint_ftoi
(
float
v
)
{
return
((
v
<
2147483520.0f
)
?
((
v
<
-
2147483648.0f
)
?
-
2147483648
:
int
(
v
))
:
2147483647
);
}
static
float
u
=
1.0f
;
void
f
()
{
const
int
v
=
tint_ftoi
(
u
);
}