windowSize / currentExtent vkGetPhysicalDeviceSurfaceCapabilitiesKHR
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- cpp
- Ambito
- computer-graphics, documentation
Direzione di ricerca
The issue points to the tutorial’s “Swapchain” and “Recreate swapchain” sections and their source code, including the surfaceCaps.currentExtent check and windowSize update. Read those sections alongside the cited Vulkan swapchain reference and compare the extent handling across initial creation and resize. Done means resolving the apparent inconsistency in both tutorial text and source code, with the explanation matching the implementation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Swapchain
This wording (emphasis added)
First step is getting the correct extent of the swapchain.
Is confusing.
docs.vulkan.org/VkSwapchainCreateInfoKHR says:
imageExtent [...] The behavior is platform-dependent if the image extent does not match the surface’s currentExtent as returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR.
However, later, in the if (updateSwapchain) block, imageExtent is changed to windowSize on a window resize.
Suggestion: do one of these things:
- delete the
if (surfaceCaps.currentExtent.width == 0xFFFFFFFF)block and set the value of swapchainExtent to the value of windowSize (both in the tutorial text and in the source code); remove the entire paragraph that starts with the sentence "First step is getting the correct extent of the swapchain." - improve the explanation in "Swapchain" and/or "Recreate swapchain" with more detail on the reason for apparent inconsistency in (not) comparing
currentExtentas returned byvkGetPhysicalDeviceSurfaceCapabilitiesKHRwith the window size as returned bySDL_GetWindowSize. - if the current "Recreate swapchain" implementation is incorrect, and it should indeed use the extent values from
vkGetPhysicalDeviceSurfaceCapabilitiesKHRwhen possible, modify the "Recreate swapchain" implementation to do so (both in the tutorial text and in the source code).
- Lingua principale
- C++
- Stelle
- 681
- Fork
- 63
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SaschaWillems/HowToVulkan
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
SaschaWillems/HowToVulkan#40 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
SaschaWillems/HowToVulkan#44 · 2 reazioni ·
-
Bad handling of VK_ERROR_OUT_OF_DATE_KHR returned from vkAcquireNextImageKHRForse di nuovo libera @SaschaWillems l’ha presa 176 giorni fa e non c’è nessuna pull request aperta. Apertabug
SaschaWillems/HowToVulkan#30 · 2 commenti · 1 assegnatario ·
-
VMA_ALLOCATION_CREATE_HOST_ACCESS_ALLOW_TRANSFER_INSTEAD_BIT usageForse di nuovo libera @SaschaWillems l’ha presa 302 giorni fa e non c’è nessuna pull request aperta. Aperta
SaschaWillems/HowToVulkan#14 · 3 commenti · 3 reazioni · 1 assegnatario ·
Tutte le issue di SaschaWillems/HowToVulkan
Issue simili
-
bug javascript
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement third-party
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pocoproject/poco#5656 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Type: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
Qiskit/qiskit-aer#2525 ·
I maintainer di solito rispondono entro 1 giorno