#[repr(C)]pub struct Viewport {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub min_depth: f32,
pub max_depth: f32,
}Expand description
Native structure VkViewport.
Fields§
§x: f32Native field x.
y: f32Native field y.
width: f32Native field width.
height: f32Native field height.
min_depth: f32Native field minDepth.
max_depth: f32Native field maxDepth.
Implementations§
Source§impl Viewport
impl Viewport
Sourcepub fn set_height(self, value: f32) -> Self
pub fn set_height(self, value: f32) -> Self
Set native field height without native effects.
Sourcepub fn set_min_depth(self, value: f32) -> Self
pub fn set_min_depth(self, value: f32) -> Self
Set native field minDepth without native effects.
Sourcepub fn set_max_depth(self, value: f32) -> Self
pub fn set_max_depth(self, value: f32) -> Self
Set native field maxDepth without native effects.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Viewport
impl Freeze for Viewport
impl Move for Viewport
impl RefUnwindSafe for Viewport
impl Send for Viewport
impl Sync for Viewport
impl Unpin for Viewport
impl UnsafeUnpin for Viewport
impl UnwindSafe for Viewport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more