From 65dc286e9b3a2771bb0d4b424ffadfe7d5d00868 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Mon, 31 Aug 2026 03:11:54 -0500 Subject: [PATCH] GS:VK: Use swizzle value compatible with MoltenVK on older GPUs --- pcsx2/GS/Renderers/Vulkan/GSTextureVK.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/GS/Renderers/Vulkan/GSTextureVK.cpp b/pcsx2/GS/Renderers/Vulkan/GSTextureVK.cpp index f664db0a3b..0ce82eb092 100644 --- a/pcsx2/GS/Renderers/Vulkan/GSTextureVK.cpp +++ b/pcsx2/GS/Renderers/Vulkan/GSTextureVK.cpp @@ -104,9 +104,9 @@ std::unique_ptr GSTextureVK::Create(Usage usage, Format format, int if (format == Format::UNorm8) { - // for r8 textures, swizzle it across all 4 components. the shaders depend on it being in alpha.. why? + // UNorm8 wants value in alpha, not red. static constexpr const VkComponentMapping r8_swizzle = { - VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_R }; + VK_COMPONENT_SWIZZLE_ZERO, VK_COMPONENT_SWIZZLE_ZERO, VK_COMPONENT_SWIZZLE_ZERO, VK_COMPONENT_SWIZZLE_R }; vci.components = r8_swizzle; }