GlShader
⚠️ Deprecated ⚠️
This is deprecated since version 4.16.
GTK's new Vulkan-focused rendering does not support this feature. Use ../gtk4/class.GLArea.html for OpenGL rendering.
Creates a GskGLShader
that will render pixels using the specified code.
Return
A new GskGLShader
Parameters
sourcecode
GLSL sourcecode for the shader, as a GBytes
⚠️ Deprecated ⚠️
This is deprecated since version 4.16.
GTK's new Vulkan-focused rendering does not support this feature. Use ../gtk4/class.GLArea.html for OpenGL rendering.
Creates a GskGLShader
that will render pixels using the specified code.
Return
A new GskGLShader
Parameters
resourcePath
path to a resource that contains the GLSL sourcecode for the shader