Up to date

This page is up to date for Godot 4.3. If you still find outdated information, please open an issue.

RDVertexAttributeΒΆ

Inherits: RefCounted < Object

Vertex attribute (used by RenderingDevice).

DescriptionΒΆ

This object is used by RenderingDevice.

PropertiesΒΆ

DataFormat

format

218

VertexFrequency

frequency

0

int

location

0

int

offset

0

int

stride

0


Property DescriptionsΒΆ

DataFormat format = 218 πŸ”—

The way that this attribute's data is interpreted when sent to a shader.


VertexFrequency frequency = 0 πŸ”—

The rate at which this attribute is pulled from its vertex buffer.


int location = 0 πŸ”—

  • void set_location(value: int)

  • int get_location()

The location in the shader that this attribute is bound to.


int offset = 0 πŸ”—

  • void set_offset(value: int)

  • int get_offset()

The number of bytes between the start of the vertex buffer and the first instance of this attribute.


int stride = 0 πŸ”—

  • void set_stride(value: int)

  • int get_stride()

The number of bytes between the starts of consecutive instances of this attribute.