Allocates a builder that can be used to construct a new uniform data chunk.
Increases the reference count of a GskShaderArgsBuilder
by one.
Sets the value of the uniform idx
.
The uniform must be of bool type.
index of the uniform
value to set the uniform to
Sets the value of the uniform idx
.
The uniform must be of float type.
index of the uniform
value to set the uniform to
Sets the value of the uniform idx
.
The uniform must be of int type.
index of the uniform
value to set the uniform to
Sets the value of the uniform idx
.
The uniform must be of uint type.
index of the uniform
value to set the uniform to
Sets the value of the uniform idx
.
The uniform must be of vec2 type.
index of the uniform
value to set the uniform too
Sets the value of the uniform idx
.
The uniform must be of vec4 type.
index of the uniform
value to set the uniform too
Creates a new GBytes
args from the current state of the
given builder
.
Any uniforms of the shader that have not been explicitly set on
the builder
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
[methodGsk
.ShaderArgsBuilder.free_to_args].
Decreases the reference count of a GskShaderArgBuilder
by one.
If the resulting reference count is zero, frees the builder.
Allocates a builder that can be used to construct a new uniform data chunk.
An object to build the uniforms data for a
GskGLShader
.