pub struct Fence {
last_completed: AtomicFenceValue,
pending: Vec<GLFence>,
fence_mode: GlFenceBehavior,
}
Available on
gles
only.Fields§
§last_completed: AtomicFenceValue
§pending: Vec<GLFence>
§fence_mode: GlFenceBehavior
Implementations§
source§impl Fence
impl Fence
pub fn new(options: &GlBackendOptions) -> Self
pub fn signal( &mut self, gl: &Context, value: FenceValue, ) -> Result<(), DeviceError>
pub fn satisfied(&self, value: FenceValue) -> bool
pub fn get_latest(&self, gl: &Context) -> FenceValue
pub fn maintain(&mut self, gl: &Context)
pub fn wait( &self, gl: &Context, wait_value: FenceValue, timeout_ns: u64, ) -> Result<bool, DeviceError>
pub fn destroy(self, gl: &Context)
Trait Implementations§
source§impl DynResource for Fence
impl DynResource for Fence
impl DynFence for Fence
impl Send for Fence
Available on
send_sync
only.impl Sync for Fence
Available on
send_sync
only.Auto Trait Implementations§
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