Merge remote branch 'origin/7.8'
[mesa.git] / src / gallium / docs / source / cso / velems.rst
1 .. _vertexelements:
2
3 Vertex Elements
4 ===============
5
6 This state controls format etc. of the input attributes contained
7 in the pipe_vertex_buffer(s). There's one pipe_vertex_element array member
8 for each input attribute.
9
10 Members
11 -------
12
13 src_offset
14 The byte offset of the attribute in the buffer given by
15 vertex_buffer_index for the first vertex.
16 instance_divisor
17 The instance data rate divisor, used for instancing.
18 0 means this is per-vertex data, n means per-instance data used for
19 n consecutive instances (n > 0).
20 vertex_buffer_index
21 The vertex buffer this attribute lives in. Several attributes may
22 live in the same vertex buffer.
23 src_format
24 The format of the attribute data. One of the PIPE_FORMAT tokens.