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

pub struct UnsafeImageView { /* fields omitted */ }

A low-level wrapper around a vkImageView.

Implementations

impl UnsafeImageView[src]

pub unsafe fn new(
    image: &UnsafeImage,
    ty: ImageViewType,
    mipmap_levels: Range<u32>,
    array_layers: Range<u32>
) -> Result<UnsafeImageView, OomError>
[src]

Creates a new view from an image.

Safety

  • The returned UnsafeImageView must not outlive image.
  • image must have a usage that is compatible with image views.
  • ty must be compatible with the dimensions and flags of the image.
  • mipmap_levels must not be empty, must be within the range of levels of the image, and be compatible with the requested ty.
  • array_layers must not be empty, must be within the range of layers of the image, and be compatible with the requested ty.

Panics

Panics if the image is a YcbCr image, since the Vulkano API is not yet flexible enough to specify the aspect of image.

Trait Implementations

impl Debug for UnsafeImageView[src]

impl Drop for UnsafeImageView[src]

impl Eq for UnsafeImageView[src]

impl Hash for UnsafeImageView[src]

impl PartialEq<UnsafeImageView> for UnsafeImageView[src]

impl VulkanObject for UnsafeImageView[src]

type Object = ImageView

The type of the object.

Auto Trait Implementations

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.