Store the name of custom shaders in the glTF file

This commit is contained in:
Guillaume Meunier
2026-02-13 17:15:21 +01:00
parent fc5f0b9c6c
commit 067d3a7679
9 changed files with 49 additions and 34 deletions
+4 -1
View File
@@ -64,4 +64,7 @@ struct shader_loader
std::shared_ptr<shader> operator()(const std::string & name);
};
std::shared_ptr<shader> load_shader(vk::raii::Device & device, const std::string & name);
inline std::shared_ptr<shader> load_shader(vk::raii::Device & device, const std::string & name)
{
return shader_loader{device}(name);
}