GLShaderNode.this

Creates a gsk.render_node.RenderNode 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.GLShader.formatArgs or gsk.shader_args_builder.ShaderArgsBuilder.

See gsk.glshader.GLShader 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.GLShader.compile to ensure the shader will work for the renderer before using it.

Parameters

shader gsk.glshader.GLShader
bounds graphene.rect.Rect

the rectangle to render the shader into

args glib.bytes.Bytes

Arguments for the uniforms

children gsk.render_node.RenderNode[]

array of child nodes, these will be rendered to textures and used as input.

Return Value