VERY experimental Nintendo Switch 2 emulator
C++
Vulkan: implement Logical Operations.
Fernando Sahmkowce7c3bdf0c51
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cppindex 0c175c557f..7fe735e756 100644--- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp+++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp@@ -748,8 +748,8 @@ void GraphicsPipeline::MakePipeline(VkRenderPass render_pass) {.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO,.pNext = nullptr,.flags = 0,- .logicOpEnable = VK_FALSE,- .logicOp = VK_LOGIC_OP_COPY,+ .logicOpEnable = key.state.logic_op_enable != 0,+ .logicOp = static_cast<VkLogicOp>(key.state.logic_op.Value()),.attachmentCount = static_cast<u32>(cb_attachments.size()),.pAttachments = cb_attachments.data(),.blendConstants = {},diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cppindex 38410eee45..2413e72ba9 100644--- a/src/video_core/vulkan_common/vulkan_device.cpp+++ b/src/video_core/vulkan_common/vulkan_device.cpp@@ -271,7 +271,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR.tessellationShader = true,.sampleRateShading = true,.dualSrcBlend = true,- .logicOp = false,+ .logicOp = true,.multiDrawIndirect = false,.drawIndirectFirstInstance = false,.depthClamp = true,