17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-08 23:07:38 +01:00

Vulkan: scene rendering (D1–D7) on a scene walk shared with GL (N6a, N6b)

This commit is contained in:
2026-10-24 20:10:24 +02:00
parent bd589f272d
commit 9b7d02e5fb
107 changed files with 14511 additions and 3924 deletions

View File

@@ -116,7 +116,15 @@ bool check_ogl46(std::string const &Name)
bool check_vk14(std::string const &Name)
{
std::cout << "spir-v..." << std::flush;
auto const suc{check_text(gfx::preprocess_shader(gfx::shader_api::vulkan14, Name, {}, {}, false, vk14_dir), "-V --target-env " + vulkan_env)};
auto const source{gfx::preprocess_shader(gfx::shader_api::vulkan14, Name, {}, {}, false, vk14_dir)};
auto suc{check_text(source, "-V --target-env " + vulkan_env)};
// the variant of the passes without the velocity target, of the shaders which have one
if (source.text.find("NO_MOTION_OUTPUT") != std::string::npos)
{
std::cout << "done, no motion output..." << std::flush;
if (!check_text(gfx::preprocess_shader(gfx::shader_api::vulkan14, Name, "#define NO_MOTION_OUTPUT 1\n", {}, false, vk14_dir), "-V --target-env " + vulkan_env))
suc = false;
}
std::cout << "done" << std::flush;
return suc;
}