libs/vkd3d: Fix Vulkan bindings assignment.

Fixes 6d569fcbc6c59ddab233094f2bed337d9386827a,
This commit is contained in:
Józef Kucia 2017-07-26 14:50:39 +02:00
parent 2ba76ceb02
commit 1589ce7682

View File

@ -290,13 +290,14 @@ static bool vk_count_descriptor_types(const VkDescriptorSetLayoutBinding *bindin
static uint32_t d3d12_root_signature_assign_vk_binding(struct d3d12_root_signature *root_signature,
enum vkd3d_descriptor_type descriptor_type, unsigned int register_idx, uint32_t *descriptor_idx)
{
uint32_t binding = (*descriptor_idx)++;
uint32_t binding = *descriptor_idx;
root_signature->descriptor_mapping[binding].type = descriptor_type;
root_signature->descriptor_mapping[binding].index = register_idx;
root_signature->descriptor_mapping[binding].descriptor_set = 0;
root_signature->descriptor_mapping[binding].binding = binding;
*descriptor_idx += 1;
return binding;
}