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