Struct RenderSubmissionFence

Source
pub struct RenderSubmissionFence<RenderBackend: Backend> { /* private fields */ }
Expand description

A GPU fence is used to synchronize GPU operations. It is used to ensure that a GPU operation has completed before the CPU attempts to submit commands to it.

Implementations§

Source§

impl<RenderBackend: Backend> RenderSubmissionFence<RenderBackend>

Source

pub fn block_until_ready( &mut self, gpu: &mut Gpu<RenderBackend>, render_timeout_override: Option<u64>, )

Block a GPU until the fence is ready and then reset the fence status.

Source

pub fn destroy(self, gpu: &Gpu<RenderBackend>)

Destroy this fence given the GPU that created it.

Source§

impl<RenderBackend: Backend> RenderSubmissionFence<RenderBackend>

Source

pub fn internal_fence(&self) -> &RenderBackend::Fence

Retrieve the underlying fence.

Source

pub fn internal_fence_mut(&mut self) -> &mut RenderBackend::Fence

Retrieve a mutable reference to the underlying fence.

Auto Trait Implementations§

§

impl<RenderBackend> Freeze for RenderSubmissionFence<RenderBackend>
where <RenderBackend as Backend>::Fence: Freeze,

§

impl<RenderBackend> RefUnwindSafe for RenderSubmissionFence<RenderBackend>
where <RenderBackend as Backend>::Fence: RefUnwindSafe,

§

impl<RenderBackend> Send for RenderSubmissionFence<RenderBackend>

§

impl<RenderBackend> Sync for RenderSubmissionFence<RenderBackend>

§

impl<RenderBackend> Unpin for RenderSubmissionFence<RenderBackend>
where <RenderBackend as Backend>::Fence: Unpin,

§

impl<RenderBackend> UnwindSafe for RenderSubmissionFence<RenderBackend>
where <RenderBackend as Backend>::Fence: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V