From 3379b95e449904b30d66d8bc17e4da83fc60c1be Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 14 Jan 2021 19:01:39 -0800 Subject: [PATCH] add empty depth stencil clear option to BeginRenderPass --- src/Refresh.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Refresh.cs b/src/Refresh.cs index c31c1d9..8d7f34b 100644 --- a/src/Refresh.cs +++ b/src/Refresh.cs @@ -896,6 +896,18 @@ namespace RefreshCS ref DepthStencilValue depthStencilClearValue ); + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern void Refresh_BeginRenderPass( + IntPtr device, + IntPtr commandBuffer, + IntPtr renderPass, + IntPtr framebuffer, + ref Rect renderArea, + IntPtr pColorClearValues, + uint colorClearCount, + IntPtr depthStencilClearValue /* NULL */ + ); + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void Refresh_EndRenderPass( IntPtr device,