KhronosGroup / KhronosGroup/Vulkan-Tutorial

Calculation of swapchain image count is confusing

Abierto
#261 2 comentarios 0 reacciones 1 asignado Reclamado por @gpx1000 Ver en GitHub
Lenguaje dominante
C++
Estrellas
418
Forks
126
Merge medio
11 d 6 h
PR fusionados (30 d)
31

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.