blob: 6f1368503b0f8c80d751ca0bada305ecb04ff159 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
float f(int x) {
float3 const v = float3(1.0f, 2.0f, 3.0f);
int const i = x;
return float3(1.0f, 2.0f, 3.0f)[i];
}