aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2019-08-03 13:51:11 -0400
committerGitHub <noreply@github.com>2019-08-03 13:51:11 -0400
commite9e2a52ea8282b482c8e4026ed23e986c1fb6177 (patch)
treef66927b5ef85fdec9e6f4ea3553562883bc557f1 /tools
parent5bb9c644ec17a298d901152e9a8e10f8d08c2ee3 (diff)
downloadamber-e9e2a52ea8282b482c8e4026ed23e986c1fb6177.tar.gz
Add root mean square error buffer comparison (#602)
This CL adds a `RMSE_BUFFER` comparator which can be used with two buffers to verify their values are within a given tolerance using the root mean square error comparison method. Issue #600
Diffstat (limited to 'tools')
-rw-r--r--tools/amber-syntax.vim2
-rw-r--r--tools/amber.sublime-syntax2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/amber-syntax.vim b/tools/amber-syntax.vim
index 0d47c6c..b474cb7 100644
--- a/tools/amber-syntax.vim
+++ b/tools/amber-syntax.vim
@@ -38,7 +38,7 @@ syn keyword amberBlockCmd VERTEX_DATA INDEX_DATA INDEXED IMAGE_ATTACHMENT
syn keyword amberBlockCmd DEPTH_STENCIL_ATTACHMENT DEVICE_FEATURE TOLERANCE
syn keyword amberBlockCmd REPEAT COPY DERIVE_PIPELINE FROM
-syn keyword amberComparator EQ NE LT LE GT GE EQ_RGB EQ_RGBA EQ_BUFFER
+syn keyword amberComparator EQ NE LT LE GT GE EQ_RGB EQ_RGBA EQ_BUFFER RMSE_BUFFER
syn keyword amberKeyword compute vertex geometry fragment graphics
syn keyword amberKeyword tessellation_evaulation tessellation_control multi
diff --git a/tools/amber.sublime-syntax b/tools/amber.sublime-syntax
index 92ac566..8fe18ff 100644
--- a/tools/amber.sublime-syntax
+++ b/tools/amber.sublime-syntax
@@ -40,7 +40,7 @@ contexts:
scope: constant.character.escape.amber
- match: '\b(uniform|storage|push_constant|color|depth_stencil)\b'
scope: constant.character.escape.amber
- - match: '\b(EQ|NE|LT|LE|GT|GE|EQ_RGB|EQ_RGBA|EQ_BUFFER)\b'
+ - match: '\b(EQ|NE|LT|LE|GT|GE|EQ_RGB|EQ_RGBA|EQ_BUFFER|RMSE_BUFFER)\b'
scope: constant.character.esape.amber
- match: '\b(GLSL|HLSL|SPIRV-ASM|SPIRV-HEX|OPENCL-C)\b'
scope: constant.character.escape.amber