Skip to content

Commit bebee50

Browse files
committed
Load instead of Clear in ImGui pass
1 parent 33c6149 commit bebee50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ void App::render(vk::CommandBuffer const command_buffer) {
244244
command_buffer.endRendering();
245245

246246
m_imgui->end_frame();
247+
// we don't want to clear the image again, instead load it intact after the
248+
// previous pass.
249+
color_attachment.setLoadOp(vk::AttachmentLoadOp::eLoad);
247250
rendering_info.setColorAttachments(color_attachment)
248251
.setPDepthAttachment(nullptr);
249252
command_buffer.beginRendering(rendering_info);

0 commit comments

Comments
 (0)