pub struct RenderContextBuilder { /* private fields */ }
Expand description
A RenderContext is a localized rendering context that can be used to render to a window. It is localized to a single window at the moment.
Implementations§
Source§impl RenderContextBuilder
impl RenderContextBuilder
Sourcepub fn with_render_timeout(self, render_timeout: u64) -> Self
pub fn with_render_timeout(self, render_timeout: u64) -> Self
The time rendering has to complete before a timeout occurs.
Sourcepub fn build(self, window: &Window) -> RenderContext
pub fn build(self, window: &Window) -> RenderContext
Builds a RenderContext and injects it into the application window. Currently only supports building a Rendering Context utilizing the systems primary GPU.
Auto Trait Implementations§
impl Freeze for RenderContextBuilder
impl RefUnwindSafe for RenderContextBuilder
impl Send for RenderContextBuilder
impl Sync for RenderContextBuilder
impl Unpin for RenderContextBuilder
impl UnwindSafe for RenderContextBuilder
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