Skip to content
Snippets Groups Projects

vkd3d-shader/d3d-asm: Dump the input and output signatures.

Merged Giovanni Mascellani requested to merge giomasce/vkd3d:flegrei into master
4 unresolved threads
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
@@ -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;
Loading