Type Alias Extent3D

Source
pub type Extent3D = VkExtent3D;

Aliased Type§

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

Fields§

§width: u32§height: u32§depth: u32

Implementations§

Source§

impl Extent3D

Source

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

Source

pub const fn new1(width: u32) -> Self

Source

pub const fn new2(width: u32, height: u32) -> Self

Source

pub const fn new(width: u32, height: u32, depth: u32) -> Self

Source

pub const fn as_2d_ref(&self) -> &VkExtent2D

Source§

impl Extent3D

Source

pub const fn wh(&self) -> Extent2D

Source

pub const fn wd(&self) -> Extent2D

Source

pub const fn hw(&self) -> Extent2D

Source

pub const fn hd(&self) -> Extent2D

Source

pub const fn dw(&self) -> Extent2D

Source

pub const fn dh(&self) -> Extent2D

Source§

impl Extent3D

Source

pub const ONE: Self

Trait Implementations§

Source§

impl AsRef<VkExtent2D> for Extent3D

Source§

fn as_ref(&self) -> &Extent2D

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

impl AsRef<VkExtent3D> for Extent3D

Source§

fn as_ref(&self) -> &Self

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