2022-11-23 19:57:00 +00:00
|
|
|
struct frexp_result_vec2_f32 {
|
2022-11-23 18:21:38 +00:00
|
|
|
float2 fract;
|
|
|
|
int2 exp;
|
|
|
|
};
|
|
|
|
[numthreads(1, 1, 1)]
|
|
|
|
void main() {
|
2022-11-23 19:57:00 +00:00
|
|
|
const frexp_result_vec2_f32 res = {float2(0.625f, 0.9375f), int2(1, 2)};
|
2022-11-23 18:21:38 +00:00
|
|
|
const float2 fract = res.fract;
|
|
|
|
const int2 exp = res.exp;
|
|
|
|
return;
|
|
|
|
}
|