Sign in
dawn
/
dawn
/
cd9873f8f0d2919b64bf8f88847b82dd555e036b
/
.
/
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
;
}