Code cleanup
This commit is contained in:
parent
4b9f10d644
commit
53846d8b1d
23 changed files with 54 additions and 104 deletions
|
|
@ -381,7 +381,7 @@ public:
|
|||
memcpy(mapped, data, texMemSize);
|
||||
vkUnmapMemory(device, stagingMemory);
|
||||
|
||||
VkCommandBuffer copyCmd = VulkanExampleBase::createCommandBuffer(VK_COMMAND_BUFFER_LEVEL_PRIMARY, true);
|
||||
VkCommandBuffer copyCmd = vulkanDevice->createCommandBuffer(VK_COMMAND_BUFFER_LEVEL_PRIMARY, true);
|
||||
|
||||
// The sub resource range describes the regions of the image we will be transitioned
|
||||
VkImageSubresourceRange subresourceRange = {};
|
||||
|
|
@ -428,7 +428,7 @@ public:
|
|||
texture.imageLayout,
|
||||
subresourceRange);
|
||||
|
||||
VulkanExampleBase::flushCommandBuffer(copyCmd, queue, true);
|
||||
vulkanDevice->flushCommandBuffer(copyCmd, queue, true);
|
||||
|
||||
// Clean up staging resources
|
||||
delete[] data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue