1212#include < engine/common.h>
1313#include < engine/graphics/buffer.h>
1414#include < engine/graphics/framebuffer.h>
15+ #include < engine/graphics/semaphore.h>
1516#include < engine/graphics/shaderpass.h>
1617#include < engine/graphics/utilities/initializers.h>
17- #include < engine/graphics/vk_renderpass.h>
18- #include < engine/graphics/semaphore.h>
1918#include < engine/graphics/vao.h>
19+ #include < engine/graphics/vk_renderpass.h>
20+
2021
2122VULKAN_ENGINE_NAMESPACE_BEGIN
2223
@@ -49,7 +50,7 @@ class CommandBuffer
4950 std::vector<Semaphore> waitSemaphores = {},
5051 std::vector<Semaphore> signalSemaphores = {});
5152
52- VkCommandBuffer& get_handle () {
53+ VkCommandBuffer& get_handle () {
5354 return m_handle;
5455 }
5556
@@ -59,6 +60,7 @@ class CommandBuffer
5960
6061 void begin_renderpass (VulkanRenderPass& renderpass,
6162 Framebuffer& fbo,
63+ Extent2D extent,
6264 std::vector<Attachment>& attachments,
6365 VkSubpassContents subpassContents = VK_SUBPASS_CONTENTS_INLINE);
6466 void end_renderpass ();
@@ -94,7 +96,7 @@ class CommandPool
9496 return m_handle;
9597 }
9698
97- void init (VkDevice device,
99+ void init (VkDevice device,
98100 uint32_t queueFamilyIndex,
99101 VkCommandPoolCreateFlags flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT);
100102
0 commit comments