pub struct Viewport { /* private fields */ }Implementations§
Source§impl Viewport
impl Viewport
pub fn new(device: &Device, cache: &Cache) -> Self
pub fn update(&mut self, queue: &Queue, resolution: Resolution)
pub fn resolution(&self) -> Resolution
Trait Implementations§
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