code: function getTextureTypeForArrayType(gl, src, defaultType) {
    if (isArrayBuffer(src)) {
      return typedArrays.getGLTypeForTypedArray(src);
    }
    return defaultType || gl.UNSIGNED_BYTE;
  }
docs: Gets the texture type for a given array type.
  @param {WebGLRenderingContext} gl the WebGLRenderingContext
  @return {number} the gl texture type
  @private