summaryrefslogtreecommitdiff
path: root/src/gallium/include/pipe/p_state.h
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-12-23 19:37:18 +0100
committerMichal Krol <michal@vmware.com>2009-12-23 19:37:18 +0100
commitd0b55120beb4848be5e7ef24f0301f8397baa8be (patch)
tree5cacf122776bc77678f3ee8a78d121bd3cca709e /src/gallium/include/pipe/p_state.h
parentb5a408bae518ededbb871d113dab89f3e15bfb45 (diff)
gallium: Add interfaces needed for instanced drawing.
Diffstat (limited to 'src/gallium/include/pipe/p_state.h')
-rw-r--r--src/gallium/include/pipe/p_state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index 60e96b98de..4d38bbcc32 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -364,6 +364,7 @@ struct pipe_vertex_buffer
unsigned stride; /**< stride to same attrib in next vertex, in bytes */
unsigned max_index; /**< number of vertices in this buffer */
unsigned buffer_offset; /**< offset to start of data in buffer, in bytes */
+ unsigned instance_divisor; /**< instance data rate divisor, 0 means per-vertex data */
struct pipe_buffer *buffer; /**< the actual buffer */
};