MCPcopy Create free account
hub / github.com/a2flo/floor / destroy_cmd_pool

Method destroy_cmd_pool

compute/vulkan/vulkan_queue.cpp:503–510  ·  view source on GitHub ↗

destroys the specified command pool, returns true on success

Source from the content-addressed store, hash-verified

501
502 //! destroys the specified command pool, returns true on success
503 static bool destroy_cmd_pool(vulkan_command_pool_t* cmd_pool) {
504 GUARD(cmd_pools_lock);
505 if (auto cmd_pool_iter = cmd_pools.find(cmd_pool); cmd_pool_iter != cmd_pools.end()) {
506 cmd_pools.erase(cmd_pool_iter);
507 return true;
508 }
509 return false;
510 }
511};
512
513//! since command pools are created per-thread and we don't necessarily have a clean direct way of destructing command pool resources,

Callers

nothing calls this directly

Calls 3

findMethod · 0.80
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected