Compare commits

...

3 Commits

Author SHA1 Message Date
TheSpydog 73cbaca5fa RasterizerState / BlendFactor ABI break 2022-12-28 22:16:07 -05:00
cosmonaut 2880ab39a3 Refresh 1.9.0 2022-11-09 12:13:47 -08:00
TheSpydog 2b6ae29053 API update (#3)
Co-authored-by: TheSpydog <thespydog@noreply.example.org>
Co-committed-by: TheSpydog <thespydog@noreply.example.org>
2022-11-09 18:38:14 +00:00
1 changed files with 2 additions and 31 deletions

View File

@ -36,7 +36,7 @@ namespace RefreshCS
/* Version */ /* Version */
public const uint REFRESH_MAJOR_VERSION = 1; public const uint REFRESH_MAJOR_VERSION = 1;
public const uint REFRESH_MINOR_VERSION = 8; public const uint REFRESH_MINOR_VERSION = 9;
public const uint REFRESH_PATCH_VERSION = 0; public const uint REFRESH_PATCH_VERSION = 0;
public const uint REFRESH_COMPILED_VERSION = ( public const uint REFRESH_COMPILED_VERSION = (
@ -250,11 +250,7 @@ namespace RefreshCS
OneMinusDestinationAlpha, OneMinusDestinationAlpha,
ConstantColor, ConstantColor,
OneMinusConstantColor, OneMinusConstantColor,
SourceAlphaSaturate, SourceAlphaSaturate
SourceOneColor,
OneMinusSourceOneColor,
SourceOneAlpha,
OneMinusSourceOneAlpha
} }
[Flags] [Flags]
@ -455,7 +451,6 @@ namespace RefreshCS
public uint height; public uint height;
public uint depth; public uint depth;
public byte isCube; public byte isCube;
public SampleCount sampleCount;
public uint levelCount; public uint levelCount;
public TextureFormat format; public TextureFormat format;
public TextureUsageFlags usageFlags; /* Refresh_TextureUsageFlags */ public TextureUsageFlags usageFlags; /* Refresh_TextureUsageFlags */
@ -485,7 +480,6 @@ namespace RefreshCS
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct RasterizerState public struct RasterizerState
{ {
public byte depthClampEnable;
public FillMode fillMode; public FillMode fillMode;
public CullMode cullMode; public CullMode cullMode;
public FrontFace frontFace; public FrontFace frontFace;
@ -520,7 +514,6 @@ namespace RefreshCS
public struct ColorAttachmentDescription public struct ColorAttachmentDescription
{ {
public TextureFormat format; public TextureFormat format;
public SampleCount sampleCount;
public ColorAttachmentBlendState blendState; public ColorAttachmentBlendState blendState;
} }
@ -825,17 +818,6 @@ namespace RefreshCS
public static extern void Refresh_BeginRenderPass( public static extern void Refresh_BeginRenderPass(
IntPtr device, IntPtr device,
IntPtr commandBuffer, IntPtr commandBuffer,
in Rect renderArea,
IntPtr colorAttachmentInfos,
uint colorAttachmentCount,
IntPtr depthStencilAttachmentInfo /* can be NULL */
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Refresh_BeginRenderPass(
IntPtr device,
IntPtr commandBuffer,
IntPtr renderArea, /* can be NULL */
IntPtr colorAttachmentInfos, IntPtr colorAttachmentInfos,
uint colorAttachmentCount, uint colorAttachmentCount,
IntPtr depthStencilAttachmentInfo /* can be NULL */ IntPtr depthStencilAttachmentInfo /* can be NULL */
@ -845,17 +827,6 @@ namespace RefreshCS
public static unsafe extern void Refresh_BeginRenderPass( public static unsafe extern void Refresh_BeginRenderPass(
IntPtr device, IntPtr device,
IntPtr commandBuffer, IntPtr commandBuffer,
in Rect renderArea,
ColorAttachmentInfo* colorAttachmentInfos,
uint colorAttachmentCount,
DepthStencilAttachmentInfo* depthStencilAttachmentInfo /* can be NULL */
);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static unsafe extern void Refresh_BeginRenderPass(
IntPtr device,
IntPtr commandBuffer,
IntPtr renderArea, /* can be NULL */
ColorAttachmentInfo* colorAttachmentInfos, ColorAttachmentInfo* colorAttachmentInfos,
uint colorAttachmentCount, uint colorAttachmentCount,
DepthStencilAttachmentInfo* depthStencilAttachmentInfo /* can be NULL */ DepthStencilAttachmentInfo* depthStencilAttachmentInfo /* can be NULL */