Type Alias Rect2D

Source
pub type Rect2D = VkRect2D;

Aliased Type§

#[repr(C)]
pub struct Rect2D { pub offset: VkOffset2D, pub extent: VkExtent2D, }

Fields§

§offset: VkOffset2D§extent: VkExtent2D

Implementations§

Source§

impl Rect2D

Source

pub const fn make_viewport(&self, depth_range: Range<f32>) -> Viewport

Trait Implementations§

Source§

impl From<VkViewport> for Rect2D

Source§

fn from(vp: Viewport) -> Self

Converts to this type from the input type.