#[repr(C)]pub struct VkExtent2D {
pub width: u32,
pub height: u32,
}Fields§
§width: u32§height: u32Implementations§
Source§impl VkExtent2D
impl VkExtent2D
pub const fn with_depth(self, depth: u32) -> VkExtent3D
Source§impl VkExtent2D
Utility Constants
impl VkExtent2D
Utility Constants
Source§impl VkExtent2D
Viewport and Rect Util Functions
impl VkExtent2D
Viewport and Rect Util Functions
pub const fn into_rect(self, offset: VkOffset2D) -> VkRect2D
Trait Implementations§
Source§impl AsRef<VkExtent2D> for VkExtent2D
impl AsRef<VkExtent2D> for VkExtent2D
Source§impl AsRef<VkExtent2D> for VkExtent3D
impl AsRef<VkExtent2D> for VkExtent3D
Source§fn as_ref(&self) -> &VkExtent2D
fn as_ref(&self) -> &VkExtent2D
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for VkExtent2D
impl Clone for VkExtent2D
Source§fn clone(&self) -> VkExtent2D
fn clone(&self) -> VkExtent2D
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VkExtent2D
impl Debug for VkExtent2D
Source§impl From<VkExtent3D> for VkExtent2D
impl From<VkExtent3D> for VkExtent2D
Source§fn from(value: VkExtent3D) -> Self
fn from(value: VkExtent3D) -> Self
Converts to this type from the input type.
Source§impl Hash for VkExtent2D
impl Hash for VkExtent2D
Source§impl PartialEq for VkExtent2D
impl PartialEq for VkExtent2D
Source§fn eq(&self, other: &VkExtent2D) -> bool
fn eq(&self, other: &VkExtent2D) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for VkExtent2D
impl Eq for VkExtent2D
impl StructuralPartialEq for VkExtent2D
Auto Trait Implementations§
impl Freeze for VkExtent2D
impl RefUnwindSafe for VkExtent2D
impl Send for VkExtent2D
impl Sync for VkExtent2D
impl Unpin for VkExtent2D
impl UnsafeUnpin for VkExtent2D
impl UnwindSafe for VkExtent2D
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