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