2022-11-23 19:57:00 +00:00
|
|
|
struct frexp_result_f32 {
|
2022-11-14 15:29:29 +00:00
|
|
|
float fract;
|
2021-07-23 16:43:01 +00:00
|
|
|
int exp;
|
|
|
|
};
|
2021-06-09 18:53:57 +00:00
|
|
|
[numthreads(1, 1, 1)]
|
|
|
|
void main() {
|
2022-11-23 19:57:00 +00:00
|
|
|
const frexp_result_f32 res = {0.61500001f, 1};
|
2021-07-23 16:43:01 +00:00
|
|
|
const int exp = res.exp;
|
2022-11-14 15:29:29 +00:00
|
|
|
const float fract = res.fract;
|
2021-06-09 18:53:57 +00:00
|
|
|
return;
|
|
|
|
}
|