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.
Auto Trait Implementations§
impl Freeze for RenderSubmissionFenceBuilder
impl RefUnwindSafe for RenderSubmissionFenceBuilder
impl Send for RenderSubmissionFenceBuilder
impl Sync for RenderSubmissionFenceBuilder
impl Unpin for RenderSubmissionFenceBuilder
impl UnwindSafe for RenderSubmissionFenceBuilder
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