RDVertexAttribute

Наследует: RefCounted < Object

Атрибут вершины (используется RenderingDevice).

Описание

Этот объект используется RenderingDevice.

Свойства

int

binding

4294967295

DataFormat

format

232

VertexFrequency

frequency

0

int

location

0

int

offset

0

int

stride

0


Описания свойств

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 🔗

Способ интерпретации данных этого атрибута при отправке в шейдер.


VertexFrequency frequency = 0 🔗

Скорость, с которой этот атрибут извлекается из буфера вершин.


int location = 0 🔗

  • void set_location(value: int)

  • int get_location()

Местоположение в шейдере, к которому привязан этот атрибут.


int offset = 0 🔗

  • void set_offset(value: int)

  • int get_offset()

Количество байтов между началом буфера вершин и первым экземпляром этого атрибута.


int stride = 0 🔗

  • void set_stride(value: int)

  • int get_stride()

Количество байтов между началами последовательных экземпляров этого атрибута.