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.

Loading content...

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.

Loading content...

Trait Implementations

impl Hash for dyn ImageViewAbstract + Send + Sync[src]

fn hash<H: Hasher>(&self, state: &mut H)[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl PartialEq<dyn ImageViewAbstract + 'static + Send + Sync> for dyn ImageViewAbstract + Send + Sync[src]

fn eq(&self, other: &Self) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Eq for dyn ImageViewAbstract + Send + Sync[src]

Implementors

impl<I> ImageViewAbstract for ImageView<I> where
    I: ImageAccess
[src]

impl<T> ImageViewAbstract for T where
    T: SafeDeref,
    T::Target: ImageViewAbstract
[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]

fn can_be_sampled(&self, sampler: &Sampler) -> bool[src]

Loading content...