AW: AW: Dynamic change of glshader element

Christian Winkler christian at heidelbergs.de
Sun Nov 16 03:06:40 PST 2014


> A couple of things, glshader the element (gstglfiltershader.c in the source code) is different to GstGLShader.  The latter provides a simple abstraction for GLSL shaders and the couple of different ways you have to instantiate them.

Matthew: Ah thanks for clarifying this, i believe i mixed up some things here.
I looked at the GstGLShader.

> Currently, the glshader element does not expose the GstGLShader it uses.  In order to support dynamically changing the shader source or setting uniforms, it would make sense to expose that so that the application has that ability.  It would also get rid of the shadervariables code :).  Then you could retreive/set the GstGLShader on the glshader element with your uniforms already set.

So does that mean that i would have to modify the glfiltershader .c/.h in ordert o have the possibility to dynamically change the gl shader?
That is something i rather would avoid.

Or is there any other way you can think of to dynamically change a glshader?

Thanks!




More information about the gstreamer-devel mailing list