2021-07-08 21:21:27 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
2021-07-23 16:43:01 +00:00
|
|
|
|
|
|
|
struct frexp_result {
|
2022-11-14 15:29:29 +00:00
|
|
|
float fract;
|
2021-07-23 16:43:01 +00:00
|
|
|
int exp;
|
|
|
|
};
|
|
|
|
frexp_result tint_frexp(float param_0) {
|
2022-08-05 15:11:44 +00:00
|
|
|
frexp_result result;
|
2022-11-14 15:29:29 +00:00
|
|
|
result.fract = frexp(param_0, result.exp);
|
2022-08-05 15:11:44 +00:00
|
|
|
return result;
|
2021-07-23 16:43:01 +00:00
|
|
|
}
|
|
|
|
|
2021-07-08 21:21:27 +00:00
|
|
|
kernel void tint_symbol() {
|
2021-07-23 16:43:01 +00:00
|
|
|
frexp_result const res = tint_frexp(1.230000019f);
|
|
|
|
int const exp = res.exp;
|
2022-11-14 15:29:29 +00:00
|
|
|
float const fract = res.fract;
|
2021-07-08 21:21:27 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|