Sign in
dawn
/
dawn
/
9dc770baefab83ce9cf83320aab51988e8e4a4dc
/
.
/
test
/
tint
/
builtins
/
modf
/
scalar
/
const_members.wgsl
blob: 474f4e9054a07ea56307d62a72a362bdbc0ca832 [
file
] [
log
] [
blame
]
@compute
@workgroup_size
(
1
)
fn main
()
{
const
in
=
1.23
;
const
res
=
modf
(
in
);
let
fract
:
f32
=
res
.
fract
;
let
whole
:
f32
=
res
.
whole
;
}