Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CopyCounterValue

Adds a command to copy ComputeBuffer or GraphicsBuffer counter value.
Read time 2 minutesLast updated 4 days ago

Definition

CopyCounterValue(ComputeBuffer, ComputeBuffer, uint)

Adds a command to copy ComputeBuffer or GraphicsBuffer counter value.
public void CopyCounterValue(ComputeBuffer src, ComputeBuffer dst, uint dstOffsetBytes)

Parameters

Append/consume buffer to copy the counter from.

A buffer to copy the counter to.

dstOffsetBytes

Target byte offset in
dst
buffer.

Remarks

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

CopyCounterValue(GraphicsBuffer, ComputeBuffer, uint)

Adds a command to copy ComputeBuffer or GraphicsBuffer counter value.
public void CopyCounterValue(GraphicsBuffer src, ComputeBuffer dst, uint dstOffsetBytes)

Parameters

Append/consume buffer to copy the counter from.

A buffer to copy the counter to.

dstOffsetBytes

Target byte offset in
dst
buffer.

Remarks

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

CopyCounterValue(ComputeBuffer, GraphicsBuffer, uint)

Adds a command to copy ComputeBuffer or GraphicsBuffer counter value.
public void CopyCounterValue(ComputeBuffer src, GraphicsBuffer dst, uint dstOffsetBytes)

Parameters

Append/consume buffer to copy the counter from.

A buffer to copy the counter to.

dstOffsetBytes

Target byte offset in
dst
buffer.

Remarks

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

CopyCounterValue(GraphicsBuffer, GraphicsBuffer, uint)

Adds a command to copy ComputeBuffer or GraphicsBuffer counter value.
public void CopyCounterValue(GraphicsBuffer src, GraphicsBuffer dst, uint dstOffsetBytes)

Parameters

Append/consume buffer to copy the counter from.

A buffer to copy the counter to.

dstOffsetBytes

Target byte offset in
dst
buffer.

Remarks

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