diff options
author | Lioncash <mathew1800@gmail.com> | 2020-09-25 06:15:50 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-09-25 06:15:52 +0200 |
commit | 940d85241bbd1f7fdbd65373e4c80b10025f8b1b (patch) | |
tree | 2d3ab2f886893139f456f9b1a23c5693556f5601 /src | |
parent | vk_command_pool: Make use of override on destructor (diff) | |
download | yuzu-940d85241bbd1f7fdbd65373e4c80b10025f8b1b.tar yuzu-940d85241bbd1f7fdbd65373e4c80b10025f8b1b.tar.gz yuzu-940d85241bbd1f7fdbd65373e4c80b10025f8b1b.tar.bz2 yuzu-940d85241bbd1f7fdbd65373e4c80b10025f8b1b.tar.lz yuzu-940d85241bbd1f7fdbd65373e4c80b10025f8b1b.tar.xz yuzu-940d85241bbd1f7fdbd65373e4c80b10025f8b1b.tar.zst yuzu-940d85241bbd1f7fdbd65373e4c80b10025f8b1b.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_command_pool.cpp | 5 | ||||
-rw-r--r-- | src/video_core/renderer_vulkan/vk_command_pool.h | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/video_core/renderer_vulkan/vk_command_pool.cpp b/src/video_core/renderer_vulkan/vk_command_pool.cpp index f1abd4b1a..6339f4fe0 100644 --- a/src/video_core/renderer_vulkan/vk_command_pool.cpp +++ b/src/video_core/renderer_vulkan/vk_command_pool.cpp @@ -12,6 +12,11 @@ namespace Vulkan { 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) : ResourcePool(master_semaphore, COMMAND_BUFFER_POOL_SIZE), device{device} {} diff --git a/src/video_core/renderer_vulkan/vk_command_pool.h b/src/video_core/renderer_vulkan/vk_command_pool.h index 92d8a9f4d..b9cb3fb5d 100644 --- a/src/video_core/renderer_vulkan/vk_command_pool.h +++ b/src/video_core/renderer_vulkan/vk_command_pool.h @@ -25,10 +25,7 @@ public: VkCommandBuffer Commit(); private: - struct Pool { - vk::CommandPool handle; - vk::CommandBuffers cmdbufs; - }; + struct Pool; const VKDevice& device; std::vector<Pool> pools; |