diff options
Diffstat (limited to 'samples/amber.cc')
-rw-r--r-- | samples/amber.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/samples/amber.cc b/samples/amber.cc index ed92d83..33fcf70 100644 --- a/samples/amber.cc +++ b/samples/amber.cc @@ -39,6 +39,7 @@ struct Options { uint32_t engine_major = 1; uint32_t engine_minor = 0; bool parse_only = false; + bool pipeline_create_only = false; bool disable_validation_layer = false; bool show_summary = false; bool show_help = false; @@ -51,6 +52,7 @@ const char kUsage[] = R"(Usage: amber [options] SCRIPT [SCRIPTS...] options: -p -- Parse input files only; Don't execute. + -ps -- Parse input files, create pipelines; Don't execute. -s -- Print summary of pass/failure. -d -- Disable validation layers. -t <spirv_env> -- The target SPIR-V environment. Defaults to SPV_ENV_UNIVERSAL_1_0. @@ -145,6 +147,8 @@ bool ParseArgs(const std::vector<std::string>& args, Options* opts) { opts->show_version_info = true; } else if (arg == "-p") { opts->parse_only = true; + } else if (arg == "-ps") { + opts->pipeline_create_only = true; } else if (arg == "-d") { opts->disable_validation_layer = true; } else if (arg == "-s") { @@ -264,6 +268,7 @@ int main(int argc, const char** argv) { amber::Options amber_options; amber_options.engine = options.engine; amber_options.spv_env = options.spv_env; + amber_options.pipeline_create_only = options.pipeline_create_only; std::set<std::string> required_features; std::set<std::string> required_extensions; |