summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-09-26 09:13:48 +0200
committerGitHub <noreply@github.com>2020-09-26 09:13:48 +0200
commitfbb5ca2633a95840a9a63351cdb131e701901d5c (patch)
tree86c3d310d230ce60d3ad285fc6efab1a7d8c3a8f
parentMerge pull request #4720 from lioncash/header (diff)
parentvk_command_pool: Move definition of Pool into the cpp file (diff)
downloadyuzu-fbb5ca2633a95840a9a63351cdb131e701901d5c.tar
yuzu-fbb5ca2633a95840a9a63351cdb131e701901d5c.tar.gz
yuzu-fbb5ca2633a95840a9a63351cdb131e701901d5c.tar.bz2
yuzu-fbb5ca2633a95840a9a63351cdb131e701901d5c.tar.lz
yuzu-fbb5ca2633a95840a9a63351cdb131e701901d5c.tar.xz
yuzu-fbb5ca2633a95840a9a63351cdb131e701901d5c.tar.zst
yuzu-fbb5ca2633a95840a9a63351cdb131e701901d5c.zip
-rw-r--r--src/video_core/renderer_vulkan/vk_command_pool.cpp5
-rw-r--r--src/video_core/renderer_vulkan/vk_command_pool.h9
2 files changed, 9 insertions, 5 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 3aee239b9..b9cb3fb5d 100644
--- a/src/video_core/renderer_vulkan/vk_command_pool.h
+++ b/src/video_core/renderer_vulkan/vk_command_pool.h
@@ -2,6 +2,8 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#pragma once
+
#include <cstddef>
#include <vector>
@@ -16,17 +18,14 @@ class VKDevice;
class CommandPool final : public ResourcePool {
public:
explicit CommandPool(MasterSemaphore& master_semaphore, const VKDevice& device);
- virtual ~CommandPool();
+ ~CommandPool() override;
void Allocate(size_t begin, size_t end) override;
VkCommandBuffer Commit();
private:
- struct Pool {
- vk::CommandPool handle;
- vk::CommandBuffers cmdbufs;
- };
+ struct Pool;
const VKDevice& device;
std::vector<Pool> pools;