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