github
1903 of 2546 branches covered (74.74%)
Branch coverage included in aggregate %.
775 of 823 new or added lines in 10 files covered. (94.17%)
17884 existing lines in 262 files now uncovered.37927 of 62547 relevant lines covered (60.64%)
158.97 hits per line
1 |
import type {Device} from '@luma.gl/core'; |
1✔ |
2 |
import {GL} from '@luma.gl/constants'; |
|
3 |
|
1✔ |
4 |
export function createRenderTarget(
|
1✔ |
UNCOV
5
|
device: Device, |
× |
UNCOV
6
|
opts: { |
× |
UNCOV
7
|
id: string; |
× |
UNCOV
8
|
float?: boolean;
|
× |
UNCOV
9
|
interpolate?: boolean; |
× |
UNCOV
10
|
} |
× |
UNCOV
11
|
) { |
× |
UNCOV
12
|
return device.createFramebuffer({
|
× |
UNCOV
13
|
id: opts.id,
|
× |
UNCOV
14
|
colorAttachments: [ |
× |
UNCOV
15
|
device.createTexture({ |
× |
UNCOV
16
|
id: opts.id,
|
× |
UNCOV
17
|
...(opts.float && {
|
× |
UNCOV
18
|
format: 'rgba32float', |
× |
UNCOV
19
|
type: GL.FLOAT |
× |
UNCOV
20
|
}), |
× |
UNCOV
21
|
mipmaps: false, |
× |
UNCOV
22
|
sampler: |
× |
UNCOV
23
|
opts.interpolate === false
|
× |
UNCOV
24
|
? { |
× |
UNCOV
25
|
minFilter: 'nearest', |
× |
UNCOV
26
|
magFilter: 'nearest' |
× |
UNCOV
27
|
} |
× |
UNCOV
28
|
: { |
× |
UNCOV
29
|
minFilter: 'linear', |
× |
UNCOV
30
|
magFilter: 'linear' |
× |
UNCOV
31
|
} |
× |
UNCOV
32
|
}) |
× |
UNCOV
33
|
] |
× |
UNCOV
34
|
}); |
× |
UNCOV
35
|
} |
× |