RDVertexAttribute

Hereda: RefCounted < Object

Atributo de vértice (utilizado por RenderingDevice).

Descripción

Este objeto es utilizado por RenderingDevice.

Propiedades

int

binding

4294967295

DataFormat

format

232

VertexFrequency

frequency

0

int

location

0

int

offset

0

int

stride

0


Descripciones de Propiedades

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 🔗

La forma en que los datos de este atributo se interpretan cuando se envían a un shader.


VertexFrequency frequency = 0 🔗

La velocidad a la que este atributo se extrae de su búfer de vértices.


int location = 0 🔗

  • void set_location(value: int)

  • int get_location()

La ubicación en el shader al que está enlazado este atributo.


int offset = 0 🔗

  • void set_offset(value: int)

  • int get_offset()

El número de bytes entre el inicio del búfer de vértices y la primera instancia de este atributo.


int stride = 0 🔗

  • void set_stride(value: int)

  • int get_stride()

El número de bytes entre el inicio de instancias consecutivas de este atributo.