webgl2 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/coverage.md +40 -38
- package/index.js +1 -0
- package/package.json +1 -1
- package/webgl2.debug.wasm +0 -0
- package/webgl2.wasm +0 -0
package/coverage.md
CHANGED
|
@@ -4,48 +4,50 @@
|
|
|
4
4
|
|
|
5
5
|
| File | Lines Covered | Lines Missed | Total Lines | Coverage |
|
|
6
6
|
|---|---|---|---|---:|
|
|
7
|
-
| src/coverage.rs |
|
|
7
|
+
| src/coverage.rs | 5 | 3 | 8 | 62.50% 🟡 |
|
|
8
8
|
| src/decompiler/ast.rs | 5 | 0 | 5 | 100.00% 🟢 |
|
|
9
|
-
| src/decompiler/emitter.rs |
|
|
10
|
-
| src/decompiler/lifter.rs |
|
|
11
|
-
| src/decompiler/mod.rs |
|
|
12
|
-
| src/decompiler/module.rs |
|
|
13
|
-
| src/decompiler/parser.rs |
|
|
14
|
-
| src/decompiler/simplifier.rs |
|
|
15
|
-
| src/error.rs |
|
|
16
|
-
| src/lib.rs |
|
|
17
|
-
| src/naga_wasm_backend/backend.rs |
|
|
18
|
-
| src/naga_wasm_backend/call_lowering.rs |
|
|
19
|
-
| src/naga_wasm_backend/control_flow.rs |
|
|
20
|
-
| src/naga_wasm_backend/debug/stub.rs |
|
|
21
|
-
| src/naga_wasm_backend/expressions.rs |
|
|
22
|
-
| src/naga_wasm_backend/function_abi.rs |
|
|
23
|
-
| src/naga_wasm_backend/functions/prep.rs |
|
|
24
|
-
| src/naga_wasm_backend/functions/registry.rs |
|
|
25
|
-
| src/naga_wasm_backend/mod.rs | 6 |
|
|
9
|
+
| src/decompiler/emitter.rs | 28 | 6 | 34 | 82.35% 🟢 |
|
|
10
|
+
| src/decompiler/lifter.rs | 6 | 3 | 9 | 66.67% 🟡 |
|
|
11
|
+
| src/decompiler/mod.rs | 4 | 0 | 4 | 100.00% 🟢 |
|
|
12
|
+
| src/decompiler/module.rs | 0 | 1 | 1 | 0.00% 🟡 |
|
|
13
|
+
| src/decompiler/parser.rs | 21 | 12 | 33 | 63.64% 🟡 |
|
|
14
|
+
| src/decompiler/simplifier.rs | 42 | 2 | 44 | 95.45% 🟢 |
|
|
15
|
+
| src/error.rs | 41 | 3 | 44 | 93.18% 🟢 |
|
|
16
|
+
| src/lib.rs | 94 | 313 | 407 | 23.10% 🟠 |
|
|
17
|
+
| src/naga_wasm_backend/backend.rs | 151 | 44 | 195 | 77.44% 🟡 |
|
|
18
|
+
| src/naga_wasm_backend/call_lowering.rs | 30 | 3 | 33 | 90.91% 🟢 |
|
|
19
|
+
| src/naga_wasm_backend/control_flow.rs | 42 | 41 | 83 | 50.60% 🟡 |
|
|
20
|
+
| src/naga_wasm_backend/debug/stub.rs | 10 | 0 | 10 | 100.00% 🟢 |
|
|
21
|
+
| src/naga_wasm_backend/expressions.rs | 212 | 134 | 346 | 61.27% 🟡 |
|
|
22
|
+
| src/naga_wasm_backend/function_abi.rs | 25 | 3 | 28 | 89.29% 🟢 |
|
|
23
|
+
| src/naga_wasm_backend/functions/prep.rs | 8 | 0 | 8 | 100.00% 🟢 |
|
|
24
|
+
| src/naga_wasm_backend/functions/registry.rs | 1 | 0 | 1 | 100.00% 🟢 |
|
|
25
|
+
| src/naga_wasm_backend/mod.rs | 6 | 2 | 8 | 75.00% 🟡 |
|
|
26
26
|
| src/naga_wasm_backend/output_layout.rs | 10 | 1 | 11 | 90.91% 🟢 |
|
|
27
|
-
| src/naga_wasm_backend/types.rs |
|
|
28
|
-
| src/wasm_gl_emu/device.rs |
|
|
29
|
-
| src/wasm_gl_emu/framebuffer.rs |
|
|
30
|
-
| src/wasm_gl_emu/
|
|
31
|
-
| src/
|
|
32
|
-
| src/webgl2_context/
|
|
33
|
-
| src/webgl2_context/
|
|
34
|
-
| src/webgl2_context/
|
|
35
|
-
| src/webgl2_context/
|
|
36
|
-
| src/webgl2_context/
|
|
37
|
-
| src/webgl2_context/
|
|
38
|
-
| src/
|
|
39
|
-
| src/
|
|
40
|
-
| src/webgpu/
|
|
41
|
-
| src/webgpu/
|
|
42
|
-
|
|
|
27
|
+
| src/naga_wasm_backend/types.rs | 15 | 7 | 22 | 68.18% 🟡 |
|
|
28
|
+
| src/wasm_gl_emu/device.rs | 1 | 0 | 1 | 100.00% 🟢 |
|
|
29
|
+
| src/wasm_gl_emu/framebuffer.rs | 2 | 1 | 3 | 66.67% 🟡 |
|
|
30
|
+
| src/wasm_gl_emu/rasterizer.rs | 32 | 40 | 72 | 44.44% 🟠 |
|
|
31
|
+
| src/wasm_gl_emu/transfer.rs | 10 | 12 | 22 | 45.45% 🟠 |
|
|
32
|
+
| src/webgl2_context/blend.rs | 9 | 1 | 10 | 90.00% 🟢 |
|
|
33
|
+
| src/webgl2_context/buffers.rs | 15 | 0 | 15 | 100.00% 🟢 |
|
|
34
|
+
| src/webgl2_context/drawing.rs | 31 | 1 | 32 | 96.88% 🟢 |
|
|
35
|
+
| src/webgl2_context/registry.rs | 13 | 0 | 13 | 100.00% 🟢 |
|
|
36
|
+
| src/webgl2_context/shaders.rs | 149 | 16 | 165 | 90.30% 🟢 |
|
|
37
|
+
| src/webgl2_context/state.rs | 60 | 4 | 64 | 93.75% 🟢 |
|
|
38
|
+
| src/webgl2_context/textures.rs | 56 | 0 | 56 | 100.00% 🟢 |
|
|
39
|
+
| src/webgl2_context/types.rs | 4 | 0 | 4 | 100.00% 🟢 |
|
|
40
|
+
| src/webgpu/adapter.rs | 3 | 0 | 3 | 100.00% 🟢 |
|
|
41
|
+
| src/webgpu/backend.rs | 79 | 16 | 95 | 83.16% 🟢 |
|
|
42
|
+
| src/webgpu/buffer.rs | 2 | 0 | 2 | 100.00% 🟢 |
|
|
43
|
+
| src/webgpu/command.rs | 7 | 3 | 10 | 70.00% 🟡 |
|
|
44
|
+
| **Total** | **1229** | **672** | **1901** | **64.65% 🟡** |
|
|
43
45
|
|
|
44
46
|
## Top Missed Files
|
|
45
47
|
|
|
46
48
|
| File | Lines Missed | Illustrative Line | Coverage |
|
|
47
49
|
|---|---|---|---:|
|
|
48
|
-
| src/lib.rs |
|
|
49
|
-
| src/naga_wasm_backend/expressions.rs |
|
|
50
|
-
| src/naga_wasm_backend/backend.rs |
|
|
51
|
-
| src/naga_wasm_backend/control_flow.rs |
|
|
50
|
+
| src/lib.rs | 313/407 | [1994] `}` | 23.10% 🟠 |
|
|
51
|
+
| src/naga_wasm_backend/expressions.rs | 134/346 | [805] `let offset = (*index * element_size) + (component_idx * 4);` | 61.27% 🟡 |
|
|
52
|
+
| src/naga_wasm_backend/backend.rs | 44/195 | [110] `code: CodeSection::new(),` | 77.44% 🟡 |
|
|
53
|
+
| src/naga_wasm_backend/control_flow.rs | 41/83 | [30] `if let Some(layout) = ctx.private_memory_layout {` | 50.60% 🟡 |
|
package/index.js
CHANGED
|
@@ -282,6 +282,7 @@ async function initWASM({ debug } = {}) {
|
|
|
282
282
|
env.gl_log = Math.log;
|
|
283
283
|
env.gl_log2 = Math.log2;
|
|
284
284
|
env.gl_pow = Math.pow;
|
|
285
|
+
env.gl_ldexp = (mant, exp) => mant * Math.pow(2, exp);
|
|
285
286
|
env.gl_sinh = Math.sinh;
|
|
286
287
|
env.gl_cosh = Math.cosh;
|
|
287
288
|
env.gl_tanh = Math.tanh;
|
package/package.json
CHANGED
package/webgl2.debug.wasm
CHANGED
|
Binary file
|
package/webgl2.wasm
CHANGED
|
Binary file
|