Struct voodoo::Event
[−]
[src]
pub struct Event { /* fields omitted */ }
An event.
Destruction
Dropping this Event
will cause Device::destroy_event
to be called,
automatically releasing any resources associated with it.
Methods
impl Event
[src]
pub fn new(device: Device, flags: EventCreateFlags) -> VdResult<Event>
[src]
pub fn handle(&self) -> EventHandle
[src]
Returns this object's handle.
pub fn device(&self) -> &Device
[src]
Returns a reference to this object's associated device.
pub fn set(&self) -> VdResult<()>
[src]
Sets this event to signaled state.
https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkSetEvent.html
pub fn reset(&self) -> VdResult<()>
[src]
Resets this event to non-signaled state.
https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkResetEvent.html
pub fn status(&self) -> VdResult<EventStatus>
[src]
Retrieves the status of this event object.
https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkGetEventStatus.html
Trait Implementations
impl Debug for Event
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Event
[src]
fn clone(&self) -> Event
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more