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

13 lines
195 B
Plaintext

#include <metal_stdlib>
using namespace metal;
struct tint_array_wrapper {
int arr[8];
};
int f(int i) {
tint_array_wrapper const a = {.arr={1, 2, 3, 4, 5, 6, 7, 8}};
return a.arr[i];
}