Add error handling for KRRenderGraphBlackFrame::Initialize failure

This commit is contained in:
2024-08-20 22:33:51 -07:00
parent 08d98eefcb
commit fc783b7d54
3 changed files with 8 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ KRRenderGraphBlackFrame::~KRRenderGraphBlackFrame()
{
}
void KRRenderGraphBlackFrame::initialize(KRSurface &surface)
KrResult KRRenderGraphBlackFrame::initialize(KRSurface &surface)
{
VkFormat depthImageFormat = VK_FORMAT_UNDEFINED;
KrResult res = KR_SUCCESS;
@@ -64,4 +64,6 @@ void KRRenderGraphBlackFrame::initialize(KRSurface &surface)
info.finalPass = true;
info.type = RenderPassType::RENDER_PASS_BLACK_FRAME;
addRenderPass(*surface.getDevice(), info);
return KR_SUCCESS;
}