summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_cache.cpp
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2018-10-09 05:34:11 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2018-10-22 21:07:30 +0200
commitaa620c14af0a9bc2bf7784ed096298fc3c8899c3 (patch)
tree699de63d8265e2a7a6bc65b136fc9926cedb9e70 /src/video_core/renderer_opengl/gl_shader_cache.cpp
parentMerge pull request #1541 from lioncash/define (diff)
downloadyuzu-aa620c14af0a9bc2bf7784ed096298fc3c8899c3.tar
yuzu-aa620c14af0a9bc2bf7784ed096298fc3c8899c3.tar.gz
yuzu-aa620c14af0a9bc2bf7784ed096298fc3c8899c3.tar.bz2
yuzu-aa620c14af0a9bc2bf7784ed096298fc3c8899c3.tar.lz
yuzu-aa620c14af0a9bc2bf7784ed096298fc3c8899c3.tar.xz
yuzu-aa620c14af0a9bc2bf7784ed096298fc3c8899c3.tar.zst
yuzu-aa620c14af0a9bc2bf7784ed096298fc3c8899c3.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_cache.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp
index 1a03a677f..f4e99e5f4 100644
--- a/src/video_core/renderer_opengl/gl_shader_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp
@@ -134,6 +134,18 @@ GLuint CachedShader::LazyGeometryProgram(OGLProgram& target_program,
return target_program.handle;
};
+GLint CachedShader::GetAlphaTestingEnableLocation() {
+ return glGetUniformLocation(program.handle, "alpha_testing_enable");
+}
+
+GLint CachedShader::GetAlphaTestingFuncLocation() {
+ return glGetUniformLocation(program.handle, "alpha_testing_func");
+}
+
+GLint CachedShader::GetAlphaTestingRefLocation() {
+ return glGetUniformLocation(program.handle, "alpha_testing_ref");
+}
+
Shader ShaderCacheOpenGL::GetStageProgram(Maxwell::ShaderProgram program) {
const VAddr program_addr{GetShaderAddress(program)};