Updated call sites to no longer pass clear color to KRRenderPass::Begin(), as KRRenderPass now retains the clear color after initialization.

KRRenderPass now has configurable stencil clear, load, and store operations.
This commit is contained in:
2024-01-20 16:46:23 -08:00
parent d92a039fab
commit a2d125b15b
4 changed files with 25 additions and 12 deletions

View File

@@ -48,15 +48,21 @@ public:
bool keepColor;
bool clearDepth;
bool keepDepth;
bool clearStencil;
bool keepStencil;
bool finalPass;
hydra::Vector4 clearColorValue;
float clearDepthValue;
uint32_t clearStencilValue;
};
void create(KRDevice& device, VkFormat swapChainImageFormat, VkFormat depthImageFormat, const RenderPassInfo& info);
void destroy(KRDevice& device);
void begin(VkCommandBuffer& commandBuffer, KRSurface& surface, const hydra::Vector4& clearColor);
void begin(VkCommandBuffer& commandBuffer, KRSurface& surface);
void end(VkCommandBuffer& commandBuffer);
// private:
VkRenderPass m_renderPass;
RenderPassInfo m_info;
};