demos: Initialize all of subresource fields
diff --git a/demos/cube.c b/demos/cube.c
index 22a925f..d5fa775 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -1142,9 +1142,9 @@
VK_IMAGE_LAYOUT_TRANSFER_DESTINATION_OPTIMAL);
VkImageCopy copy_region = {
- .srcSubresource = { VK_IMAGE_ASPECT_COLOR_BIT, 0, 0 },
+ .srcSubresource = { VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1 },
.srcOffset = { 0, 0, 0 },
- .destSubresource = { VK_IMAGE_ASPECT_COLOR_BIT, 0, 0 },
+ .destSubresource = { VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1 },
.destOffset = { 0, 0, 0 },
.extent = { staging_texture.tex_width, staging_texture.tex_height, 1 },
};
diff --git a/demos/tri.c b/demos/tri.c
index 5eb22fd..25cddf3 100644
--- a/demos/tri.c
+++ b/demos/tri.c
@@ -900,9 +900,9 @@
VK_IMAGE_LAYOUT_TRANSFER_DESTINATION_OPTIMAL);
VkImageCopy copy_region = {
- .srcSubresource = { VK_IMAGE_ASPECT_COLOR_BIT, 0, 0 },
+ .srcSubresource = { VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1 },
.srcOffset = { 0, 0, 0 },
- .destSubresource = { VK_IMAGE_ASPECT_COLOR_BIT, 0, 0 },
+ .destSubresource = { VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1 },
.destOffset = { 0, 0, 0 },
.extent = { staging_texture.tex_width, staging_texture.tex_height, 1 },
};