From 86cc5fa1422c8b79c436c4e4fc345114e9615dbb Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Sat, 2 Mar 2024 23:10:29 -0800 Subject: [PATCH] fix Stencil API --- src/Refresh.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Refresh.cs b/src/Refresh.cs index f7c1a3b..967ae84 100644 --- a/src/Refresh.cs +++ b/src/Refresh.cs @@ -463,9 +463,6 @@ namespace RefreshCS public StencilOp passOp; public StencilOp depthFailOp; public CompareOp compareOp; - public uint compareMask; - public uint writeMask; - public uint reference; } [StructLayout(LayoutKind.Sequential)] @@ -550,7 +547,11 @@ namespace RefreshCS public CompareOp compareOp; public byte depthBoundsTestEnable; public byte stencilTestEnable; - public StencilOpState stencilState; + public StencilOpState backStencilState; + public StencilOpState frontStencilState; + public uint compareMask; + public uint writeMask; + public uint reference; public float minDepthBounds; public float maxDepthBounds; }