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

pub struct UnsafeImageView { /* fields omitted */ }
Expand description

A low-level wrapper around a vkImageView.

Implementations

Creates a new view from an image.

Safety
  • The returned UnsafeImageView must not outlive image.
  • image must have a usage that is compatible with image views.
  • ty must be compatible with the dimensions and flags of the image.
  • mipmap_levels must not be empty, must be within the range of levels of the image, and be compatible with the requested ty.
  • array_layers must not be empty, must be within the range of layers of the image, and be compatible with the requested ty.
Panics

Panics if the image is a YcbCr image, since the Vulkano API is not yet flexible enough to specify the aspect of image.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type of the object.

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.

Performs the conversion.

Performs the conversion.

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.