mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 04:51:18 +00:00
Remove redundant vkCmdBindDescriptorSets
This commit is contained in:
parent
5a824ee015
commit
3759e45c5d
@ -106,8 +106,6 @@ namespace engine {
|
|||||||
for (const auto& [pipeline, drawCalls] : pipelineDrawCalls) {
|
for (const auto& [pipeline, drawCalls] : pipelineDrawCalls) {
|
||||||
m_gfx->cmdBindPipeline(renderData.drawBuffer, pipeline);
|
m_gfx->cmdBindPipeline(renderData.drawBuffer, pipeline);
|
||||||
for (const auto& drawCall : drawCalls) {
|
for (const auto& drawCall : drawCalls) {
|
||||||
m_gfx->cmdBindDescriptorSet(renderData.drawBuffer, pipeline, renderData.globalSet, 0);
|
|
||||||
m_gfx->cmdBindDescriptorSet(renderData.drawBuffer, pipeline, renderData.frameSet, 1);
|
|
||||||
m_gfx->cmdBindDescriptorSet(renderData.drawBuffer, pipeline, drawCall.materialSet, 2);
|
m_gfx->cmdBindDescriptorSet(renderData.drawBuffer, pipeline, drawCall.materialSet, 2);
|
||||||
m_gfx->cmdPushConstants(renderData.drawBuffer, pipeline, 0, sizeof(PushConstants), &drawCall.pushConsts);
|
m_gfx->cmdPushConstants(renderData.drawBuffer, pipeline, 0, sizeof(PushConstants), &drawCall.pushConsts);
|
||||||
m_gfx->cmdBindVertexBuffer(renderData.drawBuffer, 0, drawCall.vb);
|
m_gfx->cmdBindVertexBuffer(renderData.drawBuffer, 0, drawCall.vb);
|
||||||
|
Loading…
Reference in New Issue
Block a user