libs/vkd3d-shader: Use more sensible default descriptor binding assignment.

This commit is contained in:
Józef Kucia 2017-10-25 14:34:44 +02:00
parent e959686f12
commit f04389d90b

View File

@ -1823,6 +1823,8 @@ struct vkd3d_dxbc_compiler
uint32_t output_setup_function_id; uint32_t output_setup_function_id;
uint32_t default_sampler_id; uint32_t default_sampler_id;
uint32_t binding_idx;
const struct vkd3d_shader_scan_info *scan_info; const struct vkd3d_shader_scan_info *scan_info;
}; };
@ -2001,7 +2003,7 @@ static struct vkd3d_shader_descriptor_binding vkd3d_dxbc_compiler_get_descriptor
} }
vk_binding.set = 0; vk_binding.set = 0;
vk_binding.binding = reg_idx; vk_binding.binding = compiler->binding_idx++;
return vk_binding; return vk_binding;
} }