• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

visgl / luma.gl / 16861519495

09 Aug 2025 01:25PM UTC coverage: 73.868% (-0.5%) from 74.38%
16861519495

push

github

web-flow
feat(webgpu): Read pixels (#2415)

2063 of 2704 branches covered (76.29%)

Branch coverage included in aggregate %.

411 of 626 new or added lines in 9 files covered. (65.65%)

130 existing lines in 11 files now uncovered.

27064 of 36727 relevant lines covered (73.69%)

46.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

60.0
/modules/core/src/utils/array-utils-flat.ts
1
// luma.gl
1✔
2
// SPDX-License-Identifier: MIT
1✔
3
// Copyright (c) vis.gl contributors
1✔
4

1✔
5
import type {TypedArray} from '../types';
1✔
6

1✔
7
let arrayBuffer: ArrayBuffer;
1✔
8

1✔
9
export function getScratchArrayBuffer(byteLength: number): ArrayBuffer {
1✔
UNCOV
10
  if (!arrayBuffer || arrayBuffer.byteLength < byteLength) {
×
UNCOV
11
    arrayBuffer = new ArrayBuffer(byteLength);
×
UNCOV
12
  }
×
UNCOV
13
  return arrayBuffer;
×
UNCOV
14
}
×
15

1✔
16
export function getScratchArray(Type: any, length: number): TypedArray {
1✔
17
  const scratchArrayBuffer = getScratchArrayBuffer(Type.BYTES_PER_ELEMENT * length);
×
18
  return new Type(scratchArrayBuffer, 0, length); // arrayBuffer, byteOffset, length (in elements)
×
19
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc