From 3b7098d69953ab8b5cdfa9fe65aa76eaa9dbb81a Mon Sep 17 00:00:00 2001
From: Sascha Willems <webmaster@saschawillems.de>
Date: Sun, 7 Nov 2021 09:11:14 +0100
Subject: [PATCH] Added dynamic rendering sample to readme

---
 README.md                                      | 3 +++
 examples/dynamicrendering/dynamicrendering.cpp | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 669a6798..dd9ff82d 100644
--- a/README.md
+++ b/README.md
@@ -421,6 +421,9 @@ Uses a special image that contains variable shading rates to vary the number of
 
 Demonstrates the use of VK_EXT_descriptor_indexing for creating descriptor sets with a variable size that can be dynamically indexed in a shader using `GL_EXT_nonuniform_qualifier` and `SPV_EXT_descriptor_indexing`.
 
+#### [Dynamic rendering (VK_KHR_dynamic_rendering)](examples/dynamicrendering/)
+
+Shows usage of the VK_KHR_dynamic_rendering extension, which simplifies the rendering setup by no longer requiring render pass objects or framebuffers.
 
 ### Misc
 
diff --git a/examples/dynamicrendering/dynamicrendering.cpp b/examples/dynamicrendering/dynamicrendering.cpp
index d1a01672..9aff03b9 100644
--- a/examples/dynamicrendering/dynamicrendering.cpp
+++ b/examples/dynamicrendering/dynamicrendering.cpp
@@ -96,7 +96,7 @@ public:
 			colorAttachment.imageView = swapChain.buffers[i].view;
 			colorAttachment.imageLayout = VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL_KHR;
 			colorAttachment.loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR;
-			colorAttachment.storeOp = VK_ATTACHMENT_STORE_OP_NONE_KHR;
+			colorAttachment.storeOp = VK_ATTACHMENT_STORE_OP_STORE;
 			colorAttachment.clearValue.color = { 0.0f,0.0f,0.0f,0.0f };
 
 			// A single depth stencil attachment info can be used, but they can also be specified separately.
-- 
GitLab