Table of Contents

Struct MappedResource

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

A GPU resource mapped for CPU access. This is returned by using MapSubResource(GraphicsResource, int, MapMode, bool, int, int).

public readonly struct MappedResource
Inherited Members
Extension Methods

Fields

DataBox

The data box specifying how the data is laid out in memory.

public readonly DataBox DataBox

Field Value

DataBox

OffsetInBytes

The offset of the mapped resource since the beginning of the buffer, in bytes.

public readonly int OffsetInBytes

Field Value

int

Resource

The resource mapped for CPU access.

public readonly GraphicsResource Resource

Field Value

GraphicsResource

SizeInBytes

The size of the mapped resource, in bytes.

public readonly int SizeInBytes

Field Value

int

SubResourceIndex

The sub-resource index.

public readonly int SubResourceIndex

Field Value

int