projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86c7964
)
demos: Set depth image aspect correctly
author
Cody Northrop
<cody@lunarg.com>
Thu, 3 Sep 2015 22:09:28 +0000
(16:09 -0600)
committer
Cody Northrop
<cody@lunarg.com>
Thu, 3 Sep 2015 22:41:17 +0000
(16:41 -0600)
demos/cube.c
patch
|
blob
|
history
demos/tri.c
patch
|
blob
|
history
diff --git
a/demos/cube.c
b/demos/cube.c
index 160b33f420a1520bfaf9aedb91c36b2910010a26..bbbb9dae2d0c57b11cd1793489975d479abd5227 100644
(file)
--- 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 5af8e155fbd5cdd3ada44c23fb00ba35c9d0e992..03a3ccbea3024438651ad64b2b8cbb210922c74e 100644
(file)
--- 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,