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