diff options
| author | 2015-10-06 18:10:32 -0400 | |
|---|---|---|
| committer | 2015-10-21 21:53:16 -0400 | |
| commit | 2a0a86f62998fa2a7a76ea3862b1de245132f85a (patch) | |
| tree | 18fcde90c7c8550c140aec005f21f048bf90c6f7 | |
| parent | gl_shader_gen: Various cleanups + moved TEV stage generation to its own funct... (diff) | |
| download | yuzu-2a0a86f62998fa2a7a76ea3862b1de245132f85a.tar.gz yuzu-2a0a86f62998fa2a7a76ea3862b1de245132f85a.tar.xz yuzu-2a0a86f62998fa2a7a76ea3862b1de245132f85a.zip | |
gl_shader_util: Cleanup header file + add docstring.
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_util.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_util.h b/src/video_core/renderer_opengl/gl_shader_util.h index 6e2d007f8..4d3791d50 100644 --- a/src/video_core/renderer_opengl/gl_shader_util.h +++ b/src/video_core/renderer_opengl/gl_shader_util.h | |||
| @@ -14,6 +14,12 @@ enum Attributes { | |||
| 14 | ATTRIBUTE_TEXCOORDS = 2, | 14 | ATTRIBUTE_TEXCOORDS = 2, |
| 15 | }; | 15 | }; |
| 16 | 16 | ||
| 17 | GLuint LoadProgram(const char* vertex_file_path, const char* fragment_file_path); | 17 | /** |
| 18 | * Utility function to create and compile an OpenGL GLSL shader program (vertex + fragment shader) | ||
| 19 | * @param vertex_shader String of the GLSL vertex shader program | ||
| 20 | * @param fragment_shader String of the GLSL fragment shader program | ||
| 21 | * @returns Handle of the newly created OpenGL shader object | ||
| 22 | */ | ||
| 23 | GLuint LoadProgram(const char* vertex_shader, const char* fragment_shader); | ||
| 18 | 24 | ||
| 19 | } // namespace | 25 | } // namespace |