Add Offscreen Framebuffer support

This commit is contained in:
Thraix
2023-02-05 01:04:07 +01:00
parent 9de2ff594b
commit 708b81c571
25 changed files with 597 additions and 219 deletions
+6 -1
View File
@@ -41,6 +41,11 @@ public:
vkFreeCommandBuffers(instance.GetDevice(), instance.GetCommandPool(), commandBuffers.size(), commandBuffers.data());
}
operator VkCommandBuffer() const
{
return currentCommandBuffer;
}
// TODO: Test as constexpr function to see if it avoids the switch case
void Begin()
{
@@ -87,7 +92,7 @@ public:
instance.SubmitGraphicsQueue({currentCommandBuffer});
}
VkCommandBuffer GetHandle()
VkCommandBuffer GetHandle() const
{
return currentCommandBuffer;
}