[−][src]Struct rendy_command::Fence
Fence wrapper.
Methods
impl<B> Fence<B> where
B: Backend,
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]
B: Backend,
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]
&mut self,
device: &Device<B>,
timeout_ns: u64
) -> Result<Option<FenceEpoch>, OomOrDeviceLost>
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]
&mut self,
device: &Device<B>
) -> Result<Option<FenceEpoch>, DeviceLost>
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
Auto Trait Implementations
impl<B> Unpin for Fence<B> where
<B as Backend>::Fence: Unpin,
<B as Backend>::Fence: Unpin,
impl<B> Sync for Fence<B> where
<B as Backend>::Fence: Sync,
<B as Backend>::Fence: Sync,
impl<B> Send for Fence<B> where
<B as Backend>::Fence: Send,
<B as Backend>::Fence: Send,
impl<B> UnwindSafe for Fence<B> where
<B as Backend>::Fence: UnwindSafe,
<B as Backend>::Fence: UnwindSafe,
impl<B> RefUnwindSafe for Fence<B> where
<B as Backend>::Fence: RefUnwindSafe,
<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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Supports<T> for T
[src]
impl<T> SetParameter for T
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
T: Parameter<Self>,
Sets value
as a parameter of self
.