Struct dacite::core::Extent3D
[−]
[src]
pub struct Extent3D { pub width: u32, pub height: u32, pub depth: u32, }
See VkExtent3D
Fields
width: u32
height: u32
depth: u32
Methods
impl Extent3D
[src]
fn new(width: u32, height: u32, depth: u32) -> Self
Creates a new Extent3D
.
fn zero() -> Self
Creates an Extent3D
with all components set to 0.
fn from_2d(extent: &Extent2D, depth: u32) -> Self
Creates an Extent3D
from an Extent2D
and the specified depth
component.
Trait Implementations
impl Debug for Extent3D
[src]
impl Copy for Extent3D
[src]
impl Clone for Extent3D
[src]
fn clone(&self) -> Extent3D
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 PartialEq for Extent3D
[src]
fn eq(&self, __arg_0: &Extent3D) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Extent3D) -> bool
This method tests for !=
.
impl Eq for Extent3D
[src]
impl Hash for Extent3D
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'a> From<&'a VkExtent3D> for Extent3D
[src]
fn from(extent: &'a VkExtent3D) -> Self
Performs the conversion.