From 24c9dabfbb2ce60c0a6d8945e6c7de05199c33cf Mon Sep 17 00:00:00 2001 From: bjorn Date: Thu, 26 May 2022 14:34:37 -0700 Subject: [PATCH] aux/vk: Add vkResetCommandPool; --- scripts/generate_vk_helpers.py | 1 + src/xrt/auxiliary/vk/vk_function_loaders.c | 1 + src/xrt/auxiliary/vk/vk_helpers.h | 1 + 3 files changed, 3 insertions(+) diff --git a/scripts/generate_vk_helpers.py b/scripts/generate_vk_helpers.py index ff3285431..14389745e 100755 --- a/scripts/generate_vk_helpers.py +++ b/scripts/generate_vk_helpers.py @@ -48,6 +48,7 @@ def get_device_cmds(): None, Cmd("vkCreateCommandPool"), Cmd("vkDestroyCommandPool"), + Cmd("vkResetCommandPool"), None, Cmd("vkAllocateCommandBuffers"), Cmd("vkBeginCommandBuffer"), diff --git a/src/xrt/auxiliary/vk/vk_function_loaders.c b/src/xrt/auxiliary/vk/vk_function_loaders.c index 90e2e6b17..38e79073a 100644 --- a/src/xrt/auxiliary/vk/vk_function_loaders.c +++ b/src/xrt/auxiliary/vk/vk_function_loaders.c @@ -183,6 +183,7 @@ vk_get_device_functions(struct vk_bundle *vk) vk->vkCreateCommandPool = GET_DEV_PROC(vk, vkCreateCommandPool); vk->vkDestroyCommandPool = GET_DEV_PROC(vk, vkDestroyCommandPool); + vk->vkResetCommandPool = GET_DEV_PROC(vk, vkResetCommandPool); vk->vkAllocateCommandBuffers = GET_DEV_PROC(vk, vkAllocateCommandBuffers); vk->vkBeginCommandBuffer = GET_DEV_PROC(vk, vkBeginCommandBuffer); diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h index b8ec99898..5f1520cb9 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.h +++ b/src/xrt/auxiliary/vk/vk_helpers.h @@ -247,6 +247,7 @@ struct vk_bundle PFN_vkCreateCommandPool vkCreateCommandPool; PFN_vkDestroyCommandPool vkDestroyCommandPool; + PFN_vkResetCommandPool vkResetCommandPool; PFN_vkAllocateCommandBuffers vkAllocateCommandBuffers; PFN_vkBeginCommandBuffer vkBeginCommandBuffer;