pub enum ImageDimensions {
Dim1d {
width: u32,
array_layers: u32,
},
Dim2d {
width: u32,
height: u32,
array_layers: u32,
},
Dim3d {
width: u32,
height: u32,
depth: u32,
},
}Variants§
Implementations§
Source§impl ImageDimensions
impl ImageDimensions
pub fn new_from_extent_and_layers( extent_3d: Extent3D, array_layers: u32, ) -> Self
pub fn new_1d(width: u32) -> Self
pub fn new_1d_array(width: u32, array_layers: u32) -> Self
pub fn new_2d(width: u32, height: u32) -> Self
pub fn new_2d_array(width: u32, height: u32, array_layers: u32) -> Self
pub fn new_3d(width: u32, height: u32, depth: u32) -> Self
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn width_height(&self) -> [u32; 2]
pub fn depth(&self) -> u32
pub fn extent_3d(&self) -> Extent3D
pub fn array_layers(&self) -> u32
pub fn num_texels(&self) -> u32
pub fn image_type(&self) -> ImageType
pub fn default_image_view_type(&self) -> ImageViewType
pub fn whole_viewport(&self) -> Viewport
Trait Implementations§
Source§impl Clone for ImageDimensions
impl Clone for ImageDimensions
Source§fn clone(&self) -> ImageDimensions
fn clone(&self) -> ImageDimensions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageDimensions
impl Debug for ImageDimensions
Source§impl Default for ImageDimensions
impl Default for ImageDimensions
Source§impl PartialEq for ImageDimensions
impl PartialEq for ImageDimensions
impl Copy for ImageDimensions
impl Eq for ImageDimensions
impl StructuralPartialEq for ImageDimensions
Auto Trait Implementations§
impl Freeze for ImageDimensions
impl RefUnwindSafe for ImageDimensions
impl Send for ImageDimensions
impl Sync for ImageDimensions
impl Unpin for ImageDimensions
impl UnwindSafe for ImageDimensions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more