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 identity_swizzle(&self) -> bool;
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 identity_swizzle(&self) -> bool[src]

Returns true if the view doesn’t use components swizzling.

Must be true when the view is used as a framebuffer attachment or TODO: I don’t remember the other thing.

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 Eq for dyn ImageViewAbstract + Send + Sync[src]

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

impl PartialEq<dyn ImageViewAbstract + 'static + Sync + Send> 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]

Loading content...