pub struct ViewFrame<'a> {
pub view: &'a mut View,
pub input: &'a FrameInput,
pub settings: &'a Settings,
pub output: &'a TextureView,
pub timing: Option<&'a GpuTiming>,
}Expand description
One view’s part of a frame (Renderer::render): the view, its
camera and frame values, its settings and the texture it renders into,
a view of its output format and size (offscreen or a surface’s). Scene
work is timed with the primary view’s timing.
Fields§
§view: &'a mut View§input: &'a FrameInput§settings: &'a Settings§output: &'a TextureView§timing: Option<&'a GpuTiming>Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ViewFrame<'a>
impl<'a> !Send for ViewFrame<'a>
impl<'a> !Sync for ViewFrame<'a>
impl<'a> !UnwindSafe for ViewFrame<'a>
impl<'a> Forget for ViewFrame<'a>
impl<'a> Freeze for ViewFrame<'a>
impl<'a> Move for ViewFrame<'a>
impl<'a> Unpin for ViewFrame<'a>
impl<'a> UnsafeUnpin for ViewFrame<'a>
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