Basics
Guides
API Reference
Basics
Guides
API Reference
[12:7] extends: object
Builds the uniforms data for a GskGLShader.
GskShaderArgsBuilder (shader = null, initial_values = null)
Allocates a builder that can be used to construct a new uniform data chunk.
shader is a GskGLShader.initial_values is optional GBytes with initial values.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.free_to_args ()
Creates a new
GBytesargs from the current state of the given @builder, and frees the @builder instance. Any uniforms of the shader that have not been explicitly set on the @builder are zero-initialized.
the newly allocated buffer with all the args added to @builder.ref ()
Increases the reference count of a
GskShaderArgsBuilderby one.
the passed in GskShaderArgsBuilder.set_bool (int idx, bool value)
Sets the value of the uniform @idx. The uniform must be of bool type.
idx is index of the uniform.value is value to set the uniform to.None.set_float (int idx, double value)
Sets the value of the uniform @idx. The uniform must be of float type.
idx is index of the uniform.value is value to set the uniform to.None.set_int (int idx, int value)
Sets the value of the uniform @idx. The uniform must be of int type.
idx is index of the uniform.value is value to set the uniform to.None.set_uint (int idx, int value)
Sets the value of the uniform @idx. The uniform must be of uint type.
idx is index of the uniform.value is value to set the uniform to.None.set_vec2 (int idx, object value)
Sets the value of the uniform @idx. The uniform must be of vec2 type.
idx is index of the uniform.value is value to set the uniform too.None.set_vec3 (int idx, object value)
Sets the value of the uniform @idx. The uniform must be of vec3 type.
idx is index of the uniform.value is value to set the uniform too.None.set_vec4 (int idx, object value)
Sets the value of the uniform @idx. The uniform must be of vec4 type.
idx is index of the uniform.value is value to set the uniform too.None.to_args ()
Creates a new
GBytesargs from the current state of the given @builder. Any uniforms of the shader that have not been explicitly set on the
are zero-initialized. The given GskShaderArgsBuilder is reset once this function returns; you cannot call this function multiple times on the same @builder instance. This function is intended primarily for bindings. C code should use [method@Gsk.ShaderArgsBuilder.free_to_args].the newly allocated buffer with all the args added to @builder.unref ()
Decreases the reference count of a
GskShaderArgBuilderby one. If the resulting reference count is zero, frees the builder.
None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.