| #include <metal_stdlib> |
| |
| using namespace metal; |
| struct tint_private_vars_struct { |
| float t; |
| }; |
| |
| int tint_ftoi(float v) { |
| return select(2147483647, select(int(v), (-2147483647 - 1), (v < -2147483648.0f)), (v < 2147483520.0f)); |
| } |
| |
| float m(thread tint_private_vars_struct* const tint_private_vars) { |
| (*(tint_private_vars)).t = 1.0f; |
| return float((*(tint_private_vars)).t); |
| } |
| |
| void f(thread tint_private_vars_struct* const tint_private_vars) { |
| float const tint_symbol = m(tint_private_vars); |
| int v = tint_ftoi(tint_symbol); |
| } |
| |