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

20 lines
400 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
using namespace metal;
struct S {
int a;
float b;
};
kernel void tint_symbol(uint local_invocation_index [[thread_index_in_threadgroup]]) {
threadgroup S tint_symbol_3;
if ((local_invocation_index == 0u)) {
S const tint_symbol_2 = {};
tint_symbol_3 = tint_symbol_2;
}
threadgroup_barrier(mem_flags::mem_threadgroup);
(void) tint_symbol_3;
return;
}