Table of Contents

Enum MapMode

Namespace
NeoVeldrid
Assembly
NeoVeldrid.dll

Identifies how a MappableResource will be mapped into CPU address space.

public enum MapMode : byte

Fields

Read = 0

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 = 2

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 = 1

A write-only resource mapping. The mapped data region is writable, and will be transferred into the graphics resource when Unmap(MappableResource, uint) 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.