aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authordan sinclair <dsinclair@google.com>2019-12-02 12:41:50 -0500
committerGitHub <noreply@github.com>2019-12-02 12:41:50 -0500
commite4d7cd053b3081437e98e28718b6571e33b46681 (patch)
tree52a7048c452fc497edada1cb0a4140bf42c725e3 /samples
parent210e8029f22698b699b3b953a96eb9c919999524 (diff)
downloadamber-e4d7cd053b3081437e98e28718b6571e33b46681.tar.gz
This CL allows passing the pipeline name to the -B flag. (#733)
Previously we could only extract buffers from the first pipeline in the file. This Cl extends the -B flag to allow providing the pipeline name as a prefix. So, my_pipeline:0:2 would extract from the pipeline named my_pipeline, descriptor set 0, binding 2. Fixes #732
Diffstat (limited to 'samples')
-rw-r--r--samples/amber.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/amber.cc b/samples/amber.cc
index d508da8..19e5182 100644
--- a/samples/amber.cc
+++ b/samples/amber.cc
@@ -89,9 +89,9 @@ const char kUsage[] = R"(Usage: amber [options] SCRIPT [SCRIPTS...]
or as a PPM image otherwise.
-I <buffername> -- Name of framebuffer to dump. Defaults to 'framebuffer'.
-b <filename> -- Write contents of a UBO or SSBO to <filename>.
- -B [<desc set>:]<binding> -- Descriptor set and binding of buffer to write.
- Default is [0:]0.
- -w <filename> -- Write shader assembly to |filename|
+ -B [<pipeline name>:][<desc set>:]<binding> -- Identifier of buffer to write.
+ Default is [first pipeline:][0:]0.
+ -w <filename> -- Write shader assembly to |filename|
-e <engine> -- Specify graphics engine: vulkan, dawn. Default is vulkan.
-v <engine version> -- Engine version (eg, 1.1 for Vulkan). Default 1.0.
-V, --version -- Output version information for Amber and libraries.