blob: 1efe82d7e0a18da026bd9c214da645685ea29dd1 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread half t = 0.0h;
half3 m() {
t = 1.0h;
return half3(t);
}
void f() {
uint3 v = tint_v3f16_to_v3u32(m());
}
uint3 tint_v3f16_to_v3u32(half3 value) {
return select(uint3(4294967295u), select(uint3(0u), uint3(value), (value >= half3(0.0h))), (value <= half3(65504.0h)));
}
program_source:4:13: error: program scope variable must reside in constant address space
thread half t = 0.0h;
^
program_source:10:13: error: use of undeclared identifier 'tint_v3f16_to_v3u32'
uint3 v = tint_v3f16_to_v3u32(m());
^