Property for max unique/hardware sampler count

Aperta
#2,769 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Ambito
api, documentation

Direzione di ricerca

Inizia esaminando la proprietà esistente maxSamplerAllocationCount della specifica Vulkan e gli esempi dell'issue relativi ai limiti di sampler univoci. Determina l'ambito e la definizione di una nuova proprietà per il limite di sampler univoci; il lavoro è completato quando la proprietà proposta e il suo comportamento sono concordati per l'inclusione nella specifica.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Feature Request

Currently Vulkan has the property maxSamplerAllocationCount, which specifies how many VkSampler objects can be created at maximum. This can be useful for cases like emulators which may want to keep a cache of Vulkan samplers mapping to the emulated GPU samplers, and want to know when they are approaching the maximum number of samplers to perform garbage collection on least-recently-used cache entries.

The problem here arises from drivers for some generations of Apple hardware like KosmicKrisp (Vulkan on Metal) and HoneyKrisp (direct Linux GPU driver) which have an additional limitation that only 1024 unique samplers can exist. So for example, you are technically allowed to create up to maxSamplerAllocationCount VkSampler objects as described, but if more than 1024 of those are configured uniquely, vkCreateSampler will return VK_ERROR_OUT_OF_HOST_MEMORY.

Meanwhile, the existing limit maxSamplerAllocationCount cannot be lowered to cover this since it would fall below the Vulkan 1.0 required limit minimum of 4000.

The ask here is that there be a new limit property defined which describes the maximum number of unique samplers that may exist at once, so that the application can utilize this information when managing its sampler allocations to avoid hitting out-of-memory errors and thrashing the cache.

Lingua principale
JavaScript
Stelle
3.4k
Fork
555
Merge medio
3g 10h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di KhronosGroup/Vulkan-Docs

Tutte le issue di KhronosGroup/Vulkan-Docs

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.