summaryrefslogtreecommitdiff
path: root/src/gallium/docs/source/context.rst
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-10-21 19:03:38 -0600
committerBrian Paul <brianp@vmware.com>2010-10-21 19:03:38 -0600
commitadf35e80d3b3d37b97f0608a5a2f221dbd8c0d64 (patch)
treed768de0d56d5439a0b4d819a48019952d60f1622 /src/gallium/docs/source/context.rst
parentbe45255ab1f63c10fefcf2f399ac7d1c9294cf6a (diff)
gallium: new CAP, state for primitive restart
Diffstat (limited to 'src/gallium/docs/source/context.rst')
-rw-r--r--src/gallium/docs/source/context.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst
index 5342fc25dc..e09a1304c4 100644
--- a/src/gallium/docs/source/context.rst
+++ b/src/gallium/docs/source/context.rst
@@ -156,6 +156,15 @@ If there is an index buffer bound, and ``indexed`` field is true, all vertex
indices will be looked up in the index buffer. ``min_index``, ``max_index``,
and ``index_bias`` apply after index lookup.
+When drawing indexed primitives, the primitive restart index can be
+used to draw disjoint primitive strips. For example, several separate
+line strips can be drawn by designating a special index value as the
+restart index. The ``primitive_restart`` flag enables/disables this
+feature. The ``restart_index`` field specifies the restart index value.
+
+When primitive restart is in use, array indexes are compared to the
+restart index before adding the index_bias offset.
+
If a given vertex element has ``instance_divisor`` set to 0, it is said
it contains per-vertex data and effective vertex attribute address needs
to be recalculated for every index.