dawn-cmake/test/tint/bug/tint/926.wgsl.expected.msl

18 lines
550 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
using namespace metal;
struct DrawIndirectArgs {
/* 0x0000 */ atomic_uint vertexCount;
};
void computeMain_inner(uint3 global_id, device DrawIndirectArgs* const tint_symbol) {
thread uint tint_symbol_1 = 0u;
uint const firstVertex = atomic_fetch_add_explicit(&((*(tint_symbol)).vertexCount), tint_symbol_1, memory_order_relaxed);
}
kernel void computeMain(device DrawIndirectArgs* tint_symbol_2 [[buffer(0)]], uint3 global_id [[thread_position_in_grid]]) {
computeMain_inner(global_id, tint_symbol_2);
return;
}