Trait vulkano::image::view::ImageViewAbstract [−][src]
pub unsafe trait ImageViewAbstract: Send + Sync {
fn image(&self) -> Arc<dyn ImageAccess>;
fn inner(&self) -> &UnsafeImageView;
fn array_layers(&self) -> Range<u32>;
fn format(&self) -> Format;
fn component_mapping(&self) -> ComponentMapping;
fn ty(&self) -> ImageViewType;
fn can_be_sampled(&self, _sampler: &Sampler) -> bool { ... }
}
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 inner(&self) -> &UnsafeImageView
fn inner(&self) -> &UnsafeImageView
Returns the inner unsafe image view object used by this image view.
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.
Returns the format of this view. This can be different from the parent’s format.
fn component_mapping(&self) -> ComponentMapping
fn component_mapping(&self) -> ComponentMapping
Returns the component mapping of this view.
fn ty(&self) -> ImageViewType
fn ty(&self) -> ImageViewType
Returns the ImageViewType
of this image view.
Provided methods
fn can_be_sampled(&self, _sampler: &Sampler) -> bool
fn can_be_sampled(&self, _sampler: &Sampler) -> bool
Returns true if the given sampler can be used with this image view.
This method should check whether the sampler’s configuration can be used with the format of the view.