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
继承: RefCounted < Object
顶点属性(由 RenderingDevice 使用)。
描述
这个对象由 RenderingDevice 使用。
属性
|
||
|
||
|
||
|
||
|
||
|
属性说明
要绑定该顶点属性的顶点缓冲区数组中的缓冲区索引。当设置为 -1 时,默认为该属性的索引。
注意:不能混用显式绑定指定的属性和隐式绑定指定的属性(即 -1)。所有属性的绑定要么都设置为 -1,要么都必须显式绑定。
DataFormat format = 232 🔗
void set_format(value: DataFormat)
DataFormat get_format()
将属性数据发送至着色器时,对该数据的解释方式。
VertexFrequency frequency = 0 🔗
void set_frequency(value: VertexFrequency)
VertexFrequency get_frequency()
从顶点缓冲中拉取该属性的频率。
该属性在着色器中绑定的位置。
顶点缓冲起点与该属性的第一个实例之间的字节数。
该属性相邻两个实例之间的字节数。