pub enum Fence {
TimelineSemaphore(Semaphore),
FencePool {
last_completed: FenceValue,
active: Vec<(FenceValue, Fence)>,
free: Vec<Fence>,
},
}
Variants§
TimelineSemaphore(Semaphore)
FencePool
Fields
§
last_completed: FenceValue
§
active: Vec<(FenceValue, Fence)>
The pending fence values have to be ascending.
Implementations§
source§impl Fence
impl Fence
fn check_active( device: &Device, max_value: FenceValue, active: &[(FenceValue, Fence)] ) -> Result<FenceValue, DeviceError>
fn get_latest( &self, device: &Device, extension: Option<&ExtensionFn<TimelineSemaphore>> ) -> Result<FenceValue, DeviceError>
fn maintain(&mut self, device: &Device) -> Result<(), DeviceError>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Fence
impl Send for Fence
impl Sync for Fence
impl Unpin for Fence
impl UnwindSafe for Fence
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