namespace Brutal.VulkanApi { /// /// VkCommandPool - Opaque handle to a command pool object /// /// /// /// Command pools are opaque objects that command buffer memory is allocated /// from, and which allow the implementation to amortize the cost of resource /// creation across multiple command buffers. /// Command pools are externally synchronized, meaning that a command pool must /// not be used concurrently in multiple threads. /// That includes use via recording commands on any command buffers allocated /// from the pool, as well as operations that allocate, free, and reset command /// buffers or the pool itself. /// /// /// Command pools are represented by VkCommandPool handles: /// /// /// // Provided by VK_VERSION_1_0 /// VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkCommandPool) /// /// public readonly unsafe struct VkCommandPool : IVulkanHandle { /// public VkObjectType VkObjectType => VkObjectType.CommandPool; /// public nint VkHandle { get; } /// Construct from an existing pointer public VkCommandPool(nint handle) { VkHandle = handle; } /// public bool IsNull() { return VkHandle == 0; } public static VkCommandPool NullHandle = new(); } }