CopyCounterValue
Adds a command to copy ComputeBuffer or GraphicsBuffer counter value.
읽는 시간 2분최근 업데이트: 24일 전
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.