File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -757,7 +757,13 @@ if (oldLayout == VK_IMAGE_LAYOUT_PREINITIALIZED && newLayout == VK_IMAGE_LAYOUT_
757757
758758If we need to do more transitions in the future, then we'll extend the function.
759759The application should now run successfully, although there are of course no
760- visual changes yet.
760+ visual changes yet. One thing to note is that command buffer submission results
761+ in implicit ` VK_ACCESS_HOST_WRITE_BIT ` synchronization at the beginning. Since
762+ the ` transitionImageLayout ` function executes a command buffer with only a
763+ single command, we can use this implicit synchronization and set ` srcAccessMask `
764+ to ` 0 ` for the first two types of transitions. It's up to you if you want to be
765+ explicit about it or not, but I'm personally not a fan of relying on these
766+ OpenGL-like "hidden" operations.
761767
762768There is actually a special type of image layout that supports all operations,
763769` VK_IMAGE_LAYOUT_GENERAL ` . The problem with it, of course, is that it doesn't
You can’t perform that action at this time.
0 commit comments