struct Gloop::Uniform

Overview

Metadata for an active uniform in a program.

Defined in:

gloop/uniform.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, type : Type, size : Int32 = 1) #

Creates metadata about an active uniform from a program.


[View source]
def self.new(name : String, type, size : Int32 = 1) #

Creates metadata about an active uniform from a program.


[View source]

Instance Method Detail

def array? #

Checks whether the uniform references an array.


[View source]
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.


[View source]
def size : Int32 #

Number of elements in the uniform if it's an array.


[View source]
def type : Type #

Type of data stored by the uniform.


[View source]