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

9 lines
151 B
Plaintext
Raw Normal View History

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