From 3df93dcc19cef542d3080d07b61873365f7993ac Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 24 Jun 2025 04:22:36 +0300 Subject: [PATCH] vk: Fix shader interpreter inputs when textures are not used --- rpcs3/Emu/RSX/VK/VKShaderInterpreter.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/rpcs3/Emu/RSX/VK/VKShaderInterpreter.cpp b/rpcs3/Emu/RSX/VK/VKShaderInterpreter.cpp index d389423dd2..c80fb7873d 100644 --- a/rpcs3/Emu/RSX/VK/VKShaderInterpreter.cpp +++ b/rpcs3/Emu/RSX/VK/VKShaderInterpreter.cpp @@ -275,12 +275,15 @@ namespace vk in.name = "FragmentInstructionBlock"; inputs.push_back(in); - for (int i = 0, location = m_fragment_textures_start; i < 4; ++i, ++location) + if (compiler_options & program_common::interpreter::COMPILER_OPT_ENABLE_TEXTURES) { - in.location = location; - in.name = std::string(type_names[i]) + "_array[16]"; - in.type = glsl::input_type_texture; - inputs.push_back(in); + for (int i = 0, location = m_fragment_textures_start; i < 4; ++i, ++location) + { + in.location = location; + in.name = std::string(type_names[i]) + "_array[16]"; + in.type = glsl::input_type_texture; + inputs.push_back(in); + } } vk_prog->SetInputs(inputs);