]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/module.h
Set debug names for shader modules on Vulkan
[libs/gl.git] / source / core / module.h
index 51924d606668db500e7b871f72f7677ae538190d..26895ee0ba2fe9355e397026b5a068c3f7985fe4 100644 (file)
@@ -61,6 +61,9 @@ private:
        virtual void compile(SL::Compiler &) = 0;
 
        SL::Features create_features() const;
+
+public:
+       virtual void set_debug_name(const std::string &) { }
 };
 
 /**
@@ -278,6 +281,9 @@ public:
 private:
        std::vector<const InstructionBlock *> collect_visited_blocks(const std::map<unsigned, int> &) const;
        void collect_visited_blocks(unsigned, std::vector<std::uint8_t> &) const;
+
+public:
+       void set_debug_name(const std::string &n) { SpirVModuleBackend::set_debug_name(n); }
 };
 
 } // namespace GL