Table of Contents

Struct MappedResource

Namespace
NeoVeldrid
Assembly
NeoVeldrid.dll

A structure describing the layout of a mapped MappableResource object.

public struct MappedResource
Inherited Members

Fields

Data

A pointer to the start of the mapped data region.

public readonly nint Data

Field Value

nint

DepthPitch

For mapped Texture resources, this is the number of bytes between each depth slice of a 3D Texture. For DeviceBuffer resources or 2D Textures, this field has no meaning.

public readonly uint DepthPitch

Field Value

uint

Mode

Identifies the MapMode that was used to map the resource.

public readonly MapMode Mode

Field Value

MapMode

Resource

The resource which has been mapped.

public readonly MappableResource Resource

Field Value

MappableResource

RowPitch

For mapped Texture resources, this is the number of bytes between each row of texels. For DeviceBuffer resources, this field has no meaning.

public readonly uint RowPitch

Field Value

uint

SizeInBytes

The total size, in bytes, of the mapped data region.

public readonly uint SizeInBytes

Field Value

uint

Subresource

For mapped Texture resources, this is the subresource which is mapped. For DeviceBuffer resources, this field has no meaning.

public readonly uint Subresource

Field Value

uint