blob: 200e973b9bad7316ef003ffe710d1d3450b29b58 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
float3 f(int x) {
float3x3 const m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f));
int const i = x;
return float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f))[i];
}