Struct vulkano::sync::Event
[−]
[src]
pub struct Event { // some fields omitted }
Used to block the GPU execution until an event on the CPU occurs.
Note that Vulkan implementations may have limits on how long a command buffer will wait for an event to be signaled, in order to avoid interfering with progress of other clients of the GPU. If the event isn't signaled within these limits, results are undefined and may include device loss.
Methods
impl Event
[src]
fn raw(device: &Arc<Device>) -> Result<Event, OomError>
See the docs of new().
fn new(device: &Arc<Device>) -> Arc<Event>
fn signaled(&self) -> Result<bool, OomError>
Returns true if the event is signaled.
fn set_raw(&self) -> Result<(), OomError>
See the docs of set().
fn set(&self)
Changes the Event
to the signaled state.
If a command buffer is waiting on this event, it is then unblocked.
Panic
- Panicks if the device or host ran out of memory.
fn reset_raw(&self) -> Result<(), OomError>
See the docs of reset().
fn reset(&self)
Trait Implementations
impl Debug for Event
[src]
impl SynchronizedVulkanObject for Event
[src]
type Object = Event
The type of the object.
fn internal_object_guard(&self) -> MutexGuard<Event>
Returns a reference to the object.