Use proper buffer sizes
This commit is contained in:
parent
f544895708
commit
39852c4a27
1 changed files with 2 additions and 2 deletions
|
|
@ -351,10 +351,10 @@ namespace vks
|
||||||
|
|
||||||
VkBufferCopy copyRegion{};
|
VkBufferCopy copyRegion{};
|
||||||
|
|
||||||
copyRegion.size = vertices.size;
|
copyRegion.size = vBufferSize;
|
||||||
vkCmdCopyBuffer(copyCmd, vertexStaging.buffer, vertices.buffer, 1, ©Region);
|
vkCmdCopyBuffer(copyCmd, vertexStaging.buffer, vertices.buffer, 1, ©Region);
|
||||||
|
|
||||||
copyRegion.size = indices.size;
|
copyRegion.size = iBufferSize;
|
||||||
vkCmdCopyBuffer(copyCmd, indexStaging.buffer, indices.buffer, 1, ©Region);
|
vkCmdCopyBuffer(copyCmd, indexStaging.buffer, indices.buffer, 1, ©Region);
|
||||||
|
|
||||||
device->flushCommandBuffer(copyCmd, copyQueue);
|
device->flushCommandBuffer(copyCmd, copyQueue);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue