Struct lambda_platform::gfx::fence::RenderSubmissionFenceBuilder
source · pub struct RenderSubmissionFenceBuilder { /* private fields */ }
Implementations§
source§impl RenderSubmissionFenceBuilder
impl RenderSubmissionFenceBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new Render Submission Fence Builder that defaults to a 1 second timeout for waiting on the fence.
sourcepub fn with_render_timeout(self, render_timeout: u64) -> Self
pub fn with_render_timeout(self, render_timeout: u64) -> Self
Provides a default render timeout in nanoseconds. This render timeout is used to reset the submission fence if it’s time-to-live expires.
sourcepub fn build<RenderBackend: Backend>(
self,
gpu: &mut Gpu<RenderBackend>
) -> RenderSubmissionFence<RenderBackend>
pub fn build<RenderBackend: Backend>(
self,
gpu: &mut Gpu<RenderBackend>
) -> RenderSubmissionFence<RenderBackend>
Builds a new submission fence using the provided GPU. This fence can only be used to block operation on the GPU that created it.