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