vk: Fix shader interpreter inputs when textures are not used

This commit is contained in:
kd-11 2025-06-24 04:22:36 +03:00 committed by kd-11
parent 1f0328c5d5
commit 3df93dcc19

View file

@ -275,6 +275,8 @@ namespace vk
in.name = "FragmentInstructionBlock";
inputs.push_back(in);
if (compiler_options & program_common::interpreter::COMPILER_OPT_ENABLE_TEXTURES)
{
for (int i = 0, location = m_fragment_textures_start; i < 4; ++i, ++location)
{
in.location = location;
@ -282,6 +284,7 @@ namespace vk
in.type = glsl::input_type_texture;
inputs.push_back(in);
}
}
vk_prog->SetInputs(inputs);