Struct vulkano::sync::Event [−][src]
pub struct Event { /* 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.
Implementations
impl Event
[src]
impl Event
[src]pub fn from_pool(device: Arc<Device>) -> Result<Event, OomError>
[src]
pub fn from_pool(device: Arc<Device>) -> Result<Event, OomError>
[src]Takes an event from the vulkano-provided event pool.
If the pool is empty, a new event will be allocated.
Upon drop
, the event is put back into the pool.
For most applications, using the event pool should be preferred, in order to avoid creating new events every frame.
Trait Implementations
impl DeviceOwned for Event
[src]
impl DeviceOwned for Event
[src]impl VulkanObject for Event
[src]
impl VulkanObject for Event
[src]const TYPE: ObjectType
[src]
const TYPE: ObjectType
[src]The ObjectType
of the internal Vulkan handle.
fn internal_object(&self) -> Event
[src]
fn internal_object(&self) -> Event
[src]Returns a reference to the object.
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]Builds a pointer to this type from a raw pointer.
pub fn is_size_suitable(usize) -> bool
[src]
pub fn is_size_suitable(usize) -> bool
[src]Returns true if the size is suitable to store a type like this.
pub fn indiv_size() -> usize
[src]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.