Compare commits

...

3 Commits

Author SHA1 Message Date
Caleb Cornett 113c1821dd Remove isFixed param from AcquireCommandBuffer 2023-01-13 20:31:29 -05:00
cosmonaut 1643061386 1.10.0 2023-01-04 11:35:22 -08:00
TheSpydog e828f9b7fb Add indirect draw command struct (#5)
Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com>
Reviewed-on: MoonsideGames/RefreshCS#5
Co-authored-by: TheSpydog <thespydog@noreply.example.org>
Co-committed-by: TheSpydog <thespydog@noreply.example.org>
2023-01-04 18:44:44 +00:00
1 changed files with 11 additions and 3 deletions

View File

@ -36,7 +36,7 @@ namespace RefreshCS
/* Version */
public const uint REFRESH_MAJOR_VERSION = 1;
public const uint REFRESH_MINOR_VERSION = 9;
public const uint REFRESH_MINOR_VERSION = 10;
public const uint REFRESH_PATCH_VERSION = 0;
public const uint REFRESH_COMPILED_VERSION = (
@ -367,6 +367,15 @@ namespace RefreshCS
public uint level;
}
[StructLayout(LayoutKind.Sequential)]
public struct IndirectDrawCommand
{
public uint vertexCount;
public uint instanceCount;
public uint firstVertex;
public uint firstInstance;
}
[StructLayout(LayoutKind.Sequential)]
public struct SamplerStateCreateInfo
{
@ -945,8 +954,7 @@ namespace RefreshCS
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr Refresh_AcquireCommandBuffer(
IntPtr device,
byte isFixed
IntPtr device
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]