Class Index | File Index

Classes


Class ProgramSampler

Represents an sampler variable in a shader program.
Defined in: benchgl.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ProgramSampler(program, name, type, size, location)
Creates a new ProgramSampler.
Method Summary
Method Attributes Method Name and Description
 
Gets the unit of this ProgramSampler.
 
Sets the unit of this ProgramSampler.
Class Detail
ProgramSampler(program, name, type, size, location)
Creates a new ProgramSampler.
Parameters:
{Program} program
The program in wich the sampler lives.
{String} name
The name of the sampler.
{Number} type
The WebGL type of the sampler.
{Number} size
The size of the attributes in bytes.
{Number} location
The index location in the shader.
Method Detail
getUnit()
Gets the unit of this ProgramSampler.

setUnit(n)
Sets the unit of this ProgramSampler.
Parameters:
{Number} n
The unit to set.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu May 19 2011 00:47:49 GMT+0200 (CEST)