Returned by GamnitProgram::uniforms
or GamnitProgram::attributes
when
the uniform has not been identified as active by the driver.
Operations on instances of this class have no effects.
Act as a compatibility when a program expect a uniform to exist even in
a context where the driver's compiler may have optimized it out.
You must be careful when receiving an InactiveVariable
as it may also
silence real program errors, such type in variable name.
gamnit $ InactiveVariable :: SELF
Type of this instance, automatically specialized in every classgamnit $ InactiveVariable :: is_active
Isself
an active uniform or attribute in the program
?
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
gamnit :: ShaderVariable :: defaultinit
gamnit :: ShaderVariable :: is_active
Isself
an active uniform or attribute in the program
?
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
gamnit :: ShaderVariable :: location=
Location ofself
in the compiled program
gamnit :: ShaderVariable :: name=
Name ofself
in the program
source
core :: Object :: output_class_name
Display class name on stdout (debug only).gamnit :: ShaderVariable :: program=
TheGamnitProgram
to which self
belongs
gamnit :: ShaderVariable :: size
Number of elements in this array (1 for scalars and more for vectors)gamnit :: ShaderVariable :: size=
Number of elements in this array (1 for scalars and more for vectors)Attribute
that does not exist or that has been optimized out
Uniform
that does not exist or that has been optimized out
# Inactive shader variable, either optimized out or simple absent from the program
#
# Returned by `GamnitProgram::uniforms` or `GamnitProgram::attributes` when
# the uniform has not been identified as active by the driver.
# Operations on instances of this class have no effects.
#
# Act as a compatibility when a program expect a uniform to exist even in
# a context where the driver's compiler may have optimized it out.
# You must be careful when receiving an `InactiveVariable` as it may also
# silence real program errors, such type in variable name.
abstract class InactiveVariable
super ShaderVariable
redef fun is_active do return false
end
lib/gamnit/programs.nit:46,1--60,3