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) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
ShaderArgsBuilder self() nothrowReturns `this`, for use in `with` statements.
void setBool(int idx, bool value) nothrowSets the value of the uniform idx.
void setFloat(int idx, float value) nothrowSets the value of the uniform idx.
void setInt(int idx, int value) nothrowSets the value of the uniform idx.
void setUint(int idx, uint value) nothrowSets the value of the uniform idx.
void setVec2(int idx, graphene.vec2.Vec2 value) nothrowSets the value of the uniform idx.
void setVec3(int idx, graphene.vec3.Vec3 value) nothrowSets the value of the uniform idx.
void setVec4(int idx, graphene.vec4.Vec4 value) nothrowSets the value of the uniform idx.
glib.bytes.Bytes toArgs() nothrowCreates 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.