class Gsk::ShaderArgsBuilder

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.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

[View source]
def self.new(shader : Gsk::GLShader, initial_values : GLib::Bytes | Nil) : self #

[View source]

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


[View source]

Instance Method Detail

def finalize #

[View source]

[View source]
def set_bool(idx : Int32, value : Bool) : Nil #

[View source]
def set_float(idx : Int32, value : Float32) : Nil #

[View source]
def set_int(idx : Int32, value : Int32) : Nil #

[View source]
def set_uint(idx : Int32, value : UInt32) : Nil #

[View source]
def set_vec2(idx : Int32, value : Graphene::Vec2) : Nil #

[View source]
def set_vec3(idx : Int32, value : Graphene::Vec3) : Nil #

[View source]
def set_vec4(idx : Int32, value : Graphene::Vec4) : Nil #

[View source]
def to_args : GLib::Bytes #

[View source]
def to_unsafe : Pointer(Void) #

[View source]
def unref : Nil #

[View source]