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 { ... } }
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 inner unsafe image view object used by this image view.

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.

Returns the component mapping of this view.

Returns the ImageViewType of this image view.

Provided methods

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

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