| SKIP: FAILED |
| |
| #include <metal_stdlib> |
| using namespace metal; |
| |
| thread float t = 0.0f; |
| float m() { |
| t = 1.0f; |
| return float(t); |
| } |
| void f() { |
| uint v = tint_f32_to_u32(m()); |
| } |
| uint tint_f32_to_u32(float value) { |
| return select(4294967295u, select(0u, uint(value), (value >= 0.0f)), (value <= 4294967040.0f)); |
| } |
| program_source:4:14: error: program scope variable must reside in constant address space |
| thread float t = 0.0f; |
| ^ |
| program_source:10:12: error: use of undeclared identifier 'tint_f32_to_u32' |
| uint v = tint_f32_to_u32(m()); |
| ^ |
| |