Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
RDVertexAttribute
Eredita: RefCounted < Object
Attributo di vertice (utilizzato da RenderingDevice).
Descrizione
Questo oggetto è utilizzato dal RenderingDevice.
Proprietà
|
||
|
||
|
||
|
||
|
||
|
Descrizioni delle proprietà
The index of the buffer in the vertex buffer array to bind this vertex attribute. When set to -1, it defaults to the index of the attribute.
Note: You cannot mix binding explicitly assigned attributes with implicitly assigned ones (i.e. -1). Either all attributes must have their binding set to -1, or all must have explicit bindings.
DataFormat format = 232 🔗
void set_format(value: DataFormat)
DataFormat get_format()
Il modo in cui i dati di questo attributo vengono interpretati quando vengono inviati a uno shader.
VertexFrequency frequency = 0 🔗
void set_frequency(value: VertexFrequency)
VertexFrequency get_frequency()
La frequenza con cui questo attributo viene estratto dal suo buffer di vertici.
La posizione nello shader a cui è vincolato questo attributo.
Il numero di byte tra l'inizio del buffer di vertici e la prima occorrenza di questo attributo.
Il numero di byte tra gli inizi di istanze consecutive di questo attributo.