Class ProgramSampler
Represents an sampler variable in a shader program.
Defined in: benchgl.js.
Constructor Attributes | Constructor Name and Description |
---|---|
ProgramSampler(program, name, type, size, location)
Creates a new ProgramSampler.
|
Method Attributes | Method Name and Description |
---|---|
getUnit()
Gets the unit of this ProgramSampler.
|
|
setUnit(n)
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.