WIP bug-14815: VkImageAspect
diff --git a/demos/cube.c b/demos/cube.c
index 7903ad8..dddf8d6 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -1029,7 +1029,7 @@
if (required_props & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) {
const VkImageSubresource subres = {
- .aspect = VK_IMAGE_ASPECT_COLOR,
+ .aspect = VK_IMAGE_ASPECT_COLOR_BIT,
.mipLevel = 0,
.arrayLayer = 0,
};
@@ -1102,9 +1102,9 @@
VK_IMAGE_LAYOUT_TRANSFER_DESTINATION_OPTIMAL);
VkImageCopy copy_region = {
- .srcSubresource = { VK_IMAGE_ASPECT_COLOR, 0, 0 },
+ .srcSubresource = { VK_IMAGE_ASPECT_COLOR_BIT, 0, 0 },
.srcOffset = { 0, 0, 0 },
- .destSubresource = { VK_IMAGE_ASPECT_COLOR, 0, 0 },
+ .destSubresource = { VK_IMAGE_ASPECT_COLOR_BIT, 0, 0 },
.destOffset = { 0, 0, 0 },
.extent = { staging_texture.tex_width, staging_texture.tex_height, 1 },
};