Enum gsk4::GLUniformType [−][src]
#[non_exhaustive]
pub enum GLUniformType {
None,
Float,
Int,
Uint,
Bool,
Vec2,
Vec3,
Vec4,
// some variants omitted
}
Expand description
This defines the types of the uniforms that GskGLShaders
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.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
No type, used for uninitialized or unspecified values.
A float uniform
A GLSL int / gint32 uniform
A GLSL uint / guint32 uniform
A GLSL bool / gboolean uniform
A GLSL vec2 / graphene_vec2_t uniform
A GLSL vec3 / graphene_vec3_t uniform
A GLSL vec4 / graphene_vec4_t uniform
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for GLUniformType
impl Send for GLUniformType
impl Sync for GLUniformType
impl Unpin for GLUniformType
impl UnwindSafe for GLUniformType
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.