From: Cody Northrop Date: Thu, 3 Sep 2015 22:09:28 +0000 (-0600) Subject: demos: Set depth image aspect correctly X-Git-Tag: submit/tizen/20181227.054638~4970 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2241ba065e5e67ed7fafda9a07033a1a604b2b1;p=platform%2Fupstream%2FVulkan-Tools.git demos: Set depth image aspect correctly --- 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,