Class ProgramUniform
Represents an uniform variable in a shader program.
Defined in: benchgl.js.
Constructor Attributes | Constructor Name and Description |
---|---|
ProgramUniform(program, name, type, size, location)
Creates a new ProgramUniform.
|
Method Attributes | Method Name and Description |
---|---|
func(v)
|
|
getValue()
Get the value of this ProgramUniform.
|
|
setValue(v)
Sets the value of this ProgramUniform.
|
Class Detail
ProgramUniform(program, name, type, size, location)
Creates a new ProgramUniform.
- Parameters:
- {Program} program
- The program in wich the uniform lives.
- {String} name
- The name of the uniform.
- {Number} type
- The WebGL type of the uniform.
- {Number} size
- The size of the attributes in bytes.
- {Number} location
- The index location in the shader.
Method Detail
func(v)
- Parameters:
- v
getValue()
Get the value of this ProgramUniform.
setValue(v)
Sets the value of this ProgramUniform.
- Parameters:
- {Object} v
- The value to set.