vulkan: Implement of a bunch of VkCommandPool functions

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14917>
This commit is contained in:
Jason Ekstrand
2022-02-07 13:11:19 -06:00
committed by Marge Bot
parent f424d1e9ab
commit 37f3da90dd
4 changed files with 123 additions and 0 deletions
+11
View File
@@ -25,6 +25,7 @@
#define VK_COMMAND_BUFFER_H
#include "vk_object.h"
#include "util/list.h"
#include "util/u_dynarray.h"
#ifdef __cplusplus
@@ -41,6 +42,16 @@ struct vk_command_buffer {
/** VkCommandBufferAllocateInfo::level */
VkCommandBufferLevel level;
/** Link in vk_command_pool::command_buffers if pool != NULL */
struct list_head pool_link;
/** Destroys the command buffer
*
* Used by the common command pool implementation. This function MUST
* call vk_command_buffer_finish().
*/
void (*destroy)(struct vk_command_buffer *);
/**
* VK_EXT_debug_utils
*