pub struct Event { /* private fields */ }Expand description
A counter command buffers wait on
(CommandBuffer::wait_event) and the CPU raises
(signal). Waiters for a value run once the counter reaches it.
Implementations§
Source§impl Event
impl Event
Sourcepub fn signal(&self, value: u64)
pub fn signal(&self, value: u64)
Raises the counter to value, releasing GPU work that waits for it.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Event
impl !UnwindSafe for Event
impl Freeze for Event
impl Unpin for Event
impl UnsafeUnpin for Event
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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