namespace Brutal.VulkanApi { /// /// VkCommandBuffer - Opaque handle to a command buffer object /// /// /// /// Command buffers are objects used to record commands which can be /// subsequently submitted to a device queue for execution. /// There are two levels of command buffers - primary command buffers, which /// can execute secondary command buffers, and which are submitted to queues, /// and secondary command buffers, which can be executed by primary command /// buffers, and which are not directly submitted to queues. /// /// /// Command buffers are represented by VkCommandBuffer handles: /// /// /// // Provided by VK_VERSION_1_0 /// VK_DEFINE_HANDLE(VkCommandBuffer) /// /// public readonly unsafe struct VkCommandBuffer : IVulkanHandle { /// public VkObjectType VkObjectType => VkObjectType.CommandBuffer; /// public nint VkHandle { get; } /// Construct from an existing pointer public VkCommandBuffer(nint handle) { VkHandle = handle; } /// public bool IsNull() { return VkHandle == 0; } public static VkCommandBuffer NullHandle = new(); } }