RDVertexAttribute

继承: RefCounted < Object

顶点属性(由RenderingDevice使用)。

描述

此对象由RenderingDevice使用。

属性


属性说明

DataFormat format = 218 🔗

此属性的数据在发送到着色器时被解释的方式。


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()

此属性的连续实例开始之间的字节数。