github
1184 of 1608 branches covered (73.63%)
Branch coverage included in aggregate %.
94 of 141 new or added lines in 25 files covered. (66.67%)
22907 existing lines in 275 files now uncovered.33302 of 63049 relevant lines covered (52.82%)
7.72 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
|
} |
× |