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

Method create_cmd_pool

src/device/vulkan/vulkan_queue.cpp:511–520  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

509
510 //! creates a new command pool, returning a *non-owning* reference to it
511 static vulkan_command_pool_t* create_cmd_pool(const vulkan_device& dev, const vulkan_queue& queue, const bool is_secondary) {
512 auto cmd_pool = std::make_unique<vulkan_command_pool_t>(dev, queue, is_secondary);
513 auto cmd_pool_ret = cmd_pool.get();
514 {
515 GUARD(cmd_pools_lock);
516 vulkan_command_pool_t* cmd_pool_ptr = cmd_pool.get();
517 cmd_pools.emplace(std::move(cmd_pool_ptr), std::move(cmd_pool));
518 }
519 return cmd_pool_ret;
520 }
521
522 //! destroys the specified command pool, returns true on success
523 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