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

pub struct UnsafeImageView { /* fields omitted */ }

Methods

impl UnsafeImageView
[src]

See the docs of new().

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.

Trait Implementations

impl VulkanObject for UnsafeImageView
[src]

The type of the object.

Returns a reference to the object.

impl Debug for UnsafeImageView
[src]

Formats the value using the given formatter.

impl Drop for UnsafeImageView
[src]

A method called when the value goes out of scope. Read more