It derives from <GskRenderNode>.
A render node using a GL shader when drawing its children nodes.
Gets args for the node.
Passed: a <GskGLShaderNode>.
a <GskRenderNode> for a gl shader
Returned: a <GBytes>.
A <GBytes> with the uniform arguments
Gets one of the children.
Passed: a <GskGLShaderNode>.
a <GskRenderNode> for a gl shader
Passed: an unsigned 32-bit integer.
the position of the child to get
Returned: a <GskRenderNode>.
the idx’th child of self
Returns the number of children
Passed: a <GskGLShaderNode>.
a <GskRenderNode> for a gl shader
Returned: an unsigned 32-bit integer.
The number of children
Gets shader code for the node.
Passed: a <GskGLShaderNode>.
a <GskRenderNode> for a gl shader
Returned: a <GskGLShader>.
the GskGLShader shader
Creates a <GskRenderNode> that will render the
given shader into the area given by bounds.
The args is a block of data to use for uniform input, as per types
and offsets defined by the shader. Normally this is generated by
Gsk.GLShader.format_args or <GskShaderArgsBuilder>.
See <GskGLShader> for details about how the shader should be
written.
All the children will be rendered into textures (if they aren’t already
GskTextureNodes, which will be used directly). These textures
will be sent as input to the shader.
If the renderer doesn’t support GL shaders, or if there is any problem
when compiling the shader, then the node will draw pink. You should use
Gsk.GLShader.compile to ensure the shader will work for the
renderer before using it.
Passed: a <GskGLShader>.
the GskGLShader
Passed: a <GrapheneRect>.
the rectangle to render the shader into
Passed: a <GBytes>.
Arguments for the uniforms
Passed: a list or vector, each a
<GskRenderNode>, or #f.
array of child nodes, these will be rendered to textures and used as input.
Returned: a <GskGLShaderNode>.
A new <GskRenderNode>
Not passed: guile-gi gives the length of children.
Length of children (currently the GL backend supports up to 4 children)