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