CopyCounterValue
Adds a command to copy ComputeBuffer or GraphicsBuffer counter value.
Read time 2 minutesLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
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.
Target byte offset in buffer.
dstRemarks
Note: this command can not be used on LightEvent command buffers.
Additional Resources: ComputeBuffer.CopyCount and GraphicsBuffer.CopyCount.
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.
Target byte offset in buffer.
dstRemarks
Note: this command can not be used on LightEvent command buffers.
Additional Resources: ComputeBuffer.CopyCount and GraphicsBuffer.CopyCount.
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.
Target byte offset in buffer.
dstRemarks
Note: this command can not be used on LightEvent command buffers.
Additional Resources: ComputeBuffer.CopyCount and GraphicsBuffer.CopyCount.
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.
Target byte offset in buffer.
dstRemarks
Note: this command can not be used on LightEvent command buffers.
Additional Resources: ComputeBuffer.CopyCount and GraphicsBuffer.CopyCount.