text: #include "m4c0/vulkan/command_pool.hpp"
  #include "m4c0/vulkan/loader.hpp"
  #include "m4c0/vulkan/safe_calls.hpp"
  
  #include <array>
  
  using namespace m4c0::vulkan;
  
  command_pool command_pool::create_resettable_for_queue_family(int qf) {
    VkCommandPoolCreateInfo info {};
    info.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
    info.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT;
    info.queueFamilyIndex = qf;
    return command_pool { details::safe_create_d<VkCommandPool>(vkCreateCommandPool, &info) };
  }
  
  template<>
  void details::base_handle<VkCommandPool_T>::reset() {
    safe_destroy_d(vkDestroyCommandPool, this);
  }
  