Show / Hide Table of Contents

Struct MappedResource

A structure describing the layout of a mapped MappableResource object.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
public struct MappedResource

Fields

Data

A pointer to the start of the mapped data region.

Declaration
public readonly IntPtr Data
Field Value
Type Description
System.IntPtr

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.

Declaration
public readonly uint DepthPitch
Field Value
Type Description
System.UInt32

Mode

Identifies the MapMode that was used to map the resource.

Declaration
public readonly MapMode Mode
Field Value
Type Description
MapMode

Resource

The resource which has been mapped.

Declaration
public readonly MappableResource Resource
Field Value
Type Description
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.

Declaration
public readonly uint RowPitch
Field Value
Type Description
System.UInt32

SizeInBytes

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

Declaration
public readonly uint SizeInBytes
Field Value
Type Description
System.UInt32

Subresource

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

Declaration
public readonly uint Subresource
Field Value
Type Description
System.UInt32
Back to top