pub struct Viewport(/* private fields */);Expand description
Wrapper around D3D12_VIEWPORT structure
Implementations§
Source§impl Viewport
impl Viewport
pub fn set_top_left_x(&mut self, top_left_x: f32) -> &mut Self
pub fn with_top_left_x(self, top_left_x: f32) -> Self
pub fn top_left_x(&self) -> f32
pub fn set_top_left_y(&mut self, top_left_y: f32) -> &mut Self
pub fn with_top_left_y(self, top_left_y: f32) -> Self
pub fn top_left_y(&self) -> f32
pub fn set_width(&mut self, width: f32) -> &mut Self
pub fn with_width(self, width: f32) -> Self
pub fn width(&self) -> f32
pub fn set_height(&mut self, height: f32) -> &mut Self
pub fn with_height(self, height: f32) -> Self
pub fn height(&self) -> f32
pub fn set_min_depth(&mut self, min_depth: f32) -> &mut Self
pub fn with_min_depth(self, min_depth: f32) -> Self
pub fn min_depth(&self) -> f32
pub fn set_max_depth(&mut self, max_depth: f32) -> &mut Self
pub fn with_max_depth(self, max_depth: f32) -> Self
pub fn max_depth(&self) -> f32
Trait Implementations§
Source§impl PartialOrd for Viewport
impl PartialOrd for Viewport
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 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