aboutsummaryrefslogtreecommitdiff
path: root/cube/cube.cpp
diff options
context:
space:
mode:
authorTony-LunarG <tony@lunarg.com>2018-05-30 11:33:19 -0600
committerTony-LunarG <tony@lunarg.com>2018-05-31 13:20:37 -0600
commita141b962624829204fd4ccaad99a10858aec4eae (patch)
tree0b4809faa04097f9c1d301441ce3f037c863c2b3 /cube/cube.cpp
parentb7940409945face40657080b6074fc5588a0c0ad (diff)
downloadusermoji-a141b962624829204fd4ccaad99a10858aec4eae.tar.xz
cube: Explicitly set QueueFamilyIndex(s) to QUEUE_FAMILY_IGNORED
The QueueFamilyIndex fields only come into play when you want to use an image in two or more queues from different queue families, which cube does not do. Change-Id: I610aa8899539eeb25ca06254b88e6a6d0a2ffc97
Diffstat (limited to 'cube/cube.cpp')
-rw-r--r--cube/cube.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cube/cube.cpp b/cube/cube.cpp
index 9973fa0c..6aa66722 100644
--- a/cube/cube.cpp
+++ b/cube/cube.cpp
@@ -2273,8 +2273,8 @@ void Demo::set_image_layout(vk::Image image, vk::ImageAspectFlags aspectMask, vk
.setDstAccessMask(DstAccessMask(newLayout))
.setOldLayout(oldLayout)
.setNewLayout(newLayout)
- .setSrcQueueFamilyIndex(0)
- .setDstQueueFamilyIndex(0)
+ .setSrcQueueFamilyIndex(VK_QUEUE_FAMILY_IGNORED)
+ .setDstQueueFamilyIndex(VK_QUEUE_FAMILY_IGNORED)
.setImage(image)
.setSubresourceRange(vk::ImageSubresourceRange(aspectMask, 0, 1, 0, 1));