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

pub struct UnsafeImageView { /* fields omitted */ }

Implementations

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 = ImageView

The type of the object.

Auto Trait Implementations

impl RefUnwindSafe for UnsafeImageView

impl Send for UnsafeImageView

impl Sync for UnsafeImageView

impl Unpin for UnsafeImageView

impl UnwindSafe for UnsafeImageView

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.