Struct screen_13::FrameContext
source · [−]pub struct FrameContext<'a, P> where
P: SharedPointerKind, {
pub device: &'a Shared<Device<P>, P>,
pub dt: f32,
pub render_graph: &'a mut RenderGraph<P>,
pub resolution: UVec2,
pub events: &'a [Event<'a, ()>],
pub swapchain: SwapchainImageNode<P>,
pub will_exit: &'a mut bool,
pub window: &'a Window,
}Fields
device: &'a Shared<Device<P>, P>dt: f32render_graph: &'a mut RenderGraph<P>resolution: UVec2events: &'a [Event<'a, ()>]swapchain: SwapchainImageNode<P>will_exit: &'a mut boolwindow: &'a WindowImplementations
sourceimpl<P> FrameContext<'_, P> where
P: SharedPointerKind,
impl<P> FrameContext<'_, P> where
P: SharedPointerKind,
pub fn render_aspect_ratio(&self) -> f32
pub fn center_cursor(&self)
pub fn move_cursor(&self, position: &UVec2)
Auto Trait Implementations
impl<'a, P> !RefUnwindSafe for FrameContext<'a, P>
impl<'a, P> !Send for FrameContext<'a, P>
impl<'a, P> !Sync for FrameContext<'a, P>
impl<'a, P> Unpin for FrameContext<'a, P> where
P: Unpin,
impl<'a, P> !UnwindSafe for FrameContext<'a, P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more