Corrected memory property flag for staging target buffer

This commit is contained in:
saschawillems 2016-04-21 20:56:04 +02:00
parent 581a043620
commit 77bb8cf68b

View file

@ -501,7 +501,7 @@ public:
VulkanExampleBase::createBuffer( VulkanExampleBase::createBuffer(
VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT,
VK_MEMORY_HEAP_DEVICE_LOCAL_BIT, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
instanceBuffer.size, instanceBuffer.size,
nullptr, nullptr,
&instanceBuffer.buffer, &instanceBuffer.buffer,