summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/opengl/gl_shader_mgr.h
diff options
context:
space:
mode:
author Aaron <aaron.b.stover@gmail.com>2017-12-26 22:27:48 -0800
committer Aaron <aaron.b.stover@gmail.com>2017-12-30 00:29:47 -0800
commit222b41d58254acdfa0f8441c37b7ec43289b7b25 (patch)
treecc76812c25cf744f97341c9766fd997d59f9f012 /src/osd/modules/opengl/gl_shader_mgr.h
parent6c456a286507d4d0ba1acb4b9015f9933e2351a4 (diff)
Add Bicubic Shader to OpenGL Backend
This shader uses the equation described by R. Keys in the paper 'Cubic Convolution Interpolation for Digital Image Processing' which is, in this case, the same as a Catmull-Rom spline. This produces a sharper upscaled image than bilinear filtering. The new shader is selected by setting gl_glsl_filter to 2. Consequently, gl_glsl_filter is now treated as an int rather than a boolean. Also fixed a variable name problem in the code guarded by GLSL_SOURCE_ON_DISK.
Diffstat (limited to 'src/osd/modules/opengl/gl_shader_mgr.h')
-rw-r--r--src/osd/modules/opengl/gl_shader_mgr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/modules/opengl/gl_shader_mgr.h b/src/osd/modules/opengl/gl_shader_mgr.h
index b232243f636..f95ec8c2244 100644
--- a/src/osd/modules/opengl/gl_shader_mgr.h
+++ b/src/osd/modules/opengl/gl_shader_mgr.h
@@ -11,6 +11,7 @@
enum GLSL_SHADER_FEATURE {
GLSL_SHADER_FEAT_PLAIN,
GLSL_SHADER_FEAT_BILINEAR,
+ GLSL_SHADER_FEAT_BICUBIC,
GLSL_SHADER_FEAT_INT_NUMBER,
GLSL_SHADER_FEAT_CUSTOM = GLSL_SHADER_FEAT_INT_NUMBER,
GLSL_SHADER_FEAT_MAX_NUMBER