#include <metal_stdlib> | |
using namespace metal; | |
struct tint_module_vars_struct { | |
thread float* t; | |
}; | |
float m(tint_module_vars_struct tint_module_vars) { | |
(*tint_module_vars.t) = 1.0f; | |
return float((*tint_module_vars.t)); | |
} | |
uint tint_f32_to_u32(float value) { | |
return select(4294967295u, select(0u, uint(value), (value >= 0.0f)), (value <= 4294967040.0f)); | |
} | |
void f(tint_module_vars_struct tint_module_vars) { | |
uint v = tint_f32_to_u32(m(tint_module_vars)); | |
} |