diff options
| author | Cody Northrop <cody@lunarg.com> | 2015-09-03 16:09:28 -0600 |
|---|---|---|
| committer | Cody Northrop <cody@lunarg.com> | 2015-09-03 16:41:17 -0600 |
| commit | f2241ba065e5e67ed7fafda9a07033a1a604b2b1 (patch) | |
| tree | d9dd627aafbe6ce9b5665165dc85a2b35305fd2a | |
| parent | 86c7964efdfb005ee55d269412d5410649a2c1a3 (diff) | |
| download | usermoji-f2241ba065e5e67ed7fafda9a07033a1a604b2b1.tar.xz | |
demos: Set depth image aspect correctly
| -rw-r--r-- | demos/cube.c | 2 | ||||
| -rw-r--r-- | demos/tri.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/cube.c b/demos/cube.c index 160b33f4..bbbb9dae 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -834,7 +834,7 @@ static void demo_prepare_depth(struct demo *demo) .image.handle = VK_NULL_HANDLE, .format = depth_format, .subresourceRange = { - .aspect = VK_IMAGE_ASPECT_COLOR, + .aspect = VK_IMAGE_ASPECT_DEPTH, .baseMipLevel = 0, .mipLevels = 1, .baseArraySlice = 0, diff --git a/demos/tri.c b/demos/tri.c index 5af8e155..03a3ccbe 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -639,7 +639,7 @@ static void demo_prepare_depth(struct demo *demo) .image.handle = VK_NULL_HANDLE, .format = depth_format, .subresourceRange = { - .aspect = VK_IMAGE_ASPECT_COLOR, + .aspect = VK_IMAGE_ASPECT_DEPTH, .baseMipLevel = 0, .mipLevels = 1, .baseArraySlice = 0, |
