RDVertexAttribute
Inherits: RefCounted < Object
Description
Section titled “Description”Vertex attribute (used by RenderingDevice).
This object is used by RenderingDevice.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| int | binding |
4294967295 |
| RenderingDevice.DataFormat | format |
232 |
| RenderingDevice.VertexFrequency | frequency |
0 |
| int | location |
0 |
| int | offset |
0 |
| int | stride |
0 |
Property descriptions
Section titled “Property descriptions”binding
int binding = 4294967295
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.
format
RenderingDevice.DataFormat format = 232
The way that this attribute’s data is interpreted when sent to a shader.
frequency
RenderingDevice.VertexFrequency frequency = 0
The rate at which this attribute is pulled from its vertex buffer.
location
int location = 0
The location in the shader that this attribute is bound to.
offset
int offset = 0
The number of bytes between the start of the vertex buffer and the first instance of this attribute.
stride
int stride = 0
The number of bytes between the starts of consecutive instances of this attribute.
