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
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
Mode
Identifies the MapMode that was used to map the resource.
public readonly MapMode Mode
Field Value
Resource
The resource which has been mapped.
public readonly MappableResource Resource
Field Value
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
SizeInBytes
The total size, in bytes, of the mapped data region.
public readonly uint SizeInBytes
Field Value
Subresource
For mapped Texture resources, this is the subresource which is mapped. For DeviceBuffer resources, this field has no meaning.
public readonly uint Subresource