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

visgl / luma.gl / 26509727631

27 May 2026 11:58AM UTC coverage: 72.123% (-2.5%) from 74.629%
26509727631

push

github

ibgreen
feat(arrow) Path example

8619 of 13596 branches covered (63.39%)

Branch coverage included in aggregate %.

10 of 742 new or added lines in 5 files covered. (1.35%)

17921 of 23202 relevant lines covered (77.24%)

4250.35 hits per line

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

0.0
/modules/tables/src/table/gpu-renderable.ts
1
// luma.gl
2
// SPDX-License-Identifier: MIT
3
// Copyright (c) vis.gl contributors
4

5
import type {CommandEncoder} from '@luma.gl/core';
6

7
/** Base class for GPU-backed renderable objects that need explicit predraw handling. */
8
export abstract class GPURenderable<DrawArguments extends unknown[] = unknown[]> {
NEW
9
  private needsRedrawReason: false | string = false;
×
10

11
  /** Runs pre-render GPU work such as compute passes or uniform buffer uploads. */
12
  abstract predraw(commandEncoder: CommandEncoder): void;
13

14
  /** Draws this renderable. */
15
  abstract draw(...drawArguments: DrawArguments): void;
16

17
  /** Draws all batches for renderers that keep multiple GPU table batches. */
18
  drawBatches(...drawArguments: DrawArguments): void {
NEW
19
    this.draw(...drawArguments);
×
20
  }
21

22
  /** Returns and clears the pending redraw reason. */
23
  needsRedraw(): false | string {
NEW
24
    const reason = this.needsRedrawReason;
×
NEW
25
    this.needsRedrawReason = false;
×
NEW
26
    return reason;
×
27
  }
28

29
  /** Marks this renderable as needing redraw, retaining the first pending reason. */
30
  setNeedsRedraw(reason: string): void {
NEW
31
    this.needsRedrawReason ||= reason;
×
32
  }
33
}
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