Table of Contents

Enum MapMode

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

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

The Graphics Resource is mapped for reading.

The Graphics Resource must have been created with Staging.

ReadWrite = 3

The Graphics Resource is mapped for reading and writing.

The Graphics Resource must have been created with Staging.

Write = 2

The Graphics Resource is mapped for writing.

The Graphics Resource must have been created with Dynamic or Staging.

WriteDiscard = 4

The Graphics Resource is mapped for writing, making the previous contents of the resource undefined.

The Graphics Resource must have been created with Dynamic.

WriteNoOverwrite = 5

The 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.