| 127 | unprotected((create_info->flags & VK_COMMAND_POOL_CREATE_PROTECTED_BIT) == 0) {} |
| 128 | |
| 129 | void CommandPool::Allocate(const VkCommandBufferAllocateInfo* allocate_info, const VkCommandBuffer* command_buffers) { |
| 130 | for (uint32_t i = 0; i < allocate_info->commandBufferCount; i++) { |
| 131 | auto new_cb = dev_data.CreateCmdBufferState(command_buffers[i], allocate_info, *this); |
| 132 | commandBuffers.emplace(command_buffers[i], new_cb.get()); |
| 133 | dev_data.Add(std::move(new_cb)); |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | void CommandPool::Free(uint32_t count, const VkCommandBuffer* command_buffers) { |
| 138 | for (uint32_t i = 0; i < count; i++) { |
nothing calls this directly
no test coverage detected