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

This commit is contained in:
Giovanni Mascellani 2024-01-17 23:46:32 +01:00 committed by Alexandre Julliard
parent 9aa86901e3
commit 9b0a9f63f7
Notes: Alexandre Julliard 2024-03-07 23:21:49 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/553

View File

@ -191,8 +191,9 @@ static void print_usage(const char *program_name)
" --formatting=<flags> Specify the formatting options for text output.\n" " --formatting=<flags> Specify the formatting options for text output.\n"
" <flags> is a comma separated list of formatting flags,\n" " <flags> is a comma separated list of formatting flags,\n"
" optionally prefixed by '+' or '-'. Valid flags are\n" " optionally prefixed by '+' or '-'. Valid flags are\n"
" 'colour', 'indent', 'offsets', 'header', and 'raw-ids'.\n" " 'colour', 'indent', 'offsets', 'header', 'raw-ids',\n"
" The 'indent' and 'header' flags are enabled by default.\n" " and 'signatures'. The 'indent' and 'header' flags are\n"
" enabled by default.\n"
" --fragment-coordinate-origin=<origin>\n" " --fragment-coordinate-origin=<origin>\n"
" Specify the origin of fragment coordinates for SPIR-V\n" " Specify the origin of fragment coordinates for SPIR-V\n"
" targets. Valid values are 'upper-left' (default) and\n" " targets. Valid values are 'upper-left' (default) and\n"
@ -305,6 +306,7 @@ static bool parse_formatting(uint32_t *formatting, bool *colour, char *arg)
{"offsets", VKD3D_SHADER_COMPILE_OPTION_FORMATTING_OFFSETS}, {"offsets", VKD3D_SHADER_COMPILE_OPTION_FORMATTING_OFFSETS},
{"header", VKD3D_SHADER_COMPILE_OPTION_FORMATTING_HEADER}, {"header", VKD3D_SHADER_COMPILE_OPTION_FORMATTING_HEADER},
{"raw-ids", VKD3D_SHADER_COMPILE_OPTION_FORMATTING_RAW_IDS}, {"raw-ids", VKD3D_SHADER_COMPILE_OPTION_FORMATTING_RAW_IDS},
{"signatures", VKD3D_SHADER_COMPILE_OPTION_FORMATTING_IO_SIGNATURES},
}; };
char *tok; char *tok;