Sign in
dawn
/
dawn
/
05c8daac420965194364a6647bfadf5322c284c2
/
.
/
test
/
tint
/
builtins
/
modf
/
scalar
/
const.wgsl.expected.fxc.hlsl
blob: d9bc0d9589b15491a63ce6cb1b4693c9d2f1647a [
file
] [
log
] [
blame
]
struct
modf_result
{
float
fract
;
float
whole
;
};
[
numthreads
(
1
,
1
,
1
)]
void
main
()
{
const
modf_result res
=
{
0.25f
,
1.0f
};
const
float
fract
=
res
.
fract
;
const
float
whole
=
res
.
whole
;
return
;
}