namespace Brutal.VulkanApi { /// /// VkEvent - Opaque handle to an event object /// /// /// /// Events are a synchronization primitive that can be used to insert a /// fine-grained dependency between commands submitted to the same queue, or /// between the host and a queue. /// Events must not be used to insert a dependency between commands submitted /// to different queues. /// Events have two states - signaled and unsignaled. /// An application can signal or unsignal an event either on the host or on the /// device. /// A device can be made to wait for an event to become signaled before /// executing further operations. /// No command exists to wait for an event to become signaled on the host, but /// the current state of an event can be queried. /// /// /// Events are represented by VkEvent handles: /// /// /// // Provided by VK_VERSION_1_0 /// VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkEvent) /// /// public readonly unsafe struct VkEvent : IVulkanHandle { /// public VkObjectType VkObjectType => VkObjectType.Event; /// public nint VkHandle { get; } /// Construct from an existing pointer public VkEvent(nint handle) { VkHandle = handle; } /// public bool IsNull() { return VkHandle == 0; } public static VkEvent NullHandle = new(); } }