blob: 8da1016e4a9f1da93ffb169f40dbf29c560efb88 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
int tint_ftoi(float v) {
return select(2147483647, select(int(v), (-2147483647 - 1), (v < -2147483648.0f)), (v < 2147483520.0f));
}
void f() {
thread float tint_symbol = 1.0f;
int const v = tint_ftoi(tint_symbol);
}