blob: 20feeefe434e02312247eb1cd4c8e12b27726bd9 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct frexp_result_f32 {
float f;
};
struct frexp_result_f32_1 {
float fract;
int exp;
};
struct tint_module_vars_struct {
thread frexp_result_f32* a;
thread frexp_result_f32_1* b;
};
fragment float4 tint_symbol() {
thread frexp_result_f32 a = {};
thread frexp_result_f32_1 b = frexp_result_f32_1{.fract=0.5f, .exp=1};
tint_module_vars_struct const tint_module_vars = {.a=(&a), .b=(&b)};
return float4((*tint_module_vars.a).f, (*tint_module_vars.b).fract, 0.0f, 0.0f);
}