[][src]Struct nannou::vk::image::sys::UnsafeImageView

pub struct UnsafeImageView { /* fields omitted */ }

Methods

impl UnsafeImageView[src]

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

See the docs of new().

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

Creates a new view from an image.

Note that you must create the view with identity swizzling if you want to use this view as a framebuffer attachment.

Panic

  • Panics if mipmap_levels or array_layers is out of range of the image.
  • Panics if the view types doesn't match the dimensions of the image (for example a 2D view from a 3D image).
  • Panics if trying to create a cubemap with a number of array layers different from 6.
  • Panics if trying to create a cubemap array with a number of array layers not a multiple of 6.
  • Panics if the device or host ran out of memory.

pub fn format(&self) -> Format[src]

pub fn usage_transfer_source(&self) -> bool[src]

pub fn usage_transfer_destination(&self) -> bool[src]

pub fn usage_sampled(&self) -> bool[src]

pub fn usage_storage(&self) -> bool[src]

pub fn usage_color_attachment(&self) -> bool[src]

pub fn usage_depth_stencil_attachment(&self) -> bool[src]

pub fn usage_transient_attachment(&self) -> bool[src]

pub fn usage_input_attachment(&self) -> bool[src]

Trait Implementations

impl Debug for UnsafeImageView[src]

impl Drop for UnsafeImageView[src]

impl VulkanObject for UnsafeImageView[src]

type Object = u64

The type of the object.

Auto Trait Implementations

Blanket Implementations

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.

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

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

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

impl<T> Content for T[src]

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

impl<S> FromSample<S> for S[src]

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 
[src]

impl<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.