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.

RDVertexAttribute

Eredita: RefCounted < Object

Attributo di vertice (utilizzato da RenderingDevice).

Descrizione

Questo oggetto è utilizzato dal RenderingDevice.

Proprietà

int

binding

4294967295

DataFormat

format

232

VertexFrequency

frequency

0

int

location

0

int

offset

0

int

stride

0


Descrizioni delle proprietà

int binding = 4294967295 🔗

  • void set_binding(value: int)

  • int get_binding()

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 🔗

Il modo in cui i dati di questo attributo vengono interpretati quando vengono inviati a uno shader.


VertexFrequency frequency = 0 🔗

La frequenza con cui questo attributo viene estratto dal suo buffer di vertici.


int location = 0 🔗

  • void set_location(value: int)

  • int get_location()

La posizione nello shader a cui è vincolato questo attributo.


int offset = 0 🔗

  • void set_offset(value: int)

  • int get_offset()

Il numero di byte tra l'inizio del buffer di vertici e la prima occorrenza di questo attributo.


int stride = 0 🔗

  • void set_stride(value: int)

  • int get_stride()

Il numero di byte tra gli inizi di istanze consecutive di questo attributo.