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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user