diff options
author | jarisiru <53901722+jarisiru@users.noreply.github.com> | 2020-02-28 16:55:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 09:55:53 -0500 |
commit | cab3a3159c067976a36f32ae98644c1b838dcaca (patch) | |
tree | 5a458b2c729195c93f4eb14e49abfe18a368389b /tools | |
parent | 626a61a39cd48b6812302ddc2d193f6ffd06c84f (diff) | |
download | amber-cab3a3159c067976a36f32ae98644c1b838dcaca.tar.gz |
Implement DRAW_GRID (#791)
Add support for draw_grid, which is fairly similar to draw_rect,
except it also takes parameters to split the rectangle into
desired number of columns and rows of cells.
This functionality is meant for the testing of vertex shaders,
giving an easy way to produce a lot of vertices.
The implementation is based on draw_rect. Dawn rendering is not
implemented.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/amber.sublime-syntax | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/amber.sublime-syntax b/tools/amber.sublime-syntax index a21ab92..3141153 100644 --- a/tools/amber.sublime-syntax +++ b/tools/amber.sublime-syntax @@ -21,7 +21,7 @@ contexts: scope: keyword.control.amber - match: '\b(PASSTHROUGH|PIPELINE|ATTACH|ENTRY_POINT|DESCRIPTOR_SET|INC_BY)\b' scope: keyword.control.amber - - match: '\b(BINDING|IDX|TO|RUN|DRAW_RECT|POS|DRAW_ARRAY|IN|AS|START_IDX)\b' + - match: '\b(BINDING|IDX|TO|RUN|DRAW_RECT|POS|DRAW_GRID|CELLS|DRAW_ARRAY|IN|AS|START_IDX)\b' scope: keyword.control.amber - match: '\b(COUNT|CLEAR_COLOR|CLEAR|EXPECT|TYPE|FRAMEBUFFER|SHADER_OPTIMIZATION)\b' scope: keyword.control.amber |