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