ドキュメント

Unity Engine

Unity Engine

Dynamic

Dynamic buffer.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Dynamic = 1

Remarks

Use this if the buffer is modified often by the CPU (by calls to ComputeBuffer.SetData or ComputeBuffer.BeginWrite). Unity typically stores buffers of this type into GPU-visible CPU memory, to enable fast CPU uploads at the cost of GPU performance when it accesses the buffer. If the contents of the buffer are modified while the GPU is reading from it, Unity makes the GPU see the buffer contents as they were at the time the GPU command was issued. This can create extra transient copies of the buffer, which are deleted once the GPU operation is complete.