Fix GH 116: Cube demo does not allocate depth buffer in device local
heap.
Change-Id: Ic368bc039fc555f0d8739b0aeb6648237a6fcc5c
demo->depth.mem_alloc.memoryTypeIndex = 0;
pass = memory_type_from_properties(demo, mem_reqs.memoryTypeBits,
- 0, /* No requirements */
+ VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
&demo->depth.mem_alloc.memoryTypeIndex);
assert(pass);
depth.mem_alloc.setAllocationSize(mem_reqs.size);
depth.mem_alloc.setMemoryTypeIndex(0);
- auto const pass =
- memory_type_from_properties(mem_reqs.memoryTypeBits, vk::MemoryPropertyFlagBits(0), &depth.mem_alloc.memoryTypeIndex);
+ auto const pass = memory_type_from_properties(mem_reqs.memoryTypeBits, vk::MemoryPropertyFlagBits::eDeviceLocal,
+ &depth.mem_alloc.memoryTypeIndex);
VERIFY(pass);
result = device.allocateMemory(&depth.mem_alloc, nullptr, &depth.mem);