Version: 2022.3
言語: 日本語
public void SetCounterValue (uint counterValue);

パラメーター

counterValue append/consume カウンターの値。

説明

append/consume バッファのカウンターの値を設定します。

Append/consume and counter buffers (see ComputeBufferType.Append, ComputeBufferType.Counter) keep track of the number of elements in them with a special counter variable. SetCounterValue explicitly sets the counter value.

カウンターをリセット、または、指定した値に設定するために使用します。

Note: SetCounterValue can not be called while the buffer is bound via Graphics.SetRandomWriteTarget.

See Also: CopyCount, Graphics.SetRandomWriteTarget.