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
Inherits: RefCounted < Object
Vertex attribute (used by RenderingDevice).
Description
This object is used by RenderingDevice.
Properties
|
||
|
||
|
||
|
||
|
||
|
Property Descriptions
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()
The way that this attribute's data is interpreted when sent to a shader.
VertexFrequency frequency = 0 🔗
void set_frequency(value: VertexFrequency)
VertexFrequency get_frequency()
The rate at which this attribute is pulled from its vertex buffer.
The location in the shader that this attribute is bound to.
The number of bytes between the start of the vertex buffer and the first instance of this attribute.
The number of bytes between the starts of consecutive instances of this attribute.