Sign in
dawn
/
dawn
/
e564270fd655283793ee72874f51e80d4f55e958
/
.
/
test
/
tint
/
builtins
/
frexp
/
scalar
/
const.wgsl.expected.ir.dxc.hlsl
blob: f63612fd2352df0b0bdfa78b48c2ba50956dd1c9 [
file
] [
log
] [
blame
]
struct
frexp_result_f32
{
float
fract
;
int
exp
;
};
[
numthreads
(
1
,
1
,
1
)]
void
main
()
{
frexp_result_f32 v
=
{
0.625f
,
int
(
1
)};
frexp_result_f32 res
=
v
;
float
fract
=
res
.
fract
;
frexp_result_f32 v_1
=
v
;
int
exp
=
v_1
.
exp
;
}