SKIP: FAILED | |
#include <metal_stdlib> | |
using namespace metal; | |
thread float u = 1.0f; | |
void f() { | |
uint const v = tint_f32_to_u32(u); | |
} | |
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 u = 1.0f; | |
^ | |
program_source:6:14: warning: unused variable 'v' [-Wunused-variable] | |
uint const v = tint_f32_to_u32(u); | |
^ | |