Implemented KRRenderPass::begin and KRRenderPass::end

This commit is contained in:
2022-03-27 21:56:45 -07:00
parent 2818deb0e3
commit 36f804e176
9 changed files with 52 additions and 30 deletions

View File

@@ -35,6 +35,8 @@
#include "KREngine-common.h"
#include "KRContext.h"
class KRSurface;
class KRRenderPass : public KRContextObject
{
public:
@@ -43,6 +45,9 @@ public:
void create(KRDevice& device, VkFormat swapChainImageFormat, VkFormat depthImageFormat);
void destroy(KRDevice& device);
void begin(VkCommandBuffer &commandBuffer, KRSurface& surface, uint64_t frameIndex);
void end(VkCommandBuffer& commandBuffer);
// private:
VkRenderPass m_renderPass;
};