VkSubpassDependency deps[2]{}; int numDeps = 0; switch (key.prevColorLayout) { case VK_IMAGE_LAYOUT_UNDEFINED: // No need to specify stage or access. break; case VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL: // Already the right color layout. Unclear that we need to do a lot here.. ...