Note: This feature is available in Web Workers.
The WebGL2RenderingContext.vertexAttribI4[u]i[v]() methods of the WebGL 2 API specify integer values for generic vertex attributes.
vertexAttribI4i(index, v0, v1, v2, v3)
vertexAttribI4ui(index, v0, v1, v2, v3)
vertexAttribI4iv(index, value)
vertexAttribI4uiv(index, value)indexA GLuint specifying the position of the vertex attribute to be modified.
v0, v1, v2, v3An integer Number for the vertex attribute value.
valueA Uint32Array/Int32Array or sequences of GLuint/ GLint for integer vector vertex attribute values.
None (undefined).
gl.vertexAttribI4i(index, 10);