Changeset View
Changeset View
Standalone View
Standalone View
source/creator/creator_args.c
| Show First 20 Lines • Show All 982 Lines • ▼ Show 20 Lines | static const char arg_handle_debug_mode_generic_set_doc_depsgraph_eval[] = | ||||
| "\n\t" | "\n\t" | ||||
| "Enable debug messages from dependency graph related on evaluation."; | "Enable debug messages from dependency graph related on evaluation."; | ||||
| static const char arg_handle_debug_mode_generic_set_doc_depsgraph_no_threads[] = | static const char arg_handle_debug_mode_generic_set_doc_depsgraph_no_threads[] = | ||||
| "\n\t" | "\n\t" | ||||
| "Switch dependency graph to a single threaded evaluation."; | "Switch dependency graph to a single threaded evaluation."; | ||||
| static const char arg_handle_debug_mode_generic_set_doc_depsgraph_pretty[] = | static const char arg_handle_debug_mode_generic_set_doc_depsgraph_pretty[] = | ||||
| "\n\t" | "\n\t" | ||||
| "Enable colors for dependency graph debug messages."; | "Enable colors for dependency graph debug messages."; | ||||
| static const char arg_handle_debug_mode_generic_set_doc_gpumem[] = | static const char arg_handle_debug_mode_generic_set_doc_gpu_force_workarounds[] = | ||||
| "\n\t" | "\n\t" | ||||
| "Enable GPU memory stats in status bar."; | "Enable workarounds for typical GPU issues and disable all GPU extensions."; | ||||
| static int arg_handle_debug_mode_generic_set(int UNUSED(argc), | static int arg_handle_debug_mode_generic_set(int UNUSED(argc), | ||||
| const char **UNUSED(argv), | const char **UNUSED(argv), | ||||
| void *data) | void *data) | ||||
| { | { | ||||
| G.debug |= POINTER_AS_INT(data); | G.debug |= POINTER_AS_INT(data); | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,163 Lines • ▼ Show 20 Lines | BLI_args_add(ba, | ||||
| (void *)G_DEBUG_DEPSGRAPH_PRETTY); | (void *)G_DEBUG_DEPSGRAPH_PRETTY); | ||||
| BLI_args_add(ba, | BLI_args_add(ba, | ||||
| NULL, | NULL, | ||||
| "--debug-depsgraph-uuid", | "--debug-depsgraph-uuid", | ||||
| CB_EX(arg_handle_debug_mode_generic_set, depsgraph_build), | CB_EX(arg_handle_debug_mode_generic_set, depsgraph_build), | ||||
| (void *)G_DEBUG_DEPSGRAPH_UUID); | (void *)G_DEBUG_DEPSGRAPH_UUID); | ||||
| BLI_args_add(ba, | BLI_args_add(ba, | ||||
| NULL, | NULL, | ||||
| "--debug-gpumem", | |||||
| CB_EX(arg_handle_debug_mode_generic_set, gpumem), | |||||
| (void *)G_DEBUG_GPU_MEM); | |||||
| BLI_args_add(ba, | |||||
| NULL, | |||||
| "--debug-gpu-shaders", | |||||
| CB_EX(arg_handle_debug_mode_generic_set, gpumem), | |||||
| (void *)G_DEBUG_GPU_SHADERS); | |||||
| BLI_args_add(ba, | |||||
| NULL, | |||||
| "--debug-gpu-force-workarounds", | "--debug-gpu-force-workarounds", | ||||
| CB_EX(arg_handle_debug_mode_generic_set, gpumem), | CB_EX(arg_handle_debug_mode_generic_set, gpu_force_workarounds), | ||||
| (void *)G_DEBUG_GPU_FORCE_WORKAROUNDS); | (void *)G_DEBUG_GPU_FORCE_WORKAROUNDS); | ||||
| BLI_args_add(ba, NULL, "--debug-exit-on-error", CB(arg_handle_debug_exit_on_error), NULL); | BLI_args_add(ba, NULL, "--debug-exit-on-error", CB(arg_handle_debug_exit_on_error), NULL); | ||||
| BLI_args_add(ba, NULL, "--verbose", CB(arg_handle_verbosity_set), NULL); | BLI_args_add(ba, NULL, "--verbose", CB(arg_handle_verbosity_set), NULL); | ||||
| BLI_args_add(ba, NULL, "--app-template", CB(arg_handle_app_template), NULL); | BLI_args_add(ba, NULL, "--app-template", CB(arg_handle_app_template), NULL); | ||||
| BLI_args_add(ba, NULL, "--factory-startup", CB(arg_handle_factory_startup_set), NULL); | BLI_args_add(ba, NULL, "--factory-startup", CB(arg_handle_factory_startup_set), NULL); | ||||
| BLI_args_add(ba, NULL, "--enable-event-simulate", CB(arg_handle_enable_event_simulate), NULL); | BLI_args_add(ba, NULL, "--enable-event-simulate", CB(arg_handle_enable_event_simulate), NULL); | ||||
| ▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines | |||||