JavaScripture
Contribute via GitHub Feedback

WebGLActiveInfo : Object

WebGLActiveInfo describes an attribute or uniform. WebGLActiveInfos are obtained from getActiveAttrib() and getActiveUniform().

Instance Properties

name : String  

The name of the attribute or uniform.

size : Number  

If the attribute or uniform is an array, this will be the number of elements in the array. Otherwise, this will be 1.

type : Number  

The data type of the attribute or uniform. Will be one of: FLOAT, FLOAT_MAT2, FLOAT_MAT3, FLOAT_MAT4, FLOAT_VEC2, FLOAT_VEC3, FLOAT_VEC4, INT, INT_VEC2, INT_VEC3, INT_VEC4, SAMPLER_2D, or UNSIGNED_INT.