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
The viewport: where clip space lands in the targets.
Fields§
§x: f32Left edge of the viewport, in pixels.
y: f32Top edge of the viewport, in pixels (y runs down).
width: f32Width in pixels.
height: f32Height in pixels.
min_depth: f32The depth that clip-space z/w = 0 maps to.
max_depth: f32The depth that clip-space z/w = 1 maps to.
Trait Implementations§
impl Copy for Viewport
impl StructuralPartialEq for Viewport
Auto Trait Implementations§
impl Freeze 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