function nextMipSize(currentSize) {
  const nextSize = Math.floor(currentSize / 2) | 0;
  return Math.max(nextSize, 1);
}
Compute a dimension of the image for the next mip level.

@param {number} currentSize The size of the current mip level.
@returns {number} The size of the next mip level.

@private