aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authordan sinclair <dj2@everburning.com>2019-04-05 10:01:39 -0400
committerDavid Neto <dneto@google.com>2019-04-05 10:01:39 -0400
commit1f834b84fd93ffad4a70b9eb3bc91c9aa431df57 (patch)
tree2961ab77fa23938c42a1f3d8dd46389c57d17f92 /docs
parent1806fc6d287eb0ff838360c5a379fc722cf4e414 (diff)
downloadamber-1f834b84fd93ffad4a70b9eb3bc91c9aa431df57.tar.gz
[amberscript] Add REPEAT command (#443)
[amberscript] Add REPEAT command This CL adds the REPEAT directive to AmberScript. This allows running a given set of commands `n` times. Fixes #425.
Diffstat (limited to 'docs')
-rw-r--r--docs/amber_script.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/amber_script.md b/docs/amber_script.md
index 02cd177..c7d1399 100644
--- a/docs/amber_script.md
+++ b/docs/amber_script.md
@@ -313,6 +313,24 @@ RUN <pipeline_name> DRAW_ARRAY INDEXED AS <topology> \
START_IDX <value> COUNT <count_value>
```
+### Repeating commands
+
+It is sometimes useful to run a given draw command multiple times. This can be
+to detect deterministic rendering or other features.
+
+```
+REPEAT <count>
+<command>+
+END
+```
+
+The commands which can be used inside a `REPEAT` block are:
+ * `CLEAR`
+ * `CLEAR_COLOR`
+ * `COPY`
+ * `EXPECT`
+ * `RUN`
+
### Commands
```
# Sets the clear color to use for |pipeline| which must be a `graphics`