Compare commits

..

2 Commits

Author SHA1 Message Date
Caleb Cornett db76f87bde add indirect draw command struct 2023-01-04 12:11:19 -05:00
TheSpydog 9068263afc RasterizerState / BlendFactor ABI break (#4)
Updates RasterizerState and BlendFactor for the ABI changes introduced in [this PR](MoonsideGames/Refresh#27).

Reviewed-on: MoonsideGames/RefreshCS#4
Co-authored-by: TheSpydog <thespydog@noreply.example.org>
Co-committed-by: TheSpydog <thespydog@noreply.example.org>
2022-12-29 03:16:50 +00:00
1 changed files with 10 additions and 6 deletions

View File

@ -250,11 +250,7 @@ namespace RefreshCS
OneMinusDestinationAlpha, OneMinusDestinationAlpha,
ConstantColor, ConstantColor,
OneMinusConstantColor, OneMinusConstantColor,
SourceAlphaSaturate, SourceAlphaSaturate
SourceOneColor,
OneMinusSourceOneColor,
SourceOneAlpha,
OneMinusSourceOneAlpha
} }
[Flags] [Flags]
@ -371,6 +367,15 @@ namespace RefreshCS
public uint level; public uint level;
} }
[StructLayout(LayoutKind.Sequential)]
public struct IndirectDrawCommand
{
public uint vertexCount;
public uint instanceCount;
public uint firstVertex;
public uint firstInstance;
}
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct SamplerStateCreateInfo public struct SamplerStateCreateInfo
{ {
@ -484,7 +489,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;