Skip to content
Snippets Groups Projects
Unverified Commit bc94c640 authored by Giovanni Mascellani's avatar Giovanni Mascellani
Browse files

vkd3d-compiler: Add an option to emit the signature when disassembling.

parent c1fe8721
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !553. Comments created here will be created in the context of that merge request.
......@@ -50,6 +50,7 @@ enum
OPTION_STRIP_DEBUG,
OPTION_VERSION,
OPTION_TEXT_FORMATTING,
OPTION_EMIT_SIGNATURE,
};
static const struct source_type_info
......@@ -188,6 +189,7 @@ static void print_usage(const char *program_name)
" 'storage-buffer'.\n"
" -e, --entry=<name> Use <name> as the entry point (default is \"main\").\n"
" -E Preprocess the source code instead of compiling it.\n"
" --emit-signature Emit the shader signature when disassembling.\n"
" --formatting=<flags> Specify the formatting options for text output.\n"
" <flags> is a comma separated list of formatting flags,\n"
" optionally prefixed by '+' or '-'. Valid flags are\n"
......@@ -488,6 +490,7 @@ static bool parse_command_line(int argc, char **argv, struct options *options)
{"strip-debug", no_argument, NULL, OPTION_STRIP_DEBUG},
{"version", no_argument, NULL, OPTION_VERSION},
{"semantic-compat-map", no_argument, NULL, OPTION_SEMANTIC_COMPAT_MAP},
{"emit-signature", no_argument, NULL, OPTION_EMIT_SIGNATURE},
{NULL, 0, NULL, 0},
};
......@@ -584,6 +587,10 @@ static bool parse_command_line(int argc, char **argv, struct options *options)
add_compile_option(options, VKD3D_SHADER_COMPILE_OPTION_STRIP_DEBUG, 1);
break;
case OPTION_EMIT_SIGNATURE:
add_compile_option(options, VKD3D_SHADER_COMPILE_OPTION_EMIT_SIGNATURE, 1);
break;
case OPTION_VERSION:
case 'V':
options->print_version = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment