Enum MapMode
Describes how the CPU is accessing a GraphicsResource with the MapSubresource(GraphicsResource, int, MapMode, bool, int, int) method.
public enum MapMode
Fields
Read = 1
Resource is mapped for reading.
The resource must have been created with usage Staging.
ReadWrite = 3
Resource is mapped for read-write.
The resource must have been created with usage Staging.
Write = 2
Resource is mapped for writing.
The resource must have been created with usage Dynamic or Staging.
WriteDiscard = 4
Resource is mapped for writing; the previous contents of the resource will be undefined.
The resource must have been created with usage Dynamic.
WriteNoOverwrite = 5
Resource is mapped for writing; the existing contents of the resource cannot be overwritten.
This flag is only valid on vertex and index buffers.