diff options
author | Niklas Haas <git@haasn.xyz> | 2017-07-29 20:41:50 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2017-08-03 18:27:36 +0200 |
commit | 83f39103989ba6bd289a2ed83abe8177a3ba2f93 (patch) | |
tree | 1c516d66cad01a09d3837bb48916d4bb0a336975 /video/out/opengl/utils.h | |
parent | e7d31d12bea0463ff2d8f43067d40634d1be6b40 (diff) | |
download | mpv-83f39103989ba6bd289a2ed83abe8177a3ba2f93.tar.bz2 mpv-83f39103989ba6bd289a2ed83abe8177a3ba2f93.tar.xz |
vo_opengl: make compute shaders more flexible
This allows users to do their own custom sample writing, mainly meant to
address use cases such as RAVU. Also clean up the compute shader code a
bit.
Diffstat (limited to 'video/out/opengl/utils.h')
-rw-r--r-- | video/out/opengl/utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/opengl/utils.h b/video/out/opengl/utils.h index 2a15d85b71..48e139dcc7 100644 --- a/video/out/opengl/utils.h +++ b/video/out/opengl/utils.h @@ -150,8 +150,8 @@ void gl_sc_uniform_tex(struct gl_shader_cache *sc, char *name, GLenum target, void gl_sc_uniform_texture(struct gl_shader_cache *sc, char *name, struct ra_tex *tex); void gl_sc_uniform_tex_ui(struct gl_shader_cache *sc, char *name, GLuint texture); -void gl_sc_uniform_image2D(struct gl_shader_cache *sc, char *name, GLuint texture, - GLuint iformat, GLenum access); +void gl_sc_uniform_image2D(struct gl_shader_cache *sc, const char *name, + GLuint texture, GLuint iformat, GLenum access); void gl_sc_ssbo(struct gl_shader_cache *sc, char *name, GLuint ssbo, char *format, ...) PRINTF_ATTRIBUTE(4, 5); void gl_sc_uniform_f(struct gl_shader_cache *sc, char *name, GLfloat f); |