]> git.tdb.fi Git - libs/gl.git/blobdiff - source/resources/resources.cpp
Set debug names for shader modules on Vulkan
[libs/gl.git] / source / resources / resources.cpp
index 6a9c4f89d3b1f650910690b8ff4fa35bffc307da..ab4b0a8dd52d560282ef7ca11d1afcd41c1c6cda 100644 (file)
@@ -63,7 +63,8 @@ Resources::Resources(bool set_as_global):
                .creator([this](const string &n){ return create_mesh(n); })
                .notify(&set_debug_name<Mesh>);
        add_type<Module>().suffix(".glsl").suffix(".spv")
-               .creator([this](const string &n){ return create_module(n); });
+               .creator([this](const string &n){ return create_module(n); })
+               .notify(&set_debug_name<Module>);
        add_type<Object>().base<Renderable>().keyword("object");
        add_type<OccludedScene>().base<Scene>().base<Renderable>().suffix(".scene")
                .creator([this](const string &n) -> OccludedScene * { create_generic<Scene>(n); return 0; });