KhronosGroup / KhronosGroup/Vulkan-Tutorial

Calculation of swapchain image count is confusing

オープン
#261 コメント 2 件 リアクション 0 件 担当者 1 名 @gpx1000 が担当を希望しています GitHub で見る
主要言語
C++
スター
418
フォーク
126
平均マージ
11日 6時間
マージ済み PR(30日)
31

説明

The documentation around the number of swapchain images the tutorial uses is kinda confusing to readers and should be reworked.

This code e.g.:

```cpp
auto minImageCount = std::max( 3u, surfaceCapabilities.minImageCount );
```

Is followed by code that uses a different variable:

```cpp
uint32_t imageCount = surfaceCapabilities.minImageCount;
```

Which is then not used for swapchain creation.

It also says that it's recommended to use minImageCount + 1 images, without quoting any source. Not sure if that's actually a recommendation.

See https://docs.vulkan.org/tutorial/latest/03_Drawing_a_triangle/01_Presentation/01_Swap_chain.html#_creating_the_swap_chain

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。