Struct vulkano::image::view::ImageView[][src]

pub struct ImageView<I> where
    I: ImageAccess
{ /* fields omitted */ }

A safe image view that checks for validity and keeps its attached image alive.

Implementations

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

pub fn new(image: I) -> Result<Arc<ImageView<I>>, ImageViewCreationError>[src]

Creates a new image view spanning all mipmap levels and array layers in the image.

The view type is automatically determined from the image, based on its dimensions and number of layers.

pub fn with_type(
    image: I,
    ty: ImageViewType
) -> Result<Arc<ImageView<I>>, ImageViewCreationError>
[src]

Crates a new image view with a custom type.

pub fn with_type_ranges(
    image: I,
    ty: ImageViewType,
    mipmap_levels: Range<u32>,
    array_layers: Range<u32>
) -> Result<Arc<ImageView<I>>, ImageViewCreationError>
[src]

Creates a new image view with a custom type and ranges of mipmap levels and array layers.

pub fn image(&self) -> &I[src]

Returns the wrapped image that this image view was created from.

Trait Implementations

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

Auto Trait Implementations

impl<I> RefUnwindSafe for ImageView<I> where
    I: RefUnwindSafe

impl<I> Send for ImageView<I> where
    I: Send

impl<I> Sync for ImageView<I> where
    I: Sync

impl<I> Unpin for ImageView<I> where
    I: Unpin

impl<I> UnwindSafe for ImageView<I> where
    I: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.