Small changes

This commit is contained in:
sunshineinabox 2024-05-26 18:46:10 -07:00
parent ba56c1d3b3
commit 1adae7794a

View file

@ -564,13 +564,11 @@ namespace Ryujinx.Graphics.Vulkan
colorBlendState.LogicOp = LogicOp; colorBlendState.LogicOp = LogicOp;
} }
PipelineColorBlendAdvancedStateCreateInfoEXT colorBlendAdvancedState;
if (!AdvancedBlendSrcPreMultiplied || if (!AdvancedBlendSrcPreMultiplied ||
!AdvancedBlendDstPreMultiplied || !AdvancedBlendDstPreMultiplied ||
AdvancedBlendOverlap != BlendOverlapEXT.UncorrelatedExt) AdvancedBlendOverlap != BlendOverlapEXT.UncorrelatedExt)
{ {
colorBlendAdvancedState = new PipelineColorBlendAdvancedStateCreateInfoEXT PipelineColorBlendAdvancedStateCreateInfoEXT colorBlendAdvancedState = new PipelineColorBlendAdvancedStateCreateInfoEXT
{ {
SType = StructureType.PipelineColorBlendAdvancedStateCreateInfoExt, SType = StructureType.PipelineColorBlendAdvancedStateCreateInfoExt,
SrcPremultiplied = AdvancedBlendSrcPreMultiplied, SrcPremultiplied = AdvancedBlendSrcPreMultiplied,
@ -622,7 +620,7 @@ namespace Ryujinx.Graphics.Vulkan
if (!isMoltenVk) if (!isMoltenVk)
{ {
//LineWidth is only supported on MacOS when using Metal Private API on newer version of MoltenVK //LineWidth is only supported on macOS when using Metal Private API on newer version of MoltenVK
dynamicStates[currentIndex++] = DynamicState.LineWidth; dynamicStates[currentIndex++] = DynamicState.LineWidth;
} }