17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-02 13:59:12 +01:00

feat(vulkan): vulkan 1.4 core with the user interface and the launcher, shaders split into ogl46/vk14 with SPIR-V binaries loaded first

This commit is contained in:
2026-10-24 05:47:11 +02:00
parent 68fa5dc2da
commit bd589f272d
235 changed files with 9397 additions and 3975 deletions

View File

@@ -1711,6 +1711,11 @@ global_settings::ConfigParse_gfx( cParser &Parser, std::string_view const Token
Parser.getTokens(1);
Parser >> gfx_shadergamma;
}
else if (Token == "gfx.shaders.binaries")
{
Parser.getTokens(1);
Parser >> gfx_shader_binaries;
}
else if (Token == "gfx.drawrange.factor.max")
{
Parser.getTokens(1);
@@ -2181,6 +2186,7 @@ global_settings::export_as_text( std::ostream &Output ) const {
export_as_text( Output, "gfx.skippipeline", gfx_skippipeline );
export_as_text( Output, "gfx.extraeffects", gfx_extraeffects );
export_as_text( Output, "gfx.shadergamma", gfx_shadergamma );
export_as_text( Output, "gfx.shaders.binaries", gfx_shader_binaries );
export_as_text( Output, "gfx.vulkan.device", gfx_vulkan_device );
export_as_text( Output, "gfx.vulkan.validation", gfx_vulkan_validation );
export_as_text( Output, "gfx.vulkan.framesinflight", gfx_vulkan_framesinflight );

View File

@@ -367,6 +367,8 @@ struct global_settings {
bool gfx_extraeffects = true;
bool gfx_shadergamma = false;
bool gfx_gldebug = false;
// the shaders are loaded from the SPIR-V binaries of shaders/ogl46bin and shaders/vk14bin where there are up to date ones
bool gfx_shader_binaries = true;
// (vulkan) the gpu to run on: its index in the list of the log or a part of its name; empty: the best one
std::string gfx_vulkan_device;
// (vulkan) 0: no validation layer, 1: validation layer, 2: also gpu-assisted validation