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

pub struct UnsafeImageView { /* fields omitted */ }

A low-level wrapper around a vkImageView.

Implementations

impl UnsafeImageView[src]

pub unsafe fn new(
    image: &UnsafeImage,
    ty: ImageViewType,
    component_mapping: ComponentMapping,
    mipmap_levels: Range<u32>,
    array_layers: Range<u32>
) -> Result<UnsafeImageView, OomError>
[src]

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

impl Debug for UnsafeImageView[src]

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl Drop for UnsafeImageView[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

impl Hash for UnsafeImageView[src]

fn hash<H: Hasher>(&self, state: &mut H)[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

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

impl PartialEq<UnsafeImageView> for UnsafeImageView[src]

fn eq(&self, other: &Self) -> bool[src]

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl VulkanObject for UnsafeImageView[src]

type Object = ImageView

The type of the object.

const TYPE: ObjectType[src]

The ObjectType of the internal Vulkan handle.

fn internal_object(&self) -> ImageView[src]

Returns a reference to the object.

impl Eq for UnsafeImageView[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Content for T[src]

pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>[src]

Builds a pointer to this type from a raw pointer.

pub fn is_size_suitable(usize) -> bool[src]

Returns true if the size is suitable to store a type like this.

pub fn indiv_size() -> usize[src]

Returns the size of an individual element.

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.