Enum MapMode
Identifies how a MappableResource will be mapped into CPU address space.
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
public enum MapMode : byte
Fields
| Name | Description |
|---|---|
| Read | A read-only resource mapping. The mapped data region is not writable, and cannot be used to transfer data into the graphics resource. NOTE: This mode can only be used on resources created with the Staging usage flag. |
| ReadWrite | A read-write resource mapping. The mapped data region is both readable and writable. NOTE: this mode can only be used on resources created with the Staging usage flag. |
| Write | A write-only resource mapping. The mapped data region is writable, and will be transferred into the graphics resource when Unmap(MappableResource, UInt32) is called. NOTE: upon mapping a buffer with this mode, the previous contents of the resource will be erased. This mode can only be used to entirely replace the contents of a resource. |