GlShader

constructor(sourcecode: <Error class: unknown class>)(source)

⚠️ 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


constructor(resourcePath: String)(source)

⚠️ 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


constructor(gskGlShaderPointer: <Error class: unknown class><<Error class: unknown class>>)(source)