Version: 2023.1

CommandBuffer.CopyCounterValue

切换到手册
public void CopyCounterValue (ComputeBuffer src, ComputeBuffer dst, uint dstOffsetBytes);
public void CopyCounterValue (ComputeBuffer src, GraphicsBuffer dst, uint dstOffsetBytes);
public void CopyCounterValue (GraphicsBuffer src, ComputeBuffer dst, uint dstOffsetBytes);
public void CopyCounterValue (GraphicsBuffer src, GraphicsBuffer dst, uint dstOffsetBytes);

参数

src 从中复制计数器的附加/使用缓冲区。
dst 要将计数器复制到的缓冲区。
dstOffsetBytes dst 缓冲区中的目标字节偏移。

描述

Adds a command to copy ComputeBuffer or GraphicsBuffer counter value.

注意:不能在 LightEvent 命令缓冲区中使用此命令。

See Also: ComputeBuffer.CopyCount and GraphicsBuffer.CopyCount.