From c1085db9c52b85f5dee5d58cb59f8a3c927a1f21 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Wed, 8 Jun 2022 17:15:14 -0700 Subject: [PATCH] add store ops to depth stencil attach info struct --- src/Graphics/RefreshStructs.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Graphics/RefreshStructs.cs b/src/Graphics/RefreshStructs.cs index d1e7e2b6..99527847 100644 --- a/src/Graphics/RefreshStructs.cs +++ b/src/Graphics/RefreshStructs.cs @@ -268,7 +268,12 @@ namespace MoonWorks.Graphics public LoadOp StencilLoadOp; public StoreOp StencilStoreOp; - public DepthStencilAttachmentInfo(Texture texture, DepthStencilValue clearValue) + public DepthStencilAttachmentInfo( + Texture texture, + DepthStencilValue clearValue, + StoreOp depthStoreOp = StoreOp.Store, + StoreOp stencilStoreOp = StoreOp.Store + ) { Texture = texture; Depth = 0; @@ -276,9 +281,9 @@ namespace MoonWorks.Graphics Level = 0; DepthStencilClearValue = clearValue; LoadOp = LoadOp.Clear; - StoreOp = StoreOp.DontCare; + StoreOp = depthStoreOp; StencilLoadOp = LoadOp.Clear; - StencilStoreOp = StoreOp.DontCare; + StencilStoreOp = stencilStoreOp; } public DepthStencilAttachmentInfo(