Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Clarify vertex input bindings

Aperta Adatta ai principianti
#527 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Ambito
documentation

Direzione di ricerca

Inizia dalla sezione «Binding descriptions» del capitolo sulla descrizione dell'input dei vertici nel tutorial, che la issue collega e cita. La issue propone una formulazione sostitutiva che prima definisce un binding di input dei vertici come uno slot numerato, poi tratta stride e inputRate, e infine osserva che bindVertexBuffers() viene trattato nel capitolo successivo. Il lavoro è completato quando la sezione si legge in quest'ordine; un diagramma è facoltativo. Il payload non indica il file sorgente, quindi individualo a partire dal titolo della sezione.

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

Descrizione

In the Binding descriptions section, the tutorial introduces vertex input bindings with the following explanation:

A vertex binding describes at which rate to load data from memory throughout the vertices. It specifies the number of bytes between data entries and whether to move to the next data entry after each vertex or after each instance.

I found this explanation confusing because it describes the properties of a vertex input binding, particularly stride and inputRate, without first explaining what a vertex input binding actually represents.

My understanding is that a vertex input binding is a numbered input slot that can be associated with a vertex buffer. The binding description specifies how data from that slot should be accessed, while vertex attribute descriptions specify which binding supplies each attribute.

The actual vertex buffer is associated with the slot separately, using bindVertexBuffers(), which is introduced in the next chapter

I think the section would be easier to follow if it first introduced the concept of a vertex input binding before explaining its properties.

For example, the explanation could be revised to:

A vertex input binding is a numbered slot used to supply vertex attribute data. Multiple vertex attributes can reference the same binding.

Each binding has a description that specifies the stride between consecutive data entries and whether the data is accessed per vertex or per instance.

At this point, we're only describing how the data should be accessed. In the next chapter, we'll use bindVertexBuffers() to associate an actual vertex buffer with this binding.

This would clarify the distinction between a binding itself, its description, and the actual buffer associated with it. Even better, we can use a diagram to illustrate this.

Lingua principale
C++
Stelle
432
Fork
133
Merge medio
1g 9h
PR unite (30g)
4

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-Tutorial

Tutte le issue di KhronosGroup/Vulkan-Tutorial

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.