From 848db820a6de3437f44e8e45f4c274f40bbfae27 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Sun, 6 Mar 2022 22:32:41 -0800 Subject: [PATCH] add IntPtr renderArea overloads --- src/Refresh.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/Refresh.cs b/src/Refresh.cs index 65f4c22..93dbf8e 100644 --- a/src/Refresh.cs +++ b/src/Refresh.cs @@ -824,6 +824,16 @@ namespace RefreshCS IntPtr depthStencilAttachmentInfo /* can be NULL */ ); + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern void Refresh_BeginRenderPass( + IntPtr device, + IntPtr commandBuffer, + IntPtr renderArea, /* can be NULL */ + IntPtr colorAttachmentInfos, + uint colorAttachmentCount, + IntPtr depthStencilAttachmentInfo /* can be NULL */ + ); + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static unsafe extern void Refresh_BeginRenderPass( IntPtr device, @@ -834,6 +844,16 @@ namespace RefreshCS DepthStencilAttachmentInfo* depthStencilAttachmentInfo /* can be NULL */ ); + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static unsafe extern void Refresh_BeginRenderPass( + IntPtr device, + IntPtr commandBuffer, + IntPtr renderArea, /* can be NULL */ + ColorAttachmentInfo* colorAttachmentInfos, + uint colorAttachmentCount, + DepthStencilAttachmentInfo* depthStencilAttachmentInfo /* can be NULL */ + ); + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void Refresh_EndRenderPass( IntPtr device,