mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
ENH: Embed shader source in binary.
This commit is contained in:
@@ -19,7 +19,9 @@ namespace cgl{
|
||||
glProgramParameteri(id, GL_PROGRAM_SEPARABLE, GL_TRUE);
|
||||
}
|
||||
|
||||
ShaderProgram(const std::string &src) : ShaderProgram() {
|
||||
explicit ShaderProgram(const std::string_view &src) : ShaderProgram(std::string(src)) {}
|
||||
|
||||
explicit ShaderProgram(const std::string &src) : ShaderProgram() {
|
||||
Shader<mode> sh(src);
|
||||
|
||||
attach(sh);
|
||||
|
||||
Reference in New Issue
Block a user