diff options
author | Brian Paul <brianp@vmware.com> | 2010-10-19 13:46:36 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-10-19 13:46:36 -0600 |
commit | ef4e7399c264f0c6e0ab8e00ef23beff69e9e984 (patch) | |
tree | 15b69fb2beb8d941c3523f9c44c28be85bc29d37 | |
parent | 5e53b68fbb90be4af45ea4ebe2dc2d6b075b67de (diff) |
gallium/docs: document primitive restart feature
-rw-r--r-- | src/gallium/docs/source/context.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst index f241411a00..18e39e71a9 100644 --- a/src/gallium/docs/source/context.rst +++ b/src/gallium/docs/source/context.rst @@ -154,6 +154,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. |