aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Vulkan/PipelineBase.cs
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2022-10-26 00:49:23 +0100
committerGitHub <noreply@github.com>2022-10-25 23:49:23 +0000
commit9719b6a1129c017d96532ff026e2bb933c0b2d0b (patch)
treea1715212ffd9896c1f283f3a8a5b5433b00dc819 /Ryujinx.Graphics.Vulkan/PipelineBase.cs
parentf70236f9477ccae43d3d44f91445a44c7cabb4de (diff)
Vulkan: Use dynamic state for blend constants (#3793)1.1.327
Diffstat (limited to 'Ryujinx.Graphics.Vulkan/PipelineBase.cs')
-rw-r--r--Ryujinx.Graphics.Vulkan/PipelineBase.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Ryujinx.Graphics.Vulkan/PipelineBase.cs b/Ryujinx.Graphics.Vulkan/PipelineBase.cs
index 23abde41..7c6234b1 100644
--- a/Ryujinx.Graphics.Vulkan/PipelineBase.cs
+++ b/Ryujinx.Graphics.Vulkan/PipelineBase.cs
@@ -535,10 +535,11 @@ namespace Ryujinx.Graphics.Vulkan
vkBlend = new PipelineColorBlendAttachmentState();
}
- _newState.BlendConstantR = blend.BlendConstant.Red;
- _newState.BlendConstantG = blend.BlendConstant.Green;
- _newState.BlendConstantB = blend.BlendConstant.Blue;
- _newState.BlendConstantA = blend.BlendConstant.Alpha;
+ DynamicState.SetBlendConstants(
+ blend.BlendConstant.Red,
+ blend.BlendConstant.Green,
+ blend.BlendConstant.Blue,
+ blend.BlendConstant.Alpha);
SignalStateChange();
}