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

Method create_cmd_pool

compute/vulkan/vulkan_queue.cpp:491–500  ·  view source on GitHub ↗

creates a new command pool, returning a *non-owning* reference to it

Source from the content-addressed store, hash-verified

489
490 //! creates a new command pool, returning a *non-owning* reference to it
491 static vulkan_command_pool_t* create_cmd_pool(const vulkan_device& dev, const vulkan_queue& queue, const bool is_secondary) {
492 auto cmd_pool = make_unique<vulkan_command_pool_t>(dev, queue, is_secondary);
493 auto cmd_pool_ret = cmd_pool.get();
494 {
495 GUARD(cmd_pools_lock);
496 vulkan_command_pool_t* cmd_pool_ptr = cmd_pool.get();
497 cmd_pools.emplace(std::move(cmd_pool_ptr), std::move(cmd_pool));
498 }
499 return cmd_pool_ret;
500 }
501
502 //! destroys the specified command pool, returns true on success
503 static bool destroy_cmd_pool(vulkan_command_pool_t* cmd_pool) {

Callers

nothing calls this directly

Calls 2

emplaceMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected