struct pipe_vertex_element
{
/** Offset of this attribute, in bytes, from the start of the vertex */
- unsigned src_offset;
-
- /** Instance data rate divisor. 0 means this is per-vertex data,
- * n means per-instance data used for n consecutive instances (n > 0).
- */
- unsigned instance_divisor;
+ unsigned src_offset:16;
/** Which vertex_buffer (as given to pipe->set_vertex_buffer()) does
* this attribute live in?
*/
- unsigned vertex_buffer_index;
+ unsigned vertex_buffer_index:5;
- enum pipe_format src_format;
+ enum pipe_format src_format:11;
+
+ /** Instance data rate divisor. 0 means this is per-vertex data,
+ * n means per-instance data used for n consecutive instances (n > 0).
+ */
+ unsigned instance_divisor;
};