]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/program.h
Set OpenGL debug labels on various objects loaded from Resources
[libs/gl.git] / source / core / program.h
index 090d8ed5ebc5c4d191ab24d13f7cef402502cdc3..a2324f2329cc0fbaa3c8a4a2ea733384d02e6aeb 100644 (file)
@@ -125,6 +125,7 @@ private:
        std::vector<UniformInfo> uniforms;
        LayoutHash uniform_layout_hash;
        std::vector<AttributeInfo> attributes;
+       std::string debug_name;
 
 public:
        /// Constructs an empty Program with no shader stages attached.
@@ -192,6 +193,10 @@ public:
 
        void bind() const;
        static void unbind();
+
+       void set_debug_name(const std::string &);
+private:
+       void set_stage_debug_name(unsigned, Stage);
 };
 
 } // namespace GL