SKIP: FAILED | |
#include <metal_stdlib> | |
using namespace metal; | |
thread float t = 0.0f; | |
float3x4 m() { | |
t = (t + 1.0f); | |
return float3x4(float4(1.0f, 2.0f, 3.0f, 4.0f), float4(5.0f, 6.0f, 7.0f, 8.0f), float4(9.0f, 10.0f, 11.0f, 12.0f)); | |
} | |
void f() { | |
half3x4 v = half3x4(m()); | |
} | |
program_source:4:14: error: program scope variable must reside in constant address space | |
thread float t = 0.0f; | |
^ | |
program_source:10:11: warning: unused variable 'v' [-Wunused-variable] | |
half3x4 v = half3x4(m()); | |
^ | |