diff options
author | dan sinclair <dsinclair@google.com> | 2019-12-02 12:41:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-02 12:41:50 -0500 |
commit | e4d7cd053b3081437e98e28718b6571e33b46681 (patch) | |
tree | 52a7048c452fc497edada1cb0a4140bf42c725e3 /samples/amber.cc | |
parent | 210e8029f22698b699b3b953a96eb9c919999524 (diff) | |
download | amber-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/amber.cc')
-rw-r--r-- | samples/amber.cc | 6 |
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. |