#ifndef SHADER_SOURCE_H #define SHADER_SOURCE_H #include #include #include struct GLsource { using ShaderRef = glRef; const GLchar * text; GLint len; GLuint type; [[nodiscard]] ShaderRef compile() const; static void CheckShaderError(GLuint shader, GLuint flag, bool isProgram, std::string_view errorMessage); }; #endif