github
946 of 1273 branches covered (74.31%)
Branch coverage included in aggregate %.
117 of 146 new or added lines in 9 files covered. (80.14%)
24638 existing lines in 277 files now uncovered.31680 of 63169 relevant lines covered (50.15%)
2.0 hits per line
1 |
import type {Device, Framebuffer} from '@luma.gl/core'; |
1✔ |
2 |
|
1✔ |
3 |
/**
|
1✔ |
4 |
* Marks GLSL shaders for syntax highlighting: glsl`...` |
1✔ |
5 |
* Install https://marketplace.visualstudio.com/items?itemName=boyswan.glsl-literal |
1✔ |
6 |
*/ |
1✔ |
7 |
export const glsl = (s: TemplateStringsArray) => `${s}`; |
|
8 |
|
1✔ |
9 |
/**
|
1✔ |
10 |
* Create a float texture to store aggregation result |
1✔ |
11 |
*/ |
1✔ |
12 |
export function createRenderTarget(device: Device, width: number, height: number): Framebuffer {
|
1✔ |
UNCOV
13
|
return device.createFramebuffer({
|
× |
UNCOV
14
|
width, |
× |
UNCOV
15
|
height, |
× |
UNCOV
16
|
colorAttachments: [ |
× |
UNCOV
17
|
device.createTexture({ |
× |
UNCOV
18
|
width, |
× |
UNCOV
19
|
height, |
× |
UNCOV
20
|
format: 'rgba32float', |
× |
UNCOV
21
|
mipmaps: false,
|
× |
UNCOV
22
|
sampler: { |
× |
UNCOV
23
|
minFilter: 'nearest', |
× |
UNCOV
24
|
magFilter: 'nearest' |
× |
UNCOV
25
|
} |
× |
UNCOV
26
|
}) |
× |
UNCOV
27
|
] |
× |
UNCOV
28
|
}); |
× |
UNCOV
29
|
} |
× |