Added RenderCmdBuffer::Draw(const VertexInputData *)

This commit is contained in:
2024-04-26 00:41:53 +08:00
parent 9c6c37c07a
commit a1bf9336a3
4 changed files with 13 additions and 6 deletions

View File

@@ -225,12 +225,7 @@ public:
cb->BindPipeline(ri->GetPipeline());
cb->BindDescriptorSets(ri->GetMaterial());
cb->BindVBO(ri);
if (vid->ib_access->buffer)
cb->DrawIndexed(vid->ib_access->buffer->GetCount());
else
cb->Draw(vid->vertex_count);
cb->Draw(vid);
cb->EndRenderPass();
cb->End();