From 07449cfef8aac872e6e89d085e4732e23314e4ab Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 13 Jan 2022 13:59:47 -0800 Subject: [PATCH] SetBufferData ABI update --- src/Refresh.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Refresh.cs b/src/Refresh.cs index 7d5793d..4102dda 100644 --- a/src/Refresh.cs +++ b/src/Refresh.cs @@ -66,6 +66,12 @@ namespace RefreshCS DontCare } + public enum SetDataOptions + { + Immediate, + Deferred + } + [Flags] public enum ClearOptionsFlags : uint { @@ -798,10 +804,12 @@ namespace RefreshCS [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void Refresh_SetBufferData( IntPtr device, + IntPtr commandBuffer, IntPtr buffer, uint offsetInBytes, IntPtr data, - uint dataLengthInBytes + uint dataLengthInBytes, + SetDataOptions setDataOption ); [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]