Sign in
dawn
/
dawn
/
3ddc07a18b8a22570ffe1e93f0a11d036462c192
/
.
/
test
/
tint
/
builtins
/
modf
/
scalar
/
mixed.wgsl
blob: 76d0a5d5a87405a9b760fbc56c6efb88a9f49fc1 [
file
] [
log
] [
blame
]
@compute
@workgroup_size
(
1
)
fn main
()
{
const
const_in
=
1.25
;
let
runtime_in
=
1.25
;
var
res
=
modf
(
const_in
);
res
=
modf
(
runtime_in
);
res
=
modf
(
const_in
);
let
fract
:
f32
=
res
.
fract
;
let
whole
:
f32
=
res
.
whole
;
}