| 549 | return VK_SUCCESS; |
| 550 | } |
| 551 | static 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 | } |
| 564 | static VKAPI_ATTR VkResult VKAPI_CALL ResetCommandPool(VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags) { |
| 565 | // Not a CREATE or DESTROY function |
| 566 | return VK_SUCCESS; |
nothing calls this directly
no test coverage detected