destroys the specified command pool, returns true on success
| 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, |