pub struct UnsafeImageView { /* private fields */ }

Implementations

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

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
The type of the object.
The DebugReportObjectTypeEXT of the internal Vulkan handle.
Returns a reference to the object.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.