VMA_ALLOCATION_CREATE_HOST_ACCESS_ALLOW_TRANSFER_INSTEAD_BIT usage
@SaschaWillems ci sta già lavorando.
Dal 8/1/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Quote from https://howtovulkan.com/:
The specific flags combination of
VMA_ALLOCATION_CREATE_HOST_ACCESS_SEQUENTIAL_WRITE_BITandVMA_ALLOCATION_CREATE_HOST_ACCESS_ALLOW_TRANSFER_INSTEAD_BITused here make sure we get a memory type that's located on the GPU (in VRAM) and accessible by the host.
Meanwhile, quote from VMA / vk_mem_alloc.h:
Together with
VMA_ALLOCATION_CREATE_HOST_ACCESS_SEQUENTIAL_WRITE_BITorVMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT,
it says that despite request for host access, a not-HOST_VISIBLEmemory type can be selected if it may improve performance.By using this flag, you declare that you will check if the allocation ended up in a
HOST_VISIBLEmemory type (e.g. using vmaGetAllocationMemoryProperties()) and if not, you will create some "staging" buffer and issue an explicit transfer to write/read your data.To prepare for this possibility, don't forget to add appropriate flags like
VK_BUFFER_USAGE_TRANSFER_DST_BIT,VK_BUFFER_USAGE_TRANSFER_SRC_BITto the parameters of created buffer or image.
To me it seems VMA_ALLOCATION_CREATE_HOST_ACCESS_ALLOW_TRANSFER_INSTEAD_BIT might not be used correctly in this sample. I believe either the bit should be dropped, or else the sample would need to check if the memory ends up host visible and deal with the case when it is not.
- 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 ·
-
Difficoltà 4/5 1-2 giorni Idoneità per principianti 35/100
SaschaWillems/HowToVulkan#43 · 1 commento ·
-
Bad handling of VK_ERROR_OUT_OF_DATE_KHR returned from vkAcquireNextImageKHRForse di nuovo libera @SaschaWillems l’ha presa 174 giorni fa e non c’è nessuna pull request aperta. Apertabug
SaschaWillems/HowToVulkan#30 · 2 commenti · 1 assegnatario ·
Tutte le issue di SaschaWillems/HowToVulkan
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
LadybirdBrowser/ladybird#13809 ·
I maintainer di solito rispondono entro 1 giorno
-
bug module:nodes tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rocketride-org/rocketride-server#3020 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
keepassxreboot/keepassxc#14010 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
a:platform-macos need triaging
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
slint-ui/slint#14746 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno