X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fprogram.h;h=a2324f2329cc0fbaa3c8a4a2ea733384d02e6aeb;hb=a77629d781eeb789870470c5ebdbd4b691e1b138;hp=090d8ed5ebc5c4d191ab24d13f7cef402502cdc3;hpb=7f0e08f04536bf42b8f64e7dff5cc3e18b916c7b;p=libs%2Fgl.git diff --git a/source/core/program.h b/source/core/program.h index 090d8ed5..a2324f23 100644 --- a/source/core/program.h +++ b/source/core/program.h @@ -125,6 +125,7 @@ private: std::vector uniforms; LayoutHash uniform_layout_hash; std::vector 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