Enum vulkano::image::Dimensions
[−]
[src]
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
width: u32 |
Dim1dArray
Fields
width: u32 | |
array_layers: u32 |
Dim2d
Fields
width: u32 | |
height: u32 |
Dim2dArray
Fields
width: u32 | |
height: u32 | |
array_layers: u32 |
Dim3d
Fields
width: u32 | |
height: u32 | |
depth: u32 |
Cubemap
Fields
size: u32 |
CubemapArray
Fields
size: u32 | |
array_layers: u32 |
Methods
impl Dimensions
[src]
fn width(&self) -> u32
fn height(&self) -> u32
fn width_height(&self) -> [u32; 2]
fn depth(&self) -> u32
fn array_layers(&self) -> u32
fn array_layers_with_cube(&self) -> u32
fn to_image_dimensions(&self) -> ImageDimensions
Builds the corresponding ImageDimensions
.
fn to_view_type(&self) -> ViewType
Builds the corresponding ViewType
.
Trait Implementations
impl Copy for Dimensions
[src]
impl Clone for Dimensions
[src]
fn clone(&self) -> Dimensions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Dimensions
[src]
impl PartialEq for Dimensions
[src]
fn eq(&self, __arg_0: &Dimensions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Dimensions) -> bool
This method tests for !=
.