Sign in
dawn
/
dawn
/
6dbe223321c9674052b047f8f269ceb243305bac
/
.
/
test
/
tint
/
builtins
/
modf
/
vector
/
const.wgsl
blob: ecd5e059ff3dd58ff9c18fb52949cfbc7a06959e [
file
] [
log
] [
blame
]
@compute
@workgroup_size
(
1
)
fn main
()
{
const
in
=
vec2
(
1.25
,
3.75
);
let
res
=
modf
(
in
);
let
fract
:
vec2
<f32>
=
res
.
fract
;
let
whole
:
vec2
<f32>
=
res
.
whole
;
}