tp::ImageSubresourceLayers struct

Describes a subresource of an image containing any number of array layers and a single mip level.

Public functions

auto pickAspect(ImageAspect aspect) const -> ImageSubresourceLayers
Returns a subresource of the given aspect.
auto pickLayer(uint32_t arrayLayerOffset) const -> ImageSubresource
Returns a subresource of the given layer, relative to this subresource.
auto pickLayers(uint32_t arrayLayerOffset, uint32_t arrayLayerCount) const -> ImageSubresourceLayers
Returns a subresource of the given layer range, relative to this subresource.