logo
pub unsafe trait ImageViewAbstract: VulkanObject<Object = ImageView> + DeviceOwned + Debug + 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) -> Option<Format>;
fn format_features(&self) -> &FormatFeatures;
fn mip_levels(&self) -> Range<u32>;
fn sampler_ycbcr_conversion(&self) -> Option<&Arc<SamplerYcbcrConversion>>;
fn usage(&self) -> &ImageUsage;
fn view_type(&self) -> ImageViewType; }
Expand description

Trait for types that represent the GPU can access an image view.

Required methods

Returns the wrapped image that this image view was created from.

Returns the range of array layers of the wrapped image that this view exposes.

Returns the aspects of the wrapped image that this view exposes.

Returns the component mapping of this view.

Returns whether the image view supports sampling with a Cubic mag_filter or min_filter.

Returns whether the image view supports sampling with a Cubic mag_filter or min_filter, and with a Min or Max reduction_mode.

Returns the format of this view. This can be different from the parent’s format.

Returns the features supported by the image view’s format.

Returns the range of mip levels of the wrapped image that this view exposes.

Returns the sampler YCbCr conversion that this image view was created with, if any.

Returns the usage of the image view.

Returns the ImageViewType of this image view.

Trait Implementations

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Implementors