ComputeBuffer.CopyCount

static function CopyCount (src : ComputeBuffer, dst : ComputeBuffer, dstOffset : int) : void

Description

Copy counter value of append/consume buffer into another buffer.

CopyCount takes an append or consume buffer as src, and copies its "counter" value into dst buffer at given byte offset.

This is most commonly used in conjunction with Graphics.DrawProceduralIndirect, to render arbitrary number of primitives without reading their count back to the CPU.