1
0
mirror of https://github.com/Yours3lf/rpi-vk-driver.git synced 2025-02-19 16:54:18 +01:00

Merge pull request #21 from pjx3/bindDescriptorSetsFix

Fix for incorrect index into descriptor array argument
This commit is contained in:
Yours3lf 2020-09-25 21:05:34 +01:00 committed by GitHub
commit 39bb5f20e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -439,9 +439,9 @@ VKAPI_ATTR void VKAPI_CALL RPIFUNC(vkCmdBindDescriptorSets)(
_pipelineLayout* pl = layout;//pipelineBindPoint == VK_PIPELINE_BIND_POINT_GRAPHICS ? cb->graphicsPipeline->layout : cb->computePipeline->layout;
assert(firstSet + descriptorSetCount <= pl->setLayoutCount);
for(uint32_t c = firstSet; c < firstSet + descriptorSetCount; ++c)
for(uint32_t c = 0; c < descriptorSetCount; ++c)
{
setMapElement(&pl->descriptorSetBindingMap, c, pDescriptorSets[c]);
setMapElement(&pl->descriptorSetBindingMap, firstSet + c, pDescriptorSets[c]);
}
cb->descriptorSetDirty = 1;