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