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

10 lines
141 B
Plaintext

#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[i];
}