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

pub struct UnsafeImageView { /* fields omitted */ }

Methods

impl UnsafeImageView
[src]

[src]

See the docs of new().

[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.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl VulkanObject for UnsafeImageView
[src]

The type of the object.

TYPE: DebugReportObjectTypeEXT = vk::DEBUG_REPORT_OBJECT_TYPE_IMAGE_VIEW_EXT

The DebugReportObjectTypeEXT of the internal Vulkan handle.

[src]

Returns a reference to the object.

impl Debug for UnsafeImageView
[src]

[src]

Formats the value using the given formatter. Read more

impl Drop for UnsafeImageView
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations