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
sourcefn image(&self) -> Arc<dyn ImageAccess>
fn image(&self) -> Arc<dyn ImageAccess>
Returns the wrapped image that this image view was created from.
sourcefn component_mapping(&self) -> ComponentMapping
fn component_mapping(&self) -> ComponentMapping
Returns the component mapping of this view.
sourcefn filter_cubic(&self) -> bool
fn filter_cubic(&self) -> bool
Returns whether the image view supports sampling with a
Cubic
mag_filter
or min_filter
.
sourcefn 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.
sourcefn format_features(&self) -> &FormatFeatures
fn format_features(&self) -> &FormatFeatures
Returns the features supported by the image view’s format.
sourcefn 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.
sourcefn subresource_range(&self) -> &ImageSubresourceRange
fn subresource_range(&self) -> &ImageSubresourceRange
Returns the subresource range of the wrapped image that this view exposes.
sourcefn usage(&self) -> &ImageUsage
fn usage(&self) -> &ImageUsage
Returns the usage of the image view.
sourcefn view_type(&self) -> ImageViewType
fn view_type(&self) -> ImageViewType
Returns the ImageViewType
of this image view.
Provided Methods
sourcefn dimensions(&self) -> ImageDimensions
fn dimensions(&self) -> ImageDimensions
Returns the dimensions of this view.