logo
pub unsafe trait ImageViewAbstract: VulkanObject<Object = ImageView> + DeviceOwned + Debug + Send + Sync {
    fn image(&self) -> Arc<dyn ImageAccess>;
    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 sampler_ycbcr_conversion(&self) -> Option<&Arc<SamplerYcbcrConversion>>;
    fn subresource_range(&self) -> &ImageSubresourceRange;
    fn usage(&self) -> &ImageUsage;
    fn view_type(&self) -> ImageViewType;

    fn dimensions(&self) -> ImageDimensions { ... }
}
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 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 sampler YCbCr conversion that this image view was created with, if any.

Returns the subresource range of the wrapped image that this view exposes.

Returns the usage of the image view.

Returns the ImageViewType of this image view.

Provided Methods

Returns the dimensions of this view.

Trait Implementations

Feeds this value 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 !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Implementors