Replacing this with atomic per threadgroups and reduction would be a better idea. Relevant files: 1. WorldPoints.metal 2. MeshPipeline.metal 3. Plane.metal
Replacing this with atomic per threadgroups and reduction would be a better idea.
Relevant files: