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

@@ -201,10 +201,16 @@ KrResult KRSurface::createSwapChain()
KRRenderPass::RenderPassInfo info{};
info.clearColor = true;
info.keepColor = true;
info.clearDepth = true;
info.keepDepth = false;
info.finalPass = false;
info.clearColorValue = Vector4::Zero();
info.clearDepth = true;
info.keepDepth = true;
info.clearDepthValue = 1.0f;
info.clearStencil = true;
info.keepStencil = true;
info.clearStencilValue = 0;
info.finalPass = false;
m_forwardOpaquePass->create(*device, selectedSurfaceFormat.format, depthImageFormat, info);
info.clearColor = true;