ShaderArgsBuilder
Object Hierarchy:
Description:
[ CCode ( ref_function = "gsk_shader_args_builder_ref" , type_id = "gsk_shader_args_builder_get_type ()" , unref_function = "gsk_shader_args_builder_unref" ) ]
[ Compact ]
public class ShaderArgsBuilder
An object to build the uniforms data for a `GskGLShader`.
Content:
Creation methods:
Methods:
- public unowned ShaderArgsBuilder @ref ()
Increases the reference count of a `GskShaderArgsBuilder` by one.
- public void set_bool (int idx, bool value)
Sets the value of the uniform idx
.
- public void set_float (int idx, float value)
Sets the value of the uniform idx
.
- public void set_int (int idx, int32 value)
Sets the value of the uniform idx
.
- public void set_uint (int idx, uint32 value)
Sets the value of the uniform idx
.
- public void set_vec2 (int idx, Vec2 value)
Sets the value of the uniform idx
.
- public void set_vec3 (int idx, Vec3 value)
Sets the value of the uniform idx
.
- public void set_vec4 (int idx, Vec4 value)
Sets the value of the uniform idx
.
- public Bytes to_args ()
Creates a new `GBytes` args from the current state of the given
this.
- public void unref ()
Decreases the reference count of a `GskShaderArgBuilder` by one.