summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-10-07 00:10:32 +0200
committerbunnei <bunneidev@gmail.com>2015-10-22 03:53:16 +0200
commit2a0a86f62998fa2a7a76ea3862b1de245132f85a (patch)
tree18fcde90c7c8550c140aec005f21f048bf90c6f7
parentgl_shader_gen: Various cleanups + moved TEV stage generation to its own function. (diff)
downloadyuzu-2a0a86f62998fa2a7a76ea3862b1de245132f85a.tar
yuzu-2a0a86f62998fa2a7a76ea3862b1de245132f85a.tar.gz
yuzu-2a0a86f62998fa2a7a76ea3862b1de245132f85a.tar.bz2
yuzu-2a0a86f62998fa2a7a76ea3862b1de245132f85a.tar.lz
yuzu-2a0a86f62998fa2a7a76ea3862b1de245132f85a.tar.xz
yuzu-2a0a86f62998fa2a7a76ea3862b1de245132f85a.tar.zst
yuzu-2a0a86f62998fa2a7a76ea3862b1de245132f85a.zip
-rw-r--r--src/video_core/renderer_opengl/gl_shader_util.h8
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 {
ATTRIBUTE_TEXCOORDS = 2,
};
-GLuint LoadProgram(const char* vertex_file_path, const char* fragment_file_path);
+/**
+ * Utility function to create and compile an OpenGL GLSL shader program (vertex + fragment shader)
+ * @param vertex_shader String of the GLSL vertex shader program
+ * @param fragment_shader String of the GLSL fragment shader program
+ * @returns Handle of the newly created OpenGL shader object
+ */
+GLuint LoadProgram(const char* vertex_shader, const char* fragment_shader);
} // namespace