Enum BufferUsage
A bitmask describing the permitted uses of a DeviceBuffer object.
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
[Flags]
public enum BufferUsage : byte
Fields
Name | Description |
---|---|
Dynamic | Indicates that a DeviceBuffer will be updated with new data very frequently. Dynamic Buffers can be mapped with Write. This flag cannot be combined with StructuredBufferReadWrite or IndirectBuffer. |
IndexBuffer | Indicates that a DeviceBuffer can be used as the source of index data for drawing commands. This flag enables the use of a Buffer in the SetIndexBuffer(DeviceBuffer, IndexFormat) method. |
IndirectBuffer | Indicates that a DeviceBuffer can be used as the source of indirect drawing information. This flag enables the use of a Buffer in the *Indirect methods of CommandList. This flag cannot be combined with Dynamic. |
Staging | Indicates that a DeviceBuffer will be used as a staging Buffer. Staging Buffers can be used to transfer data to-and-from the CPU using Map(MappableResource, MapMode). Staging Buffers can use all MapMode values. This flag cannot be combined with any other flag. |
StructuredBufferReadOnly | Indicates that a DeviceBuffer can be used as a read-only structured Buffer. This flag enables the use of a Buffer in a ResourceSet as a read-only structured Buffer. This flag can only be combined with Dynamic. |
StructuredBufferReadWrite | Indicates that a DeviceBuffer can be used as a read-write structured Buffer. This flag enables the use of a Buffer in a ResourceSet as a read-write structured Buffer. This flag cannot be combined with any other flag. |
UniformBuffer | Indicates that a DeviceBuffer can be used as a uniform Buffer. This flag enables the use of a Buffer in a ResourceSet as a uniform Buffer. |
VertexBuffer | Indicates that a DeviceBuffer can be used as the source of vertex data for drawing commands. This flag enables the use of a Buffer in the SetVertexBuffer(UInt32, DeviceBuffer) method. |