struct Gloop::Uniform
- Gloop::Uniform
- Struct
- Value
- Object
Overview
Metadata for an active uniform in a program.
Defined in:
gloop/uniform.crConstructors
-
.new(name : String, type : Type, size : Int32 = 1)
Creates metadata about an active uniform from a program.
-
.new(name : String, type, size : Int32 = 1)
Creates metadata about an active uniform from a program.
Instance Method Summary
-
#array?
Checks whether the uniform references an array.
-
#name : String
Name of the uniform.
-
#size : Int32
Number of elements in the uniform if it's an array.
-
#type : Type
Type of data stored by the uniform.
Constructor Detail
Creates metadata about an active uniform from a program.
def self.new(name : String, type, size : Int32 = 1)
#
Creates metadata about an active uniform from a program.
Instance Method Detail
def name : String
#
Name of the uniform.
The name may include '.' and '[]' operators. This indicates a sub-item of a structure or array is referenced.