dawn-cmake/test/tint/expressions/index/var/param/vector.wgsl.expected.msl

9 lines
122 B
Plaintext

#include <metal_stdlib>
using namespace metal;
float f(int i) {
float3 v = float3(1.0f, 2.0f, 3.0f);
return v[i];
}