diff options
author | dan sinclair <dj2@everburning.com> | 2019-04-05 10:01:39 -0400 |
---|---|---|
committer | David Neto <dneto@google.com> | 2019-04-05 10:01:39 -0400 |
commit | 1f834b84fd93ffad4a70b9eb3bc91c9aa431df57 (patch) | |
tree | 2961ab77fa23938c42a1f3d8dd46389c57d17f92 /docs | |
parent | 1806fc6d287eb0ff838360c5a379fc722cf4e414 (diff) | |
download | amber-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.md | 18 |
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` |