为什么着色器编译错误与属性 int (Android opengl es2)

why shader compile error with attribute int (Android opengl es2)

为什么带有int属性的着色器编译错误? (Android opengl es2)

attribute vec4 a_Position;
attribute vec2 a_TexCoord;
attribute int a_fckLen; ///--error compile 
attribute float a_fckLen; //--compile ok

void main()
{

        gl_Position = u_Matrix * a_Position;
}

但是float编译OK

来自 GLSL ES 1.00(GL ES 2 使用的)规范:

4.3.3 Attribute

...

The attribute qualifier can be used only with the data types float, vec2, vec3, vec4, mat2, mat3, and mat4. Attribute variables cannot be declared as arrays or structures.