Type Alias Offset2D

Source
pub type Offset2D = VkOffset2D;

Aliased Type§

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

Fields§

§x: i32§y: i32

Implementations§

Source§

impl Offset2D

Source

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

Source§

impl Offset2D

Source

pub const fn with_z(self, z: i32) -> Offset3D

Source§

impl Offset2D

Source

pub const ZERO: Self

Trait Implementations§

Source§

impl AsRef<VkOffset2D> for Offset2D

Source§

fn as_ref(&self) -> &Self

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

impl From<VkOffset3D> for Offset2D

Source§

fn from(value: Offset3D) -> Self

Converts to this type from the input type.