MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Tools / DestroyCommandPool

Function DestroyCommandPool

icd/generated/function_definitions.h:551–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549 return VK_SUCCESS;
550}
551static VKAPI_ATTR void VKAPI_CALL DestroyCommandPool(VkDevice device, VkCommandPool commandPool,
552 const VkAllocationCallbacks* pAllocator) {
553 // destroy command buffers for this pool
554 unique_lock_t lock(global_lock);
555 auto it = command_pool_buffer_map.find(commandPool);
556 if (it != command_pool_buffer_map.end()) {
557 for (auto& cb : it->second) {
558 DestroyDispObjHandle((void*)cb);
559 }
560 command_pool_buffer_map.erase(it);
561 }
562 command_pool_map[device].erase(commandPool);
563}
564static VKAPI_ATTR VkResult VKAPI_CALL ResetCommandPool(VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags) {
565 // Not a CREATE or DESTROY function
566 return VK_SUCCESS;

Callers

nothing calls this directly

Calls 1

DestroyDispObjHandleFunction · 0.85

Tested by

no test coverage detected