github
13 of 238 branches covered (5.46%)
Branch coverage included in aggregate %.
0 of 472 new or added lines in 41 files covered. (0.0%)
19728 existing lines in 193 files now uncovered.91 of 28170 relevant lines covered (0.32%)
0.02 hits per line
UNCOV
1
|
// luma.gl, MIT license
|
|
UNCOV
2
|
// Copyright (c) vis.gl contributors
|
× |
UNCOV
3
|
|
× |
UNCOV
4
|
import {ShaderModule} from './shader-module'; |
× |
UNCOV
5
|
import {ShaderModuleInstance} from './shader-module-instance'; |
× |
UNCOV
6
|
|
× |
UNCOV
7
|
export function normalizeShaderModule(module: ShaderModule): ShaderModule {
|
× |
UNCOV
8
|
if (!module.normalized) {
|
× |
UNCOV
9
|
module.normalized = true;
|
× |
UNCOV
10
|
if (module.uniformPropTypes && !module.getUniforms) {
|
× |
UNCOV
11
|
const shaderModule = new ShaderModuleInstance(module); |
× |
UNCOV
12
|
module.getUniforms = shaderModule.getUniforms.bind(shaderModule); |
× |
UNCOV
13
|
} |
× |
UNCOV
14
|
} |
× |
UNCOV
15
|
return module;
|
× |
UNCOV
16
|
} |
× |