enum Gsk::GLUniformType

Overview

This defines the types of the uniforms that Gsk::GLShaders declare.

It defines both what the type is called in the GLSL shader code, and what the corresponding C type is on the Gtk side.

Defined in:

lib/gi-crystal/src/auto/gsk-4.0/gsk.cr

Enum Members

None = 0_u32

No type, used for uninitialized or unspecified values.

Float = 1_u32

A float uniform

Int = 2_u32

A GLSL int / gint32 uniform

Uint = 3_u32

A GLSL uint / guint32 uniform

Bool = 4_u32

A GLSL bool / gboolean uniform

Vec2 = 5_u32

A GLSL vec2 / graphene_::vec2_t uniform

Vec3 = 6_u32

A GLSL vec3 / graphene_::vec3_t uniform

Vec4 = 7_u32

A GLSL vec4 / graphene_::vec4_t uniform

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

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


[View source]

Instance Method Detail

def bool? #

[View source]
def float? #

[View source]
def int? #

[View source]
def none? #

[View source]
def uint? #

[View source]
def vec2? #

[View source]
def vec3? #

[View source]
def vec4? #

[View source]