RDVertexAttribute
继承: RefCounted < Object
顶点属性(由 RenderingDevice 使用)。
描述
这个对象由 RenderingDevice 使用。
属性
|
||
|
||
|
||
|
||
|
||
|
属性说明
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()
将属性数据发送至着色器时,对该数据的解释方式。
VertexFrequency frequency = 0 🔗
void set_frequency(value: VertexFrequency)
VertexFrequency get_frequency()
从顶点缓冲中拉取该属性的频率。
该属性在着色器中绑定的位置。
顶点缓冲起点与该属性的第一个实例之间的字节数。
该属性相邻两个实例之间的字节数。