Type Alias Offset3D

Source
pub type Offset3D = VkOffset3D;

Aliased Type§

#[repr(C)]
pub struct Offset3D { pub x: i32, pub y: i32, pub z: i32, }

Fields§

§x: i32§y: i32§z: i32

Implementations§

Source§

impl Offset3D

Source

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

Source

pub const fn new1(x: i32) -> Self

Source

pub const fn new2(x: i32, y: i32) -> Self

Source

pub const fn new(x: i32, y: i32, z: i32) -> Self

Source

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

Source§

impl Offset3D

Source

pub const fn xy(&self) -> Offset2D

Source

pub const fn xz(&self) -> Offset2D

Source

pub const fn yx(&self) -> Offset2D

Source

pub const fn yz(&self) -> Offset2D

Source

pub const fn zx(&self) -> Offset2D

Source

pub const fn zy(&self) -> Offset2D

Source§

impl Offset3D

Source

pub const ZERO: Self

Trait Implementations§

Source§

impl AsRef<VkOffset2D> for Offset3D

Source§

fn as_ref(&self) -> &Offset2D

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

impl AsRef<VkOffset3D> for Offset3D

Source§

fn as_ref(&self) -> &Self

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