A complete shader program. Programs can be assembled of individual Shaders or
generated with a set of standard features.
*/
-class Program: public Bindable<Program>
+class Program
{
public:
class Loader: public DataFile::CollectionObjectLoader<Program>
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.
const AttributeInfo &get_attribute_info(const std::string &) const;
int get_attribute_location(const std::string &) const;
- void bind() const;
- static void unbind();
+ unsigned get_id() const { return id; }
+
+ void set_debug_name(const std::string &);
+private:
+ void set_stage_debug_name(unsigned, Stage);
};
} // namespace GL