pub unsafe trait ImageViewAbstract: VulkanObject<Object = ImageView> + DeviceOwned + Send + Sync {
fn image(&self) -> Arc<dyn ImageAccess>;
fn array_layers(&self) -> Range<u32>;
fn aspects(&self) -> &ImageAspects;
fn component_mapping(&self) -> ComponentMapping;
fn filter_cubic(&self) -> bool;
fn filter_cubic_minmax(&self) -> bool;
fn format(&self) -> Format;
fn format_features(&self) -> &FormatFeatures;
fn mip_levels(&self) -> Range<u32>;
fn sampler_ycbcr_conversion(&self) -> Option<&Arc<SamplerYcbcrConversion>>;
fn ty(&self) -> ImageViewType;
fn usage(&self) -> &ImageUsage;
}
Expand description
Trait for types that represent the GPU can access an image view.
Required methods
fn image(&self) -> Arc<dyn ImageAccess>
fn image(&self) -> Arc<dyn ImageAccess>
Returns the wrapped image that this image view was created from.
fn array_layers(&self) -> Range<u32>
fn array_layers(&self) -> Range<u32>
Returns the range of array layers of the wrapped image that this view exposes.
fn aspects(&self) -> &ImageAspects
fn aspects(&self) -> &ImageAspects
Returns the aspects of the wrapped image that this view exposes.
fn component_mapping(&self) -> ComponentMapping
fn component_mapping(&self) -> ComponentMapping
Returns the component mapping of this view.
fn filter_cubic(&self) -> bool
fn filter_cubic(&self) -> bool
Returns whether the image view supports sampling with a
Cubic
mag_filter
or min_filter
.
fn filter_cubic_minmax(&self) -> bool
fn filter_cubic_minmax(&self) -> bool
Returns the format of this view. This can be different from the parent’s format.
fn format_features(&self) -> &FormatFeatures
fn format_features(&self) -> &FormatFeatures
Returns the features supported by the image view’s format.
fn mip_levels(&self) -> Range<u32>
fn mip_levels(&self) -> Range<u32>
Returns the range of mip levels of the wrapped image that this view exposes.
fn sampler_ycbcr_conversion(&self) -> Option<&Arc<SamplerYcbcrConversion>>
fn sampler_ycbcr_conversion(&self) -> Option<&Arc<SamplerYcbcrConversion>>
Returns the sampler YCbCr conversion that this image view was created with, if any.
fn ty(&self) -> ImageViewType
fn ty(&self) -> ImageViewType
Returns the ImageViewType
of this image view.
fn usage(&self) -> &ImageUsage
fn usage(&self) -> &ImageUsage
Returns the usage of the image view.