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