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

visgl / luma.gl / 23412316304

22 Mar 2026 08:56PM UTC coverage: 73.59% (-0.6%) from 74.227%
23412316304

push

github

web-flow
feat(engine): add async texture buffer read (#2439)

4597 of 7074 branches covered (64.98%)

Branch coverage included in aggregate %.

111 of 213 new or added lines in 20 files covered. (52.11%)

40 existing lines in 8 files now uncovered.

10525 of 13475 relevant lines covered (78.11%)

263.46 hits per line

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

60.0
/modules/test-utils/src/null-device/resources/null-command-encoder.ts
1
// luma.gl
2
// SPDX-License-Identifier: MIT
3
// Copyright (c) vis.gl contributors
4

5
import {CommandEncoder, CommandEncoderProps} from '@luma.gl/core';
6
import type {
7
  CommandBufferProps,
8
  RenderPassProps,
9
  ComputePass,
10
  ComputePassProps,
11
  QuerySet,
12
  CopyBufferToBufferOptions,
13
  CopyBufferToTextureOptions,
14
  CopyTextureToBufferOptions,
15
  CopyTextureToTextureOptions
16
} from '@luma.gl/core';
17
import type {NullDevice} from '../null-device';
18
import {NullCommandBuffer} from './null-command-buffer';
19
import {NullRenderPass} from './null-render-pass';
20

21
export class NullCommandEncoder extends CommandEncoder {
22
  readonly device: NullDevice;
23
  readonly handle: null = null;
15✔
24

25
  constructor(device: NullDevice, props: CommandEncoderProps) {
26
    super(device, props);
15✔
27
    this.device = device;
15✔
28
  }
29

30
  override destroy(): void {
31
    this.destroyResource();
1✔
32
  }
33

34
  finish(props: CommandBufferProps = {}): NullCommandBuffer {
1✔
35
    const commandBuffer = new NullCommandBuffer(this.device, props);
1✔
36
    this.destroy();
1✔
37
    return commandBuffer;
1✔
38
  }
39

40
  beginRenderPass(props: RenderPassProps): NullRenderPass {
41
    return new NullRenderPass(this.device, props);
1✔
42
  }
43

44
  beginComputePass(_props: ComputePassProps): ComputePass {
NEW
45
    throw new Error('ComputePass is not supported on NullDevice');
×
46
  }
47

48
  copyBufferToBuffer(_options: CopyBufferToBufferOptions): void {
NEW
49
    throw new Error('copyBufferToBuffer is not supported on NullDevice');
×
50
  }
51

52
  copyBufferToTexture(_options: CopyBufferToTextureOptions) {
NEW
53
    throw new Error('copyBufferToTexture is not supported on NullDevice');
×
54
  }
55

56
  copyTextureToBuffer(_options: CopyTextureToBufferOptions): void {
NEW
57
    throw new Error('copyTextureToBuffer is not supported on NullDevice');
×
58
  }
59

60
  copyTextureToTexture(_options: CopyTextureToTextureOptions): void {
NEW
61
    throw new Error('copyTextureToTexture is not supported on NullDevice');
×
62
  }
63

64
  resolveQuerySet(_querySet: QuerySet): void {
NEW
65
    throw new Error('resolveQuerySet is not supported on NullDevice');
×
66
  }
67

68
  pushDebugGroup(groupLabel: string): void {}
69
  popDebugGroup() {}
70
  insertDebugMarker(markerLabel: string): void {}
71
}
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