aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Barbour <tony@LunarG.com>2015-10-12 11:07:58 -0600
committerTony Barbour <tony@LunarG.com>2015-10-12 13:28:45 -0600
commitc99f294eaa98a97a1783a1b943f00850fe6ded03 (patch)
treead332dd57973fa6fed8b22c76f4b866a399797f8
parent2cc0a9ba8865ade9bf95b680dea0a2cd972b2df4 (diff)
downloadusermoji-c99f294eaa98a97a1783a1b943f00850fe6ded03.tar.xz
Fix image aspect value passed to demo_set_image_layout
Addresses LunarExchange issue #156
-rw-r--r--demos/cube.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/cube.c b/demos/cube.c
index 6b83080b..503bf3b9 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -788,7 +788,7 @@ static void demo_prepare_buffers(struct demo *demo)
demo->buffers[i].image = swapchainImages[i];
demo_set_image_layout(demo, demo->buffers[i].image,
- VK_IMAGE_ASPECT_COLOR,
+ VK_IMAGE_ASPECT_COLOR_BIT,
VK_IMAGE_LAYOUT_UNDEFINED,
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL);
@@ -1007,7 +1007,7 @@ static void demo_prepare_texture_image(struct demo *demo,
tex_obj->imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
demo_set_image_layout(demo, tex_obj->image,
- VK_IMAGE_ASPECT_COLOR,
+ VK_IMAGE_ASPECT_COLOR_BIT,
VK_IMAGE_LAYOUT_UNDEFINED,
tex_obj->imageLayout);
/* setting the image layout does not reference the actual memory so no need to add a mem ref */
@@ -1050,12 +1050,12 @@ static void demo_prepare_textures(struct demo *demo)
VK_MEMORY_PROPERTY_DEVICE_ONLY);
demo_set_image_layout(demo, staging_texture.image,
- VK_IMAGE_ASPECT_COLOR,
+ VK_IMAGE_ASPECT_COLOR_BIT,
staging_texture.imageLayout,
VK_IMAGE_LAYOUT_TRANSFER_SOURCE_OPTIMAL);
demo_set_image_layout(demo, demo->textures[i].image,
- VK_IMAGE_ASPECT_COLOR,
+ VK_IMAGE_ASPECT_COLOR_BIT,
demo->textures[i].imageLayout,
VK_IMAGE_LAYOUT_TRANSFER_DESTINATION_OPTIMAL);
@@ -1072,7 +1072,7 @@ static void demo_prepare_textures(struct demo *demo)
1, &copy_region);
demo_set_image_layout(demo, demo->textures[i].image,
- VK_IMAGE_ASPECT_COLOR,
+ VK_IMAGE_ASPECT_COLOR_BIT,
VK_IMAGE_LAYOUT_TRANSFER_DESTINATION_OPTIMAL,
demo->textures[i].imageLayout);