presentation ABI break
parent
61ec63b71f
commit
d844fe56ee
|
@ -85,6 +85,7 @@ namespace RefreshCS
|
||||||
public enum TextureFormat
|
public enum TextureFormat
|
||||||
{
|
{
|
||||||
R8G8B8A8,
|
R8G8B8A8,
|
||||||
|
B8G8R8A8,
|
||||||
R5G6B5,
|
R5G6B5,
|
||||||
A1R5G5B5,
|
A1R5G5B5,
|
||||||
B4G4R4A4,
|
B4G4R4A4,
|
||||||
|
@ -586,7 +587,11 @@ namespace RefreshCS
|
||||||
|
|
||||||
public struct ColorAttachmentInfo
|
public struct ColorAttachmentInfo
|
||||||
{
|
{
|
||||||
public IntPtr renderTarget;
|
public IntPtr texture;
|
||||||
|
public uint depth;
|
||||||
|
public uint layer;
|
||||||
|
public uint level;
|
||||||
|
public SampleCount sampleCount;
|
||||||
public Vec4 clearColor;
|
public Vec4 clearColor;
|
||||||
public LoadOp loadOp;
|
public LoadOp loadOp;
|
||||||
public StoreOp storeOp;
|
public StoreOp storeOp;
|
||||||
|
@ -594,8 +599,11 @@ namespace RefreshCS
|
||||||
|
|
||||||
public struct DepthStencilAttachmentInfo
|
public struct DepthStencilAttachmentInfo
|
||||||
{
|
{
|
||||||
public IntPtr depthStencilTarget;
|
public IntPtr texture;
|
||||||
public DepthStencilValue depthStencilValue;
|
public uint depth;
|
||||||
|
public uint layer;
|
||||||
|
public uint level;
|
||||||
|
public DepthStencilValue depthStencilClearValue;
|
||||||
public LoadOp loadOp;
|
public LoadOp loadOp;
|
||||||
public StoreOp storeOp;
|
public StoreOp storeOp;
|
||||||
public LoadOp stencilLoadOp;
|
public LoadOp stencilLoadOp;
|
||||||
|
@ -713,13 +721,6 @@ namespace RefreshCS
|
||||||
in TextureCreateInfo textureCreateInfo
|
in TextureCreateInfo textureCreateInfo
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
|
||||||
public static extern IntPtr Refresh_CreateRenderTarget(
|
|
||||||
IntPtr device,
|
|
||||||
in TextureSlice textureSlice,
|
|
||||||
SampleCount multisampleCount
|
|
||||||
);
|
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern IntPtr Refresh_CreateBuffer(
|
public static extern IntPtr Refresh_CreateBuffer(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
|
@ -835,13 +836,6 @@ namespace RefreshCS
|
||||||
IntPtr buffer
|
IntPtr buffer
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
|
||||||
public static extern void Refresh_QueueDestroyRenderTarget(
|
|
||||||
IntPtr device,
|
|
||||||
IntPtr commandBuffer,
|
|
||||||
IntPtr renderTarget
|
|
||||||
);
|
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void Refresh_QueueDestroyShaderModule(
|
public static extern void Refresh_QueueDestroyShaderModule(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
|
@ -963,22 +957,15 @@ namespace RefreshCS
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void Refresh_QueuePresent(
|
public static extern IntPtr Refresh_AcquireSwapchainTexture(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
IntPtr commandBuffer,
|
IntPtr commandBuffer,
|
||||||
in TextureSlice textureSlice,
|
|
||||||
in Rect destinationRectangle,
|
|
||||||
Filter filter,
|
|
||||||
IntPtr windowHandle
|
IntPtr windowHandle
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void Refresh_QueuePresent(
|
public static extern TextureFormat Refresh_GetSwapchainFormat(
|
||||||
IntPtr device,
|
IntPtr device,
|
||||||
IntPtr commandBuffer,
|
|
||||||
in TextureSlice textureSlice,
|
|
||||||
IntPtr destinationRectangle, /* null Rect */
|
|
||||||
Filter filter,
|
|
||||||
IntPtr windowHandle
|
IntPtr windowHandle
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1012,6 +999,7 @@ namespace RefreshCS
|
||||||
[MarshalAs(UnmanagedType.LPStr)] string filename,
|
[MarshalAs(UnmanagedType.LPStr)] string filename,
|
||||||
int w,
|
int w,
|
||||||
int h,
|
int h,
|
||||||
|
byte bgra,
|
||||||
IntPtr data
|
IntPtr data
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue