Vulkan: Use dynamic state for blend constants (#3793)
This commit is contained in:
parent
f70236f947
commit
9719b6a112
4 changed files with 36 additions and 16 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue