文档

Unity Engine

Unity Engine

CopyCounterValue

Adds a command to copy ComputeBuffer or GraphicsBuffer counter value.
阅读时间2 分钟最后更新于 1 个月前

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.