[][src]Struct amethyst_rendy::rendy::command::Fence

pub struct Fence<B> where
    B: Backend
{ /* fields omitted */ }

Fence wrapper.

Methods

impl<B> Fence<B> where
    B: Backend
[src]

pub fn new(device: &Device<B>, signaled: bool) -> Result<Fence<B>, OutOfMemory>[src]

Create new fence in signaled or unsignaled state.

pub fn is_submitted(&self) -> bool[src]

Check if fence was submitted.

pub fn is_signaled(&self) -> bool[src]

Check if fence is signaled.

pub fn is_unsignaled(&self) -> bool[src]

Check if fence is unsignaled. It can be submitted as well.

pub fn reset(&mut self, device: &Device<B>) -> Result<(), OutOfMemory>[src]

Reset signaled fence. Panics if not signaled. Becomes unsigneled.

pub unsafe fn mark_reset(&mut self)[src]

Mark signaled fence as reset. Panics if not signaled. Becomes unsigneled. Fence must be reset using raw fence value.

pub unsafe fn mark_signaled(&mut self) -> FenceEpoch[src]

Mark fence as signaled. Panics if not submitted. Fence must be checked to be signaled using raw fence value.

pub fn wait_signaled(
    &mut self,
    device: &Device<B>,
    timeout_ns: u64
) -> Result<Option<FenceEpoch>, OomOrDeviceLost>
[src]

Wait for fence to become signaled. Panics if not submitted. Returns submission epoch on success.

pub fn check_signaled(
    &mut self,
    device: &Device<B>
) -> Result<Option<FenceEpoch>, DeviceLost>
[src]

Check if fence has became signaled. Panics if not submitted. Returns submission epoch on success.

pub fn raw(&self) -> &<B as Backend>::Fence[src]

Get raw fence reference. Use mark_* functions to reflect stage changes.

pub fn epoch(&self) -> FenceEpoch[src]

Get submission epoch. Panics if not submitted.

pub fn into_inner(self) -> <B as Backend>::Fence[src]

Unwrap raw fence value. Panics if submitted.

impl<B> Fence<B> where
    B: Backend

pub fn device_id(&self) -> DeviceId

Get owned id.

pub fn assert_device_owner(&self, device: &Device<B>)

Assert specified device is owner.

pub fn instance_id(&self) -> InstanceId

Get owned id.

pub fn assert_instance_owner(&self, instance: &Instance<B>)

Assert specified instance is owner.

Trait Implementations

impl<B> Debug for Fence<B> where
    B: Debug + Backend,
    <B as Backend>::Fence: Debug
[src]

Auto Trait Implementations

impl<B> Unpin for Fence<B> where
    <B as Backend>::Fence: Unpin

impl<B> Sync for Fence<B> where
    <B as Backend>::Fence: Sync

impl<B> Send for Fence<B> where
    <B as Backend>::Fence: Send

impl<B> UnwindSafe for Fence<B> where
    <B as Backend>::Fence: UnwindSafe

impl<B> RefUnwindSafe for Fence<B> where
    <B as Backend>::Fence: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

fn adapt_into(self) -> D[src]

Convert the source color to the destination color using the bradford method by default Read more

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Supports<T> for T[src]

impl<T> Erased for T[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 
[src]