Class ProgramAttribute
Represents an attribute variable in a shader program.
Defined in: benchgl.js.
Constructor Attributes | Constructor Name and Description |
---|---|
ProgramAttribute(program, name, type, size, location)
Creates a new ProgramAttribute.
|
Method Attributes | Method Name and Description |
---|---|
getIndex()
Gets the index of this ProgramAttribute.
|
|
setIndex(n)
Sets the index of this ProgramAttribute.
|
Class Detail
ProgramAttribute(program, name, type, size, location)
Creates a new ProgramAttribute.
- Parameters:
- {Program} program
- The program in wich the attribute lives.
- {String} name
- The name of the attribute.
- {Number} type
- The WebGL type of the attribute.
- {Number} size
- The size of the attributes in bytes.
- {Number} location
- The index location in the shader.
Method Detail
{Number}
getIndex()
Gets the index of this ProgramAttribute.
- Returns:
- {Number} The current index of this ProgramAttribute in the program
setIndex(n)
Sets the index of this ProgramAttribute.
- Parameters:
- {Number} n
- The index to set.