aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authoralan-baker <alanbaker@google.com>2019-07-30 21:11:16 -0400
committerDavid Neto <dneto@google.com>2019-07-30 21:11:16 -0400
commit00748dfc1acdb885d930a8139c552e45189cfb89 (patch)
tree0ef6ff8b387431056aac2e7b7f416cbdd94055f2 /docs
parent15b011a55f3b4bbbc1f634a541bd3659bec23786 (diff)
downloadamber-00748dfc1acdb885d930a8139c552e45189cfb89.tar.gz
Enable shader optimizations (#606)
Enable shader optimizations * During shader compilation, if SPIRV-Tools are enabled run requested optimizations for the shader * these optimizations are pipeline specific * added a test
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 1a3cff5..16d1e41 100644
--- a/docs/amber_script.md
+++ b/docs/amber_script.md
@@ -538,9 +538,9 @@ BUFFER kImgBuffer FORMAT R8G8B8A8_UINT
PIPELINE graphics kRedPipeline
ATTACH kVertexShader ENTRY_POINT main
SHADER_OPTIMIZATION kVertexShader
- eliminate-dead-branches
- merge-return
- eliminate-dead-code-aggressive
+ --eliminate-dead-branches
+ --merge-return
+ --eliminate-dead-code-aggressive
END
ATTACH kFragmentShader ENTRY_POINT red