| 83 | } |
| 84 | |
| 85 | void Load(const Scripts::ScriptVar& cfg) |
| 86 | { |
| 87 | LoadInt(g_config->screen_width, cfg, U"ScreenWidth"); |
| 88 | LoadInt(g_config->screen_height, cfg, U"ScreenHeight"); |
| 89 | LoadBool(g_config->neo, cfg, U"Neo"); |
| 90 | LoadBool(g_config->vulkan_validation_enabled, cfg, U"VulkanValidationEnabled"); |
| 91 | LoadBool(g_config->shader_validation_enabled, cfg, U"ShaderValidationEnabled"); |
| 92 | LoadEnum(g_config->shader_optimization_type, cfg, U"ShaderOptimizationType"); |
| 93 | LoadEnum(g_config->shader_log_direction, cfg, U"ShaderLogDirection"); |
| 94 | LoadStr(g_config->shader_log_folder, cfg, U"ShaderLogFolder"); |
| 95 | LoadBool(g_config->command_buffer_dump_enabled, cfg, U"CommandBufferDumpEnabled"); |
| 96 | LoadStr(g_config->command_buffer_dump_folder, cfg, U"CommandBufferDumpFolder"); |
| 97 | LoadEnum(g_config->printf_direction, cfg, U"PrintfDirection"); |
| 98 | LoadStr(g_config->printf_output_file, cfg, U"PrintfOutputFile"); |
| 99 | LoadStr(g_config->printf_output_folder, cfg, U"PrintfOutputFolder"); |
| 100 | LoadEnum(g_config->profiler_direction, cfg, U"ProfilerDirection"); |
| 101 | LoadStr(g_config->profiler_output_file, cfg, U"ProfilerOutputFile"); |
| 102 | LoadBool(g_config->spirv_debug_printf_enabled, cfg, U"SpirvDebugPrintfEnabled"); |
| 103 | LoadBool(g_config->pipeline_dump_enabled, cfg, U"PipelineDumpEnabled"); |
| 104 | LoadStr(g_config->pipeline_dump_folder, cfg, U"PipelineDumpFolder"); |
| 105 | } |
| 106 | |
| 107 | uint32_t GetScreenWidth() |
| 108 | { |