Enumeration of semantic flags for updating vertex / index buffers.
enum
|
BufferUpdateFlag
|
Discard
|
= 0
|
The buffer update specifies new content, any existing content is discarded. Remarks: The CPU can update the buffer immediately and the GPU can continue to use the existing content. The system may choose any method for synchronizing with the GPU, for example using a temporary buffer. Updating many and/or large dynamic buffers very often with the Discard flag can still stall the GPU, for example if the system runs out of temporary buffers and needs to wait until one becomes free again. |
---|---|---|
NoOverwrite
|
= 1
|
The buffer update modifies the content in a way that does not interfere with pending GPU render commands. Remarks: The CPU can update the buffer immediately and the GPU can continue to use the existing content. Render glitches and/or runtime errors can occur if the updated content is still being used for rendering. |