| SKIP: FAILED |
| |
| #include <metal_stdlib> |
| using namespace metal; |
| |
| thread float3 u = float3(1.0f); |
| void f() { |
| uint3 const v = tint_v3f32_to_v3u32(u); |
| } |
| uint3 tint_v3f32_to_v3u32(float3 value) { |
| return select(uint3(4294967295u), select(uint3(0u), uint3(value), (value >= float3(0.0f))), (value <= float3(4294967040.0f))); |
| } |
| program_source:4:15: error: program scope variable must reside in constant address space |
| thread float3 u = float3(1.0f); |
| ^ |
| program_source:6:15: warning: unused variable 'v' [-Wunused-variable] |
| uint3 const v = tint_v3f32_to_v3u32(u); |
| ^ |
| |