class Gsk::ShaderArgsBuilder
- Gsk::ShaderArgsBuilder
- Reference
- Object
Overview
An object to build the uniforms data for a Gsk::GLShader
.
Defined in:
lib/gi-crystal/src/auto/gsk-4.0/shader_args_builder.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(shader : Gsk::GLShader, initial_values : GLib::Bytes?) : self
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
- #finalize
- #ref : Gsk::ShaderArgsBuilder
- #set_bool(idx : Int32, value : Bool) : Nil
- #set_float(idx : Int32, value : Float32) : Nil
- #set_int(idx : Int32, value : Int32) : Nil
- #set_uint(idx : Int32, value : UInt32) : Nil
- #set_vec2(idx : Int32, value : Graphene::Vec2) : Nil
- #set_vec3(idx : Int32, value : Graphene::Vec3) : Nil
- #set_vec4(idx : Int32, value : Graphene::Vec4) : Nil
- #to_args : GLib::Bytes
- #to_unsafe : Pointer(Void)
- #unref : Nil