Skip to content
0.2.0-dev Download ZIP
32 lines ·1.9 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="RDVertexAttribute" inherits="RefCounted" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Vertex attribute (used by [RenderingDevice]).
5 </brief_description>
6 <description>
7 This object is used by [RenderingDevice].
8 </description>
9 <tutorials>
10 </tutorials>
11 <members>
12 <member name="binding" type="int" setter="set_binding" getter="get_binding" default="4294967295">
13 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.
14 [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.
15 </member>
16 <member name="format" type="int" setter="set_format" getter="get_format" enum="RenderingDevice.DataFormat" default="232">
17 The way that this attribute's data is interpreted when sent to a shader.
18 </member>
19 <member name="frequency" type="int" setter="set_frequency" getter="get_frequency" enum="RenderingDevice.VertexFrequency" default="0">
20 The rate at which this attribute is pulled from its vertex buffer.
21 </member>
22 <member name="location" type="int" setter="set_location" getter="get_location" default="0">
23 The location in the shader that this attribute is bound to.
24 </member>
25 <member name="offset" type="int" setter="set_offset" getter="get_offset" default="0">
26 The number of bytes between the start of the vertex buffer and the first instance of this attribute.
27 </member>
28 <member name="stride" type="int" setter="set_stride" getter="get_stride" default="0">
29 The number of bytes between the starts of consecutive instances of this attribute.
30 </member>
31 </members>
32</class>