Skip to content

Commit

Permalink
Fixed a UI render pass attachment operation to store the output properly
Browse files Browse the repository at this point in the history
  • Loading branch information
tstullich committed Oct 9, 2020
1 parent 6e3c45e commit 219197d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void UserInterface::createRenderPass() {
attachmentDescription.loadOp = VK_ATTACHMENT_LOAD_OP_LOAD; // Need UI to be drawn on top of main
attachmentDescription.initialLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
attachmentDescription.finalLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR; // Last pass so we want to present after
attachmentDescription.storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;
attachmentDescription.storeOp = VK_ATTACHMENT_STORE_OP_STORE;
attachmentDescription.stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
attachmentDescription.stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;

Expand Down

0 comments on commit 219197d

Please sign in to comment.