mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/fx: Add an option to include empty buffers in the effect binary.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
committed by
Alexandre Julliard
parent
c509c85f63
commit
e1e6367210
Notes:
Alexandre Julliard
2024-04-03 00:23:27 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/742
@@ -42,6 +42,7 @@ enum
|
||||
OPTION_CHILD_EFFECT,
|
||||
OPTION_ENTRY,
|
||||
OPTION_FRAGMENT_COORDINATE_ORIGIN,
|
||||
OPTION_INCLUDE_EMPTY_BUFFERS,
|
||||
OPTION_MATRIX_STORAGE_ORDER,
|
||||
OPTION_OUTPUT,
|
||||
OPTION_PRINT_SOURCE_TYPES,
|
||||
@@ -202,6 +203,9 @@ static void print_usage(const char *program_name)
|
||||
" targets. Valid values are 'upper-left' (default) and\n"
|
||||
" 'lower-left'. The only value supported by Vulkan\n"
|
||||
" environments is 'upper-left'.\n"
|
||||
" --fx-include-empty-buffers\n"
|
||||
" Write empty constant buffers descriptions. This option\n"
|
||||
" is only meaningful for fx_4_0 and fx_4_1 profiles.\n"
|
||||
" --matrix-storage-order=<order>\n"
|
||||
" Specify the default matrix storage order. Valid values\n"
|
||||
" are 'column' (default) and 'row'.\n"
|
||||
@@ -485,6 +489,7 @@ static bool parse_command_line(int argc, char **argv, struct options *options)
|
||||
{"child-effect", no_argument, NULL, OPTION_CHILD_EFFECT},
|
||||
{"entry", required_argument, NULL, OPTION_ENTRY},
|
||||
{"fragment-coordinate-origin", required_argument, NULL, OPTION_FRAGMENT_COORDINATE_ORIGIN},
|
||||
{"fx-include-empty-buffers", no_argument, NULL, OPTION_INCLUDE_EMPTY_BUFFERS},
|
||||
{"matrix-storage-order", required_argument, NULL, OPTION_MATRIX_STORAGE_ORDER},
|
||||
{"output", required_argument, NULL, OPTION_OUTPUT},
|
||||
{"formatting", required_argument, NULL, OPTION_TEXT_FORMATTING},
|
||||
@@ -559,6 +564,10 @@ static bool parse_command_line(int argc, char **argv, struct options *options)
|
||||
options->output_filename = optarg;
|
||||
break;
|
||||
|
||||
case OPTION_INCLUDE_EMPTY_BUFFERS:
|
||||
add_compile_option(options, VKD3D_SHADER_COMPILE_OPTION_INCLUDE_EMPTY_BUFFERS_IN_EFFECTS, 1);
|
||||
break;
|
||||
|
||||
case OPTION_MATRIX_STORAGE_ORDER:
|
||||
if (!parse_matrix_storage_order(&pack_matrix_order, optarg))
|
||||
{
|
||||
|
Reference in New Issue
Block a user