Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3e88e4

Browse files
committed
Clarify swap chain sharing mode a bit better
1 parent c43acb7 commit f3e88e4

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

03_Drawing_a_triangle/01_Presentation/01_Swap_chain.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -457,14 +457,15 @@ family. This option offers the best performance.
457457
* `VK_SHARING_MODE_CONCURRENT`: Images can be used across multiple queue
458458
families without explicit ownership transfers.
459459

460-
We'll be using the concurrent mode in this tutorial to avoid having to do the
461-
ownership chapters, because these involve some concepts that are better
462-
explained at a later time. Concurrent mode requires you to specify in advance
463-
between which queue families ownership will be shared using the
464-
`queueFamilyIndexCount` and `pQueueFamilyIndices` parameters. If the graphics
465-
queue family and presentation queue family are the same, which will be the case
466-
on most hardware, then we should stick to exclusive mode, because concurrent
467-
mode requires you to specify at least two distinct queue families.
460+
If the queue families differ, then we'll be using the concurrent mode in this
461+
tutorial to avoid having to do the ownership chapters, because these involve
462+
some concepts that are better explained at a later time. Concurrent mode
463+
requires you to specify in advance between which queue families ownership will
464+
be shared using the `queueFamilyIndexCount` and `pQueueFamilyIndices`
465+
parameters. If the graphics queue family and presentation queue family are the
466+
same, which will be the case on most hardware, then we should stick to exclusive
467+
mode, because concurrent mode requires you to specify at least two distinct
468+
queue families.
468469

469470
```c++
470471
createInfo.preTransform = swapChainSupport.capabilities.currentTransform;

0 commit comments

Comments
 (0)