Struct lambda::render::RenderContextBuilder
source · 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.