dawn-cmake/test/var/initialization/workgroup/array.wgsl.expected.msl

19 lines
452 B
Plaintext

#include <metal_stdlib>
using namespace metal;
struct tint_array_wrapper {
int arr[3];
};
kernel void tint_symbol(uint local_invocation_index [[thread_index_in_threadgroup]]) {
threadgroup tint_array_wrapper tint_symbol_2;
for(uint idx = local_invocation_index; (idx < 3u); idx = (idx + 1u)) {
uint const i = idx;
tint_symbol_2.arr[i] = int();
}
threadgroup_barrier(mem_flags::mem_threadgroup);
(void) tint_symbol_2;
return;
}