A description of a request to map a resource. More...
Public Member Functions | |
MapRequestDescriptor ()=default | |
MapRequestDescriptor (MAP mapType, unsigned int bufferSubResourceIndex) | |
MapRequestDescriptor (MAP mapType, unsigned int textureIndexInArray, unsigned int textureMipIndex) | |
Public Attributes | |
MAP | _mapType = MAP_WRITE_DISCARD |
The map type requested. | |
union { | |
BufferSubResourceDescriptor _buffer | |
If the request is made to map a buffer, this member should be populated. | |
TextureSubResourceDescriptor _texture = TextureSubResourceDescriptor() | |
If the request is made to map a texture, this member should be populated. | |
}; | |
A description of a request to map a resource.
|
default |
Default constructor.
nkGraphics::MapRequestDescriptor::MapRequestDescriptor | ( | MAP | mapType, |
unsigned int | bufferSubResourceIndex | ||
) |
Shortcut buffer request constructor.
mapType | The type of mapping required. |
bufferSubResourceIndex | The index of the sub-resource to map. |
nkGraphics::MapRequestDescriptor::MapRequestDescriptor | ( | MAP | mapType, |
unsigned int | textureIndexInArray, | ||
unsigned int | textureMipIndex | ||
) |
Shortcut texture request constructor.
mapType | The type of mapping required. |
textureIndexInArray | The index within the array of the texture to map. |
textureMipIndex | The index of the mip to map. |