From 5c080a4c426936ddab4c8b66caf164763ce9e789 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Wed, 7 Sep 2022 12:38:05 -0700 Subject: [PATCH] add another DepthStencilAttachment constructor --- src/Graphics/RefreshStructs.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/Graphics/RefreshStructs.cs b/src/Graphics/RefreshStructs.cs index 9952784..d2ccd9a 100644 --- a/src/Graphics/RefreshStructs.cs +++ b/src/Graphics/RefreshStructs.cs @@ -304,6 +304,25 @@ namespace MoonWorks.Graphics StencilStoreOp = stencilStoreOp; } + public DepthStencilAttachmentInfo( + Texture texture, + DepthStencilValue depthStencilValue, + LoadOp loadOp, + StoreOp storeOp, + LoadOp stencilLoadOp, + StoreOp stencilStoreOp + ) { + Texture = texture; + Depth = 0; + Layer = 0; + Level = 0; + DepthStencilClearValue = depthStencilValue; + LoadOp = loadOp; + StoreOp = storeOp; + StencilLoadOp = stencilLoadOp; + StencilStoreOp = stencilStoreOp; + } + public Refresh.DepthStencilAttachmentInfo ToRefresh() { return new Refresh.DepthStencilAttachmentInfo