diff options
| author | Jeremy Hayes <jeremy@lunarg.com> | 2017-02-22 08:53:13 -0700 |
|---|---|---|
| committer | Jeremy Hayes <jeremy-lunarg@users.noreply.github.com> | 2017-02-22 09:49:18 -0700 |
| commit | 1273a38c720b31b891fae695435342e124a3d963 (patch) | |
| tree | 9c99364da0e6e9d3e591e76400656cdce24c475c /demos/cube.cpp | |
| parent | e36af17afa0496cc5d9696dd578fd94392e984d9 (diff) | |
| download | usermoji-1273a38c720b31b891fae695435342e124a3d963.tar.xz | |
demos: Use device local heap for depth
Fix GH 116: Cube demo does not allocate depth buffer in device local
heap.
Change-Id: Ic368bc039fc555f0d8739b0aeb6648237a6fcc5c
Diffstat (limited to 'demos/cube.cpp')
| -rw-r--r-- | demos/cube.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/cube.cpp b/demos/cube.cpp index 5d56ecc0..011c456f 100644 --- a/demos/cube.cpp +++ b/demos/cube.cpp @@ -1446,8 +1446,8 @@ struct Demo { 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); |
