static _getEmptyTypedArrayForFormat(format, size) {
    if (format === xrSessionMojom.XRDepthDataFormat.kFloat32) {
        return new Float32Array(size).fill(0.0);
    } else { // "luminance-alpha" or "unsigned-short" (Uint16)
        return new Uint16Array(size).fill(0);
    }
  }
Helper to get a TypedArray for the given depth format.
@param {xrSessionMojom.XRDepthDataFormat} format - The Depth format
@param {number} size - The size of the array to be created.
@return {Uint16Array|Float32Array} A typed array view.