From 6f8858c8b77686696bac8228a849d2cc42abf7cb Mon Sep 17 00:00:00 2001 From: TheSpydog Date: Thu, 29 Dec 2022 03:22:47 +0000 Subject: [PATCH] RasterizerState / BlendFactor ABI break (#38) Updates the APIs to match [this Refresh PR](https://gitea.moonside.games/MoonsideGames/Refresh/pulls/27). Co-authored-by: Caleb Cornett Reviewed-on: https://gitea.moonside.games/MoonsideGames/MoonWorks/pulls/38 Co-authored-by: TheSpydog Co-committed-by: TheSpydog --- src/Graphics/RefreshEnums.cs | 6 +----- src/Graphics/Resources/GraphicsPipeline.cs | 3 +-- src/Graphics/State/RasterizerState.cs | 1 - 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Graphics/RefreshEnums.cs b/src/Graphics/RefreshEnums.cs index 7f178ae2..7bb4fc06 100644 --- a/src/Graphics/RefreshEnums.cs +++ b/src/Graphics/RefreshEnums.cs @@ -221,11 +221,7 @@ namespace MoonWorks.Graphics OneMinusDestinationAlpha, ConstantColor, OneMinusConstantColor, - SourceAlphaSaturate, - SourceOneColor, - OneMinusSourceOneColor, - SourceOneAlpha, - OneMinusSourceOneAlpha + SourceAlphaSaturate } [Flags] diff --git a/src/Graphics/Resources/GraphicsPipeline.cs b/src/Graphics/Resources/GraphicsPipeline.cs index eb992ae2..30b32603 100644 --- a/src/Graphics/Resources/GraphicsPipeline.cs +++ b/src/Graphics/Resources/GraphicsPipeline.cs @@ -14,7 +14,7 @@ namespace MoonWorks.Graphics public GraphicsShaderInfo VertexShaderInfo { get; } public GraphicsShaderInfo FragmentShaderInfo { get; } - public SampleCount SampleCount { get; } + public SampleCount SampleCount { get; } #if DEBUG internal GraphicsPipelineAttachmentInfo AttachmentInfo { get; } @@ -89,7 +89,6 @@ namespace MoonWorks.Graphics refreshGraphicsPipelineCreateInfo.rasterizerState.depthBiasConstantFactor = rasterizerState.DepthBiasConstantFactor; refreshGraphicsPipelineCreateInfo.rasterizerState.depthBiasEnable = Conversions.BoolToByte(rasterizerState.DepthBiasEnable); refreshGraphicsPipelineCreateInfo.rasterizerState.depthBiasSlopeFactor = rasterizerState.DepthBiasSlopeFactor; - refreshGraphicsPipelineCreateInfo.rasterizerState.depthClampEnable = Conversions.BoolToByte(rasterizerState.DepthClampEnable); refreshGraphicsPipelineCreateInfo.rasterizerState.fillMode = (Refresh.FillMode) rasterizerState.FillMode; refreshGraphicsPipelineCreateInfo.rasterizerState.frontFace = (Refresh.FrontFace) rasterizerState.FrontFace; diff --git a/src/Graphics/State/RasterizerState.cs b/src/Graphics/State/RasterizerState.cs index 8d5b4ac3..f14316f9 100644 --- a/src/Graphics/State/RasterizerState.cs +++ b/src/Graphics/State/RasterizerState.cs @@ -29,7 +29,6 @@ /// Factor applied to a fragment's slope in depth bias calculations. Only applies if depth biasing is enabled. /// public float DepthBiasSlopeFactor; - public bool DepthClampEnable; /// /// Specifies how triangles should be drawn.