[][src]Enum vulkano::image::Dimensions

pub enum Dimensions {
    Dim1d {
        width: u32,
    },
    Dim1dArray {
        width: u32,
        array_layers: u32,
    },
    Dim2d {
        width: u32,
        height: u32,
    },
    Dim2dArray {
        width: u32,
        height: u32,
        array_layers: u32,
    },
    Dim3d {
        width: u32,
        height: u32,
        depth: u32,
    },
    Cubemap {
        size: u32,
    },
    CubemapArray {
        size: u32,
        array_layers: u32,
    },
}

Variants

Dim1d

Fields of Dim1d

width: u32
Dim1dArray

Fields of Dim1dArray

width: u32array_layers: u32
Dim2d

Fields of Dim2d

width: u32height: u32
Dim2dArray

Fields of Dim2dArray

width: u32height: u32array_layers: u32
Dim3d

Fields of Dim3d

width: u32height: u32depth: u32
Cubemap

Fields of Cubemap

size: u32
CubemapArray

Fields of CubemapArray

size: u32array_layers: u32

Methods

impl Dimensions[src]

pub fn width(&self) -> u32[src]

pub fn height(&self) -> u32[src]

pub fn width_height(&self) -> [u32; 2][src]

pub fn depth(&self) -> u32[src]

pub fn width_height_depth(&self) -> [u32; 3][src]

pub fn array_layers(&self) -> u32[src]

pub fn array_layers_with_cube(&self) -> u32[src]

pub fn to_image_dimensions(&self) -> ImageDimensions[src]

Builds the corresponding ImageDimensions.

pub fn to_view_type(&self) -> ViewType[src]

Builds the corresponding ViewType.

pub fn num_texels(&self) -> u32[src]

Returns the total number of texels for an image of these dimensions.

Trait Implementations

impl Eq for Dimensions[src]

impl Clone for Dimensions[src]

impl PartialEq<Dimensions> for Dimensions[src]

impl Copy for Dimensions[src]

impl Debug for Dimensions[src]

Auto Trait Implementations

impl Send for Dimensions

impl Unpin for Dimensions

impl Sync for Dimensions

impl UnwindSafe for Dimensions

impl RefUnwindSafe for Dimensions

Blanket Implementations

impl<T> Content for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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.

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

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

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