[][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,



Fields of Dim1d

width: u32

Fields of Dim1dArray

width: u32array_layers: u32

Fields of Dim2d

width: u32height: u32

Fields of Dim2dArray

width: u32height: u32array_layers: u32

Fields of Dim3d

width: u32height: u32depth: u32

Fields of Cubemap

size: u32

Fields of CubemapArray

size: u32array_layers: u32


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 Clone for Dimensions[src]

impl Copy for Dimensions[src]

impl Eq for Dimensions[src]

impl PartialEq<Dimensions> for Dimensions[src]

impl Debug for Dimensions[src]

impl StructuralPartialEq for Dimensions[src]

impl StructuralEq for Dimensions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Content for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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