Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GraphicsBuffer.UsageFlags

The intended usage of a GraphicsBuffer.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
[Flags]public enum GraphicsBuffer.UsageFlags

Remarks

Provide the intended usage (mode) when creating a GraphicsBuffer.
GraphicsBuffer.UsageFlags.LockBufferForWrite lets you write to the buffer using GraphicsBuffer.LockBufferForWrite. See GraphicsBuffer.UsageFlags.LockBufferForWrite for information on limitations and considerations to take when using this mode.
Additional Resources: GraphicsBuffer class, GraphicsBuffer constructor

Fields

Value

Description

LockBufferForWriteEnable the LockBufferForWrite and UnlockBufferAfterWrite methods on the GraphicsBuffer. CAUTION: when using this flag, ensure that you do not introduce memory read/write hazards.
NoneSets the update mode flags to None. This is the default update mode.