Trait vulkano::image::view::ImageViewAbstract [−][src]
pub unsafe trait ImageViewAbstract { fn image(&self) -> &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 { ... } }
Trait for types that represent the GPU can access an image view.
Required methods
fn image(&self) -> &dyn ImageAccess
[src]
Returns the wrapped image that this image view was created from.
fn inner(&self) -> &UnsafeImageView
[src]
Returns the inner unsafe image view object used by this image view.
fn array_layers(&self) -> Range<u32>
[src]
Returns the range of array layers of the wrapped image that this view exposes.
fn format(&self) -> Format
[src]
Returns the format of this view. This can be different from the parent’s format.
fn component_mapping(&self) -> ComponentMapping
[src]
Returns the component mapping of this view.
fn ty(&self) -> ImageViewType
[src]
Returns the ImageViewType
of this image view.
Provided methods
fn can_be_sampled(&self, _sampler: &Sampler) -> bool
[src]
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.
Trait Implementations
impl Hash for dyn ImageViewAbstract + Send + Sync
[src]
impl Hash for dyn ImageViewAbstract + Send + Sync
[src]impl PartialEq<dyn ImageViewAbstract + 'static + Send + Sync> for dyn ImageViewAbstract + Send + Sync
[src]
impl PartialEq<dyn ImageViewAbstract + 'static + Send + Sync> for dyn ImageViewAbstract + Send + Sync
[src]impl Eq for dyn ImageViewAbstract + Send + Sync
[src]
Implementors
impl<I> ImageViewAbstract for ImageView<I> where
I: ImageAccess,
[src]
impl<I> ImageViewAbstract for ImageView<I> where
I: ImageAccess,
[src]fn image(&self) -> &dyn ImageAccess
[src]
fn inner(&self) -> &UnsafeImageView
[src]
fn array_layers(&self) -> Range<u32>
[src]
fn format(&self) -> Format
[src]
fn component_mapping(&self) -> ComponentMapping
[src]
fn ty(&self) -> ImageViewType
[src]
impl<T> ImageViewAbstract for T where
T: SafeDeref,
T::Target: ImageViewAbstract,
[src]
impl<T> ImageViewAbstract for T where
T: SafeDeref,
T::Target: ImageViewAbstract,
[src]