GpuUpdateFlag
Description
Enumeration of semantic flags for updating GPU buffers with ResourceAccessPattern.Mappable access.
Public / Constants
Discard
The buffer update specifies new content, any existing content is discarded.
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.
Updates for ResourceAccessPattern.Dynamic resources always follow this semantic of this flag.
NoOverwrite
The buffer update modifies the content in a way that does not interfere with pending GPU render commands.
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.