KhronosGroup / KhronosGroup/Vulkan-Tutorial

Calculation of swapchain image count is confusing

未关闭
#261 2 条评论 0 个 reaction 已指派 1 人 已被 @gpx1000 认领 在 GitHub 查看
主要语言
C++
星标
418
派生
126
平均合并
11 天 6 小时
30 天内合并 PR
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 摘要。