KRPipeline's are now created with the passed in KRMesh::model_format_t

This commit is contained in:
2022-02-28 22:04:24 -08:00
parent 4cb3566906
commit 00eeb8bcb4
6 changed files with 41 additions and 24 deletions

View File

@@ -167,10 +167,10 @@ void KRPresentationThread::renderFrame()
bool haveMesh = testVertices.isVBOReady();
if (haveMesh) {
KRPipeline* testPipeline = m_pContext->getPipelineManager()->getPipeline(surface, "vulkan_test", testVertices.getVertexAttributes());
KRPipeline* testPipeline = m_pContext->getPipelineManager()->getPipeline(surface, "vulkan_test", testVertices.getVertexAttributes(), KRMesh::model_format_t::KRENGINE_MODEL_FORMAT_STRIP);
testPipeline->bind(commandBuffer);
testVertices.bind(commandBuffer);
vkCmdDraw(commandBuffer, 3, 1, 0, 0);
vkCmdDraw(commandBuffer, 4, 1, 0, 0);
}
vkCmdEndRenderPass(commandBuffer);