Enum MapMode
Describes how the CPU is accessing a GraphicsResource with the MapSubResource(GraphicsResource, int, MapMode, bool, int, int) method.
public enum MapMode
- Extension Methods
Fields
Read = 1The Graphics Resource is mapped for reading.
The Graphics Resource must have been created with Staging.
ReadWrite = 3The Graphics Resource is mapped for reading and writing.
The Graphics Resource must have been created with Staging.
Write = 2The Graphics Resource is mapped for writing.
The Graphics Resource must have been created with Dynamic or Staging.
WriteDiscard = 4The Graphics Resource is mapped for writing, making the previous contents of the resource undefined.
The Graphics Resource must have been created with Dynamic.
WriteNoOverwrite = 5The Graphics Resource is mapped for writing, ensuring the existing contents of the resource cannot be overwritten.
This flag is only valid on Vertex Buffers and Index Buffers.