Sign in
dawn
/
dawn
/
3d64565e2eb8fe4a377b18e288edac70d28d586f
/
.
/
test
/
tint
/
builtins
/
modf
/
scalar
/
runtime.wgsl.expected.ir.dxc.hlsl
blob: f72ce73824ffc0c2dd78e7b9716d5e91f6122e8e [
file
] [
log
] [
blame
]
struct
modf_result_f32
{
float
fract
;
float
whole
;
};
[
numthreads
(
1
,
1
,
1
)]
void
main
()
{
float
tint_symbol
=
1.25f
;
float
v
=
0.0f
;
modf_result_f32 res
=
{
modf
(
tint_symbol
,
v
),
v
};
float
fract
=
res
.
fract
;
float
whole
=
res
.
whole
;
}