#include <metal_stdlib> | |
using namespace metal; | |
struct tint_private_vars_struct { | |
float u; | |
}; | |
uint tint_ftou(float v) { | |
return select(4294967295u, select(uint(v), 0u, (v < 0.0f)), (v < 4294967040.0f)); | |
} | |
void f(thread tint_private_vars_struct* const tint_private_vars) { | |
uint const v = tint_ftou((*(tint_private_vars)).u); | |
} | |