Skip to content

Commit

Permalink
Update swapchain.md
Browse files Browse the repository at this point in the history
add period between sentences
  • Loading branch information
mo-ba authored and KyleMayes committed Aug 22, 2023
1 parent 26de125 commit 34fed2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorial/book/src/presentation/swapchain.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ Next, we need to specify how to handle swapchain images that will be used across
* `vk::SharingMode::EXCLUSIVE` – An image is owned by one queue family at a time and ownership must be explicitly transferred before using it in another queue family. This option offers the best performance.
* `vk::SharingMode::CONCURRENT` – Images can be used across multiple queue families without explicit ownership transfers.

If the queue families differ, then we'll be using the concurrent mode in this tutorial to avoid having to do the ownership chapters, because these involve some concepts that are better explained at a later time. Concurrent mode requires you to specify in advance between which queue families ownership will be shared using the `queue_family_indices` builder method If the graphics queue family and presentation queue family are the same, which will be the case on most hardware, then we should stick to exclusive mode, because concurrent mode requires you to specify at least two distinct queue families.
If the queue families differ, then we'll be using the concurrent mode in this tutorial to avoid having to do the ownership chapters, because these involve some concepts that are better explained at a later time. Concurrent mode requires you to specify in advance between which queue families ownership will be shared using the `queue_family_indices` builder method. If the graphics queue family and presentation queue family are the same, which will be the case on most hardware, then we should stick to exclusive mode, because concurrent mode requires you to specify at least two distinct queue families.

```rust,noplaypen
let mut queue_family_indices = vec![];
Expand Down

0 comments on commit 34fed2c

Please sign in to comment.