Index buffer size for copy command command
This commit is contained in:
parent
9af56b0ae0
commit
e7b371eef3
1 changed files with 1 additions and 1 deletions
|
|
@ -321,7 +321,7 @@ public:
|
||||||
indexBufferSize);
|
indexBufferSize);
|
||||||
|
|
||||||
VK_CHECK_RESULT(vkBeginCommandBuffer(copyCmd, &cmdBufInfo));
|
VK_CHECK_RESULT(vkBeginCommandBuffer(copyCmd, &cmdBufInfo));
|
||||||
copyRegion.size = vertexBufferSize;
|
copyRegion.size = indexBufferSize;
|
||||||
vkCmdCopyBuffer(copyCmd, stagingBuffer, indexBuffer, 1, ©Region);
|
vkCmdCopyBuffer(copyCmd, stagingBuffer, indexBuffer, 1, ©Region);
|
||||||
VK_CHECK_RESULT(vkEndCommandBuffer(copyCmd));
|
VK_CHECK_RESULT(vkEndCommandBuffer(copyCmd));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue