#include <metal_stdlib> | |
using namespace metal; | |
struct frexp_result_vec2_f32 { | |
float2 fract; | |
int2 exp; | |
}; | |
kernel void tint_symbol() { | |
float2 const in = float2(1.25f, 3.75f); | |
frexp_result_vec2_f32 v = {}; | |
v.fract = frexp(in, v.exp); | |
frexp_result_vec2_f32 const res = v; | |
float2 const fract = res.fract; | |
int2 const exp = res.exp; | |
} |