From e68d10562d8cd31d9cfa39faeff97fe179440b0f Mon Sep 17 00:00:00 2001 From: Eugene Golushkov Date: Thu, 5 Dec 2024 18:52:51 +0100 Subject: [PATCH] Fix for "Texture 'RenderWindow DepthBuffer' is TilerMemoryless. For load actions it can only use clear, dont_care or clear_on_tilers." for Sample_Hdr --- .../2.0/scripts/materials/HDR/HDR.compositor | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Samples/Media/2.0/scripts/materials/HDR/HDR.compositor b/Samples/Media/2.0/scripts/materials/HDR/HDR.compositor index 0f239c0392b..88a400db3fe 100644 --- a/Samples/Media/2.0/scripts/materials/HDR/HDR.compositor +++ b/Samples/Media/2.0/scripts/materials/HDR/HDR.compositor @@ -261,13 +261,15 @@ compositor_node HdrPostprocessingNode { pass render_quad { - load { colour dont_care } + load { all dont_care } store { //Required by Metal as the overlays in the next pass will break the render encoder, //causing this pass to be resolved and then the overlays would render over a black //background (unfortunately, this also causes a performance hit). - colour store + colour store + depth dont_care + stencil dont_care } material HDR/FinalToneMapping input 0 rt0 @@ -289,6 +291,19 @@ compositor_node HdrRenderUi { pass render_scene { + load + { + colour load + depth dont_care + stencil dont_care + } + store + { + colour store + depth dont_care + stencil dont_care + } + lod_update_list off //Render Overlays