blob: 59482145119cbaecc95dae00ad9311d1d4bbbf9f [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct frexp_result_f32_1 {
float fract;
int exp;
};
struct frexp_result_f32 {
float f;
};
struct tint_private_vars_struct {
frexp_result_f32 a;
frexp_result_f32_1 b;
};
struct tint_symbol_1 {
float4 value [[color(0)]];
};
float4 tint_symbol_inner(thread tint_private_vars_struct* const tint_private_vars) {
return float4((*(tint_private_vars)).a.f, (*(tint_private_vars)).b.fract, 0.0f, 0.0f);
}
fragment tint_symbol_1 tint_symbol() {
thread tint_private_vars_struct tint_private_vars = {};
tint_private_vars.b = frexp_result_f32_1{.fract=0.5f, .exp=1};
float4 const inner_result = tint_symbol_inner(&(tint_private_vars));
tint_symbol_1 wrapper_result = {};
wrapper_result.value = inner_result;
return wrapper_result;
}