Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add descriptions to RDVertexAttribute's properties #97346

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/classes/RDVertexAttribute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@
</tutorials>
<members>
<member name="format" type="int" setter="set_format" getter="get_format" enum="RenderingDevice.DataFormat" default="218">
The way that this attribute's data is interpreted when sent to a shader.
</member>
<member name="frequency" type="int" setter="set_frequency" getter="get_frequency" enum="RenderingDevice.VertexFrequency" default="0">
The rate at which this attribute is pulled from its vertex buffer.
</member>
<member name="location" type="int" setter="set_location" getter="get_location" default="0">
The location in the shader that this attribute is bound to.
</member>
<member name="offset" type="int" setter="set_offset" getter="get_offset" default="0">
The number of bytes between the start of the vertex buffer and the first instance of this attribute.
</member>
<member name="stride" type="int" setter="set_stride" getter="get_stride" default="0">
The number of bytes between the starts of consecutive instances of this attribute.
</member>
</members>
</class>
Loading