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