namespace Brutal.VulkanApi { /// /// VkQueue - Opaque handle to a queue object /// /// /// /// Creating a logical device also creates the queues associated with that /// device. /// The queues to create are described by a set of VkDeviceQueueCreateInfo /// structures that are passed to vkCreateDevice in /// pQueueCreateInfos. /// Queues cannot: be independently destroyed, and are instead destroyed with /// the VkDevice that they were created from. /// /// /// Queues are represented by VkQueue handles: /// /// /// // Provided by VK_VERSION_1_0 /// VK_DEFINE_HANDLE(VkQueue) /// /// public readonly unsafe struct VkQueue : IVulkanHandle { /// public VkObjectType VkObjectType => VkObjectType.Queue; /// public nint VkHandle { get; } /// Construct from an existing pointer public VkQueue(nint handle) { VkHandle = handle; } /// public bool IsNull() { return VkHandle == 0; } public static VkQueue NullHandle = new(); } }