From 4977fa66a345fd1faea8c0d027b3ef320b0714fd Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Tue, 17 Apr 2018 16:39:14 -0400 Subject: [PATCH] VulkanDevice: Request indenpendentBlend. This is a core NXT feature but wasn't enabled, causing the Vulkan validation layers to produce an error. --- src/backend/vulkan/VulkanBackend.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/vulkan/VulkanBackend.cpp b/src/backend/vulkan/VulkanBackend.cpp index 44efd0b445..9396de411b 100644 --- a/src/backend/vulkan/VulkanBackend.cpp +++ b/src/backend/vulkan/VulkanBackend.cpp @@ -471,6 +471,9 @@ namespace backend { namespace vulkan { usedKnobs->swapchain = true; } + // Always require independentBlend because it is a core NXT feature, + usedKnobs->features.independentBlend = VK_TRUE; + // Find a universal queue family { constexpr uint32_t kUniversalFlags =