blob: 10660999021a7ce1a82eb6fd164963bd87a10870 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
uint tint_ftou(float v) {
return select(4294967295u, select(uint(v), 0u, (v < 0.0f)), (v < 4294967040.0f));
}
void f() {
thread float tint_symbol = 1.0f;
uint const v = tint_ftou(tint_symbol);
}