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
parent 6efd5195cd
commit 7cc00bd0ba

View file

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