2020-04-19 23:19:21 -03:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 10:08:05 +02:00
<class name= "RDVertexAttribute" inherits= "RefCounted" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2020-04-19 23:19:21 -03:00
<brief_description >
2023-03-28 17:32:29 +02:00
Vertex attribute (used by [RenderingDevice]).
2020-04-19 23:19:21 -03:00
</brief_description>
<description >
2023-03-28 17:32:29 +02:00
This object is used by [RenderingDevice].
2020-04-19 23:19:21 -03:00
</description>
<tutorials >
</tutorials>
<members >
2025-11-07 05:50:02 +11:00
<member name= "binding" type= "int" setter= "set_binding" getter= "get_binding" default= "4294967295" >
The index of the buffer in the vertex buffer array to bind this vertex attribute. When set to [code]-1[/code], it defaults to the index of the attribute.
[b]Note:[/b] You cannot mix binding explicitly assigned attributes with implicitly assigned ones (i.e. [code]-1[/code]). Either all attributes must have their binding set to [code]-1[/code], or all must have explicit bindings.
</member>
2025-02-12 13:23:48 -03:00
<member name= "format" type= "int" setter= "set_format" getter= "get_format" enum= "RenderingDevice.DataFormat" default= "232" >
2024-09-22 20:48:46 -07:00
The way that this attribute's data is interpreted when sent to a shader.
2020-04-19 23:19:21 -03:00
</member>
<member name= "frequency" type= "int" setter= "set_frequency" getter= "get_frequency" enum= "RenderingDevice.VertexFrequency" default= "0" >
2024-09-22 20:48:46 -07:00
The rate at which this attribute is pulled from its vertex buffer.
2020-04-19 23:19:21 -03:00
</member>
<member name= "location" type= "int" setter= "set_location" getter= "get_location" default= "0" >
2024-09-22 20:48:46 -07:00
The location in the shader that this attribute is bound to.
2020-04-19 23:19:21 -03:00
</member>
<member name= "offset" type= "int" setter= "set_offset" getter= "get_offset" default= "0" >
2024-09-22 20:48:46 -07:00
The number of bytes between the start of the vertex buffer and the first instance of this attribute.
2020-04-19 23:19:21 -03:00
</member>
<member name= "stride" type= "int" setter= "set_stride" getter= "get_stride" default= "0" >
2024-09-22 20:48:46 -07:00
The number of bytes between the starts of consecutive instances of this attribute.
2020-04-19 23:19:21 -03:00
</member>
</members>
</class>