GpuBufferFlags

Description

[Flags]
enum Tinman.Terrain.Rendering.GpuBufferFlags

Enumeration of behaviour flags for IGpuBuffer objects.

Public / Constants

None

public constant None → (0:int32)

No GPU buffer flags.

Update

public constant Update → (1:int32)

The CPU has write access to the buffer content, either directly via memory mapping (see ResourceAccessPattern.Mappable) or indirectly via deferred copying (see ResourceAccessPattern.Dynamic).

Volatile

public constant Volatile → (2:int32)

The buffer content is modified frequently, either by the CPU or by the GPU.

Volatile resources with CPU write access usually have ResourceAccessPattern.Mappable access.

Draw

public constant Draw → (4:int32)

Does the buffer hold arguments for indirect drawing of primitives that have been generated by a GPU program?

When this flag is present, the given element size must either be zero or must be equal to or greater than the actual element size of the implementation-specific draw buffer layout.

Work

public constant Work → (8:int32)

Does the buffer hold arguments for indirect dispatching of computational work that has been generated by a GPU program?

When this flag is present, the given element size must either be zero or must be equal to or greater than the actual element size of the implementation-specific work buffer layout.

Mesh

public constant Mesh → (16:int32)

Does the buffer hold arguments for indirect dispatching of mesh rendering work that has been generated by a GPU program?

When this flag is present, the given element size must either be zero or must be equal to or greater than the actual element size of the implementation-specific mesh buffer layout.

All

public constant All → (31:int32)

All flags.