tp::ImageSubresourceRange struct

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

Public functions

auto pickAspect(ImageAspect aspect) const -> ImageSubresourceRange
Returns a subresource of the given aspect.
auto pickLayer(uint32_t arrayLayerOffset) const -> ImageSubresourceRange
Returns a subresource of the given layer, relative to this subresource.
auto pickLayers(uint32_t arrayLayerOffset, uint32_t arrayLayerCount) const -> ImageSubresourceRange
Returns a subresource of the given layer range, relative to this subresource.
auto pickMipLevel(uint32_t mipLevelOffset) const -> ImageSubresourceLayers
Returns a subresource of the given mip level, relative to this subresource.
auto pickMipLevels(uint32_t mipLevelOffset, uint32_t mipLevelCount) const -> ImageSubresourceRange
Returns a subresource of the given mip level range, relative to this subresource.