Type Alias Viewport

Source
pub type Viewport = VkViewport;

Aliased Type§

#[repr(C)]
pub struct Viewport { pub x: f32, pub y: f32, pub width: f32, pub height: f32, pub minDepth: f32, pub maxDepth: f32, }

Fields§

§x: f32§y: f32§width: f32§height: f32§minDepth: f32§maxDepth: f32

Implementations§

Source§

impl Viewport

Source

pub const fn from_rect_with_depth_range( rect: &Rect2D, depth_range: Range<f32>, ) -> Self

Source

pub const fn set_offset(&mut self, offset: &Offset2D) -> &mut Self

Source

pub const fn set_extent(&mut self, extent: &Extent2D) -> &mut Self

Source

pub const fn set_depth_range(&mut self, range: Range<f32>) -> &mut Self