CommandBuffer.CopyCounterValue

Declaration

public void CopyCounterValue(ComputeBuffer src, ComputeBuffer dst, uint dstOffsetBytes);

Declaration

public void CopyCounterValue(ComputeBuffer src, GraphicsBuffer dst, uint dstOffsetBytes);

Declaration

public void CopyCounterValue(GraphicsBuffer src, ComputeBuffer dst, uint dstOffsetBytes);

Declaration

public void CopyCounterValue(GraphicsBuffer src, GraphicsBuffer dst, uint dstOffsetBytes);

Parameters

src Append/consume buffer to copy the counter from.
dst A buffer to copy the counter to.
dstOffsetBytes Target byte offset in dst buffer.

Description

Adds a command to copy ComputeBuffer or GraphicsBuffer counter value.

Note: this command can not be used on LightEvent command buffers.

Additional resources: ComputeBuffer.CopyCount and GraphicsBuffer.CopyCount.


Did you find this page useful? Please give it a rating: