Clear and AcquireSwapchainTexture ABI break

main
cosmonaut 2022-03-10 10:25:16 -08:00
parent 848db820a6
commit 237c3aebb6
1 changed files with 3 additions and 22 deletions

View File

@ -80,16 +80,6 @@ namespace RefreshCS
DontCare
}
[Flags]
public enum ClearOptionsFlags : uint
{
Color = 1,
Depth = 2,
Stencil = 4,
DepthStencil = Depth | Stencil,
All = Color | Depth | Stencil
}
public enum IndexElementSize
{
Sixteen,
@ -596,17 +586,6 @@ namespace RefreshCS
/* Drawing */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Refresh_Clear(
IntPtr device,
IntPtr commandBuffer,
in Rect clearRect,
Refresh.ClearOptionsFlags clearOptions,
IntPtr colors,
uint colorCount,
DepthStencilValue depthStencilValue
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Refresh_DrawInstancedPrimitives(
IntPtr device,
@ -949,7 +928,9 @@ namespace RefreshCS
public static extern IntPtr Refresh_AcquireSwapchainTexture(
IntPtr device,
IntPtr commandBuffer,
IntPtr windowHandle
IntPtr windowHandle,
out uint width,
out uint height
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]