Struct MappedResource
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
OffsetInBytes
The offset of the mapped resource since the beginning of the buffer, in bytes.
public readonly int OffsetInBytes
Field Value
Resource
The resource mapped for CPU access.
public readonly GraphicsResource Resource
Field Value
SizeInBytes
The size of the mapped resource, in bytes.
public readonly int SizeInBytes
Field Value
SubResourceIndex
The sub-resource index.
public readonly int SubResourceIndex