demos: Set depth image aspect correctly
authorCody Northrop <cody@lunarg.com>
Thu, 3 Sep 2015 22:09:28 +0000 (16:09 -0600)
committerCody Northrop <cody@lunarg.com>
Thu, 3 Sep 2015 22:41:17 +0000 (16:41 -0600)
demos/cube.c
demos/tri.c

index 160b33f420a1520bfaf9aedb91c36b2910010a26..bbbb9dae2d0c57b11cd1793489975d479abd5227 100644 (file)
@@ -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,
index 5af8e155fbd5cdd3ada44c23fb00ba35c9d0e992..03a3ccbea3024438651ad64b2b8cbb210922c74e 100644 (file)
@@ -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,