ShaderArgsBuilder

An object to build the uniforms data for a #GskGLShader.

Constructors

this
this(GskShaderArgsBuilder* gskShaderArgsBuilder, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(GLShader shader, Bytes initialValues)

Allocates a builder that can be used to construct a new uniform data chunk.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

doref
alias doref = ref_
Undocumented in source.

Functions

freeToArgs
Bytes freeToArgs()

Creates a new #GBytes args from the current state of the given @builder, and frees the @builder instance.

getShaderArgsBuilderStruct
GskShaderArgsBuilder* getShaderArgsBuilderStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

ref_
ShaderArgsBuilder ref_()

Increases the reference count of a GskShaderArgsBuilder by one.

setBool
void setBool(int idx, bool value)

Sets the value of the uniform @idx.

setFloat
void setFloat(int idx, float value)

Sets the value of the uniform @idx.

setInt
void setInt(int idx, int value)

Sets the value of the uniform @idx.

setUint
void setUint(int idx, uint value)

Sets the value of the uniform @idx.

setVec2
void setVec2(int idx, Vec2 value)

Sets the value of the uniform @idx.

setVec3
void setVec3(int idx, Vec3 value)

Sets the value of the uniform @idx.

setVec4
void setVec4(int idx, Vec4 value)

Sets the value of the uniform @idx.

toArgs
Bytes toArgs()

Creates a new GBytes args from the current state of the given @builder.

unref
void unref()

Decreases the reference count of a GskShaderArgBuilder by one.

Static functions

getType
GType getType()

Variables

gskShaderArgsBuilder
GskShaderArgsBuilder* gskShaderArgsBuilder;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta