aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2019-04-25 11:22:50 -0400
committerGitHub <noreply@github.com>2019-04-25 11:22:50 -0400
commitcea300d8e6b46f7aa329b20214e0b3bafb586734 (patch)
tree52a76b7c32f47dbe31d0510f04cfc98e5f355fc4 /docs
parent8232a8c1486d48aa298603423e5243f605d4789a (diff)
downloadamber-cea300d8e6b46f7aa329b20214e0b3bafb586734.tar.gz
[amberscript] Add INDEXED parsing (#494)
This CL adds parsing of the INDEXED parameter to DRAW_ARRAYS. This amends the spec slightly to move the INDEXED after the topology. This better matches with other DRAW_ARRAY commands. Fixes #473
Diffstat (limited to 'docs')
-rw-r--r--docs/amber_script.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/amber_script.md b/docs/amber_script.md
index afd2390..72f5ac9 100644
--- a/docs/amber_script.md
+++ b/docs/amber_script.md
@@ -321,19 +321,19 @@ RUN {pipeline_name} DRAW_ARRAY AS {topology} START_IDX _value_ \
# data and index data must be attached to the pipeline. The vertices will be
# drawn using the given |topology|. A start index of 0 will be used and the
# count will be determined by the size of the index data buffer.
-RUN {pipeline_name} DRAW_ARRAY INDEXED AS {topology}
+RUN {pipeline_name} DRAW_ARRAY AS {topology} INDEXED
# Run the |pipeline_name| which must be a `graphics` pipeline. The vertex
# data and index data must be attached to the pipeline. The vertices will be
# drawn using the given |topology|. A start index of |value| will be used and
# the count will be determined by the size of the index data buffer.
-RUN {pipeline_name} DRAW_ARRAY INDEXED AS {topology} START_IDX _value_
+RUN {pipeline_name} DRAW_ARRAY AS {topology} INDEXED START_IDX _value_
# Run the |pipeline_name| which must be a `graphics` pipeline. The vertex
# data and index data must be attached to the pipeline. The vertices will be
# drawn using the given |topology|. A start index of |value| will be used and
# the count of |count_value| items will be processed.
-RUN {pipeline_name} DRAW_ARRAY INDEXED AS {topology} \
+RUN {pipeline_name} DRAW_ARRAY AS {topology} INDEXED \
START_IDX _value_ COUNT _count_value_
```