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
-6
View File
@@ -18,7 +18,6 @@
*/
#include "shader.h"
#include "utils/cache.h"
#include "wivrn_shaders.h"
#include <magic_enum.hpp>
#include <spdlog/spdlog.h>
@@ -104,8 +103,3 @@ std::shared_ptr<shader> shader_loader::operator()(const std::string & name)
return (*this)(shaders.at(name));
}
std::shared_ptr<shader> load_shader(vk::raii::Device & device, const std::string & name)
{
return shader_loader{device}(name);
}