vk_command_pool: Move definition of Pool into the cpp file
Allows the implementation details to be changed without recompiling any files that include this header.
This commit is contained in:
parent
4ed4bba305
commit
940d85241b
|
@ -12,6 +12,11 @@ namespace Vulkan {
|
||||||
|
|
||||||
constexpr size_t COMMAND_BUFFER_POOL_SIZE = 0x1000;
|
constexpr size_t COMMAND_BUFFER_POOL_SIZE = 0x1000;
|
||||||
|
|
||||||
|
struct CommandPool::Pool {
|
||||||
|
vk::CommandPool handle;
|
||||||
|
vk::CommandBuffers cmdbufs;
|
||||||
|
};
|
||||||
|
|
||||||
CommandPool::CommandPool(MasterSemaphore& master_semaphore, const VKDevice& device)
|
CommandPool::CommandPool(MasterSemaphore& master_semaphore, const VKDevice& device)
|
||||||
: ResourcePool(master_semaphore, COMMAND_BUFFER_POOL_SIZE), device{device} {}
|
: ResourcePool(master_semaphore, COMMAND_BUFFER_POOL_SIZE), device{device} {}
|
||||||
|
|
||||||
|
|
|
@ -25,10 +25,7 @@ public:
|
||||||
VkCommandBuffer Commit();
|
VkCommandBuffer Commit();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct Pool {
|
struct Pool;
|
||||||
vk::CommandPool handle;
|
|
||||||
vk::CommandBuffers cmdbufs;
|
|
||||||
};
|
|
||||||
|
|
||||||
const VKDevice& device;
|
const VKDevice& device;
|
||||||
std::vector<Pool> pools;
|
std::vector<Pool> pools;
|
||||||
|
|
Loading…
Reference in New Issue