Skip to content
Snippets Groups Projects
Verified Commit 667d041d authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#105] Fixed type conversion error

parent c09a843c
No related branches found
No related tags found
1 merge request!88Resolve "Indirect Draw"
Pipeline #26724 passed
......@@ -11,11 +11,12 @@ void addMeshToIdirectDraw(const std::vector<vkcv::asset::VertexGroup> &meshes,
for (vkcv::asset::VertexGroup mesh : meshes) {
vk::DrawIndexedIndirectCommand indirectCommand {
mesh.indexBuffer.data.size(),
1,
mesh.indexBuffer.data[0],
0,
indexedIndirectCommands.size()};
static_cast<uint32_t>(mesh.indexBuffer.data.size()),
1,
mesh.indexBuffer.data[0],
0,
static_cast<uint32_t>(indexedIndirectCommands.size())
};
indexedIndirectCommands.push_back(indirectCommand);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment