Type Alias Extent2D

Source
pub type Extent2D = VkExtent2D;

Aliased Type§

#[repr(C)]
pub struct Extent2D { pub width: u32, pub height: u32, }

Fields§

§width: u32§height: u32

Implementations§

Source§

impl Extent2D

Source

pub const fn spread1(value: u32) -> Self

Source§

impl Extent2D

Source

pub const fn with_depth(self, depth: u32) -> Extent3D

Source§

impl Extent2D

Utility Constants

Source

pub const ONE: Self

Source§

impl Extent2D

Viewport and Rect Util Functions

Source

pub const fn into_rect(self, offset: Offset2D) -> Rect2D

Trait Implementations§

Source§

impl AsRef<VkExtent2D> for Extent2D

Source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl From<VkExtent3D> for Extent2D

Source§

fn from(value: Extent3D) -> Self

Converts to this type from the input type.