tp::ImageViewSetup struct

Used as configuration for creating a new tp::ImageView object.

Constructors, destructors, conversion operators

ImageViewSetup(ImageViewType viewType, ImageSubresourceRange subresourceRange, Format format = Format::Undefined, ComponentMapping componentMapping = {})

Function documentation

tp::ImageViewSetup::ImageViewSetup(ImageViewType viewType, ImageSubresourceRange subresourceRange, Format format = Format::Undefined, ComponentMapping componentMapping = {})

Parameters
viewType The type of the image view.
subresourceRange The subresource range of the image to be viewed.
format The format that the viewed image data will be interpreted as. If it is tp::Format::Undefined, the format used will be the same as that of the parent tp::Image or tp::ImageView that the view is created from.
componentMapping An optional component remapping of the view when used in a tp::DescriptorType::SampledImage or tp::DescriptorType::CombinedImageSampler descriptor.