[][src]Struct rendy_command::Fence

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

Fence wrapper.

Methods

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.

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

pub fn new(device: &Device<B>, signaled: bool) -> Result<Self, 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::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::Fence[src]

Unwrap raw fence value. Panics if submitted.

Trait Implementations

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

Auto Trait Implementations

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

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

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

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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<T> Supports<T> for T[src]