Mesh loader now does staging to device local memory by default (Refs #84)
This commit is contained in:
parent
79b7fd440c
commit
66f006b783
2 changed files with 195 additions and 52 deletions
|
|
@ -378,12 +378,19 @@ void VulkanExampleBase::loadMesh(
|
|||
mesh->LoadMesh(filename);
|
||||
assert(mesh->m_Entries.size() > 0);
|
||||
|
||||
mesh->createVulkanBuffers(
|
||||
VkCommandBuffer copyCmd = VulkanExampleBase::createCommandBuffer(VK_COMMAND_BUFFER_LEVEL_PRIMARY, false);
|
||||
|
||||
mesh->createBuffers(
|
||||
device,
|
||||
deviceMemoryProperties,
|
||||
meshBuffer,
|
||||
vertexLayout,
|
||||
scale);
|
||||
scale,
|
||||
true,
|
||||
copyCmd,
|
||||
queue);
|
||||
|
||||
vkFreeCommandBuffers(device, cmdPool, 1, ©Cmd);
|
||||
|
||||
meshBuffer->dim = mesh->dim.size;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue