gsk.shader_args_builder

Module for [ShaderArgsBuilder] class

Types 1

An object to build the uniforms data for a [gsk.glshader.GLShader].

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
ShaderArgsBuilder self()Returns `this`, for use in `with` statements.
void setBool(int idx, bool value)Sets the value of the uniform idx.
void setFloat(int idx, float value)Sets the value of the uniform idx.
void setInt(int idx, int value)Sets the value of the uniform idx.
void setUint(int idx, uint value)Sets the value of the uniform idx.
void setVec2(int idx, graphene.vec2.Vec2 value)Sets the value of the uniform idx.
void setVec3(int idx, graphene.vec3.Vec3 value)Sets the value of the uniform idx.
void setVec4(int idx, graphene.vec4.Vec4 value)Sets the value of the uniform idx.
glib.bytes.Bytes toArgs()Creates a new [glib.bytes.Bytes] args from the current state of the given builder.
Constructors
this(void * ptr, Flag!"Take" take)
this(gsk.glshader.GLShader shader, glib.bytes.Bytes initialValues = null)Allocates a builder that can be used to construct a new uniform data chunk.