#include <metal_stdlib> | |
using namespace metal; | |
struct tint_module_vars_struct { | |
thread float* u; | |
}; | |
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 const v = tint_f32_to_u32((*tint_module_vars.u)); | |
} |