Compare commits

..

6 Commits

Author SHA1 Message Date
cosmonaut b5325e6d03 1.15.0 2023-09-18 23:16:38 -07:00
cosmonaut 60a7523fac Refresh 1.14.0 (#8)
Reviewed-on: MoonsideGames/RefreshCS#8
2023-06-07 21:16:32 +00:00
cosmonaut ebf511133a Refresh 1.13.0 2023-04-18 23:49:14 -07:00
cosmonaut fb5fee5f56 1.12.0 2023-04-03 17:27:34 -07:00
cosmonaut 10f54d6b03 1.11.0 2023-02-07 12:28:36 -08:00
TheSpydog 52d3355120 ABI update + enum fix (#7)
Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com>
Reviewed-on: MoonsideGames/RefreshCS#7
Co-authored-by: TheSpydog <thespydog@noreply.example.org>
Co-committed-by: TheSpydog <thespydog@noreply.example.org>
2023-01-31 20:27:06 +00:00
1 changed files with 44 additions and 16 deletions

View File

@ -36,7 +36,7 @@ namespace RefreshCS
/* Version */
public const uint REFRESH_MAJOR_VERSION = 1;
public const uint REFRESH_MINOR_VERSION = 10;
public const uint REFRESH_MINOR_VERSION = 15;
public const uint REFRESH_PATCH_VERSION = 0;
public const uint REFRESH_COMPILED_VERSION = (
@ -717,8 +717,13 @@ namespace RefreshCS
uint yHeight,
uint uvWidth,
uint uvHeight,
IntPtr data,
uint dataLength
IntPtr yDataPtr,
IntPtr uDataPtr,
IntPtr vDataPtr,
uint yDataLength,
uint uvDataLength,
uint yStride,
uint uvStride
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
@ -966,8 +971,13 @@ namespace RefreshCS
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Refresh_Submit(
IntPtr device,
uint commandBufferCount,
IntPtr pCommandBuffers
IntPtr commandBuffer
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr Refresh_SubmitAndAcquireFence(
IntPtr device,
IntPtr commandBuffer
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
@ -975,26 +985,44 @@ namespace RefreshCS
IntPtr device
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Refresh_WaitForFences(
IntPtr device,
byte waitAll,
uint fenceCount,
IntPtr pFences
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int Refresh_QueryFence(
IntPtr device,
IntPtr fence
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Refresh_ReleaseFence(
IntPtr device,
IntPtr fence
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr Refresh_Image_Load(
[MarshalAs(UnmanagedType.LPStr)] string filename,
out int width,
out int height,
out int numChannels
IntPtr bufferPtr,
int bufferLength,
out int w,
out int h,
out int len
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Refresh_Image_Free(
IntPtr mem
);
public static extern void Refresh_Image_Free(IntPtr mem);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Refresh_Image_SavePNG(
public static extern IntPtr Refresh_Image_SavePNG(
[MarshalAs(UnmanagedType.LPStr)] string filename,
IntPtr data,
int w,
int h,
byte bgra,
IntPtr data
int h
);
}
}