webgl2 1.2.7 → 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 CHANGED
@@ -4,47 +4,50 @@
4
4
 
5
5
  | File | Lines Covered | Lines Missed | Total Lines | Coverage |
6
6
  |---|---|---|---|---:|
7
- | src/coverage.rs | 5 | 0 | 5 | 100.00% 🟢 |
8
- | src/decompiler/ast.rs | 2 | 0 | 2 | 100.00% 🟢 |
9
- | src/decompiler/emitter.rs | 2 | 1 | 3 | 66.67% 🟡 |
10
- | src/decompiler/lifter.rs | 4 | 2 | 6 | 66.67% 🟡 |
11
- | src/decompiler/simplifier.rs | 44 | 0 | 44 | 100.00% 🟢 |
12
- | src/error.rs | 31 | 6 | 37 | 83.78% 🟢 |
13
- | src/lib.rs | 99 | 314 | 413 | 23.97% 🟠 |
14
- | src/naga_wasm_backend/backend.rs | 148 | 47 | 195 | 75.90% 🟡 |
15
- | src/naga_wasm_backend/call_lowering.rs | 26 | 3 | 29 | 89.66% 🟢 |
16
- | src/naga_wasm_backend/control_flow.rs | 38 | 44 | 82 | 46.34% 🟠 |
17
- | src/naga_wasm_backend/debug/stub.rs | 11 | 0 | 11 | 100.00% 🟢 |
18
- | src/naga_wasm_backend/expressions.rs | 158 | 153 | 311 | 50.80% 🟡 |
19
- | src/naga_wasm_backend/function_abi.rs | 24 | 11 | 35 | 68.57% 🟡 |
20
- | src/naga_wasm_backend/functions/prep.rs | 7 | 2 | 9 | 77.78% 🟡 |
21
- | src/naga_wasm_backend/functions/registry.rs | 4 | 1 | 5 | 80.00% 🟢 |
22
- | src/naga_wasm_backend/mod.rs | 5 | 3 | 8 | 62.50% 🟡 |
23
- | src/naga_wasm_backend/output_layout.rs | 11 | 2 | 13 | 84.62% 🟢 |
24
- | src/naga_wasm_backend/types.rs | 18 | 4 | 22 | 81.82% 🟢 |
25
- | src/wasm_gl_emu/device.rs | 2 | 0 | 2 | 100.00% 🟢 |
26
- | src/wasm_gl_emu/framebuffer.rs | 4 | 1 | 5 | 80.00% 🟢 |
27
- | src/wasm_gl_emu/rasterizer.rs | 25 | 24 | 49 | 51.02% 🟡 |
28
- | src/wasm_gl_emu/transfer.rs | 11 | 12 | 23 | 47.83% 🟠 |
29
- | src/webgl2_context/buffers.rs | 4 | 0 | 4 | 100.00% 🟢 |
30
- | src/webgl2_context/drawing.rs | 36 | 1 | 37 | 97.30% 🟢 |
31
- | src/webgl2_context/renderbuffers.rs | 12 | 1 | 13 | 92.31% 🟢 |
32
- | src/webgl2_context/shaders.rs | 176 | 52 | 228 | 77.19% 🟡 |
33
- | src/webgl2_context/state.rs | 11 | 3 | 14 | 78.57% 🟡 |
34
- | src/webgl2_context/textures.rs | 10 | 3 | 13 | 76.92% 🟡 |
35
- | src/webgl2_context/types.rs | 5 | 1 | 6 | 83.33% 🟢 |
36
- | src/webgpu/adapter.rs | 8 | 0 | 8 | 100.00% 🟢 |
37
- | src/webgpu/backend.rs | 112 | 25 | 137 | 81.75% 🟢 |
38
- | src/webgpu/buffer.rs | 1 | 3 | 4 | 25.00% 🟡 |
39
- | src/webgpu/command.rs | 5 | 6 | 11 | 45.45% 🟠 |
40
- | src/webgpu/pipeline.rs | 0 | 1 | 1 | 0.00% 🟡 |
41
- | **Total** | **1059** | **726** | **1785** | **59.33% 🟡** |
7
+ | src/coverage.rs | 5 | 3 | 8 | 62.50% 🟡 |
8
+ | src/decompiler/ast.rs | 5 | 0 | 5 | 100.00% 🟢 |
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
+ | src/naga_wasm_backend/output_layout.rs | 10 | 1 | 11 | 90.91% 🟢 |
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% 🟡** |
42
45
 
43
46
  ## Top Missed Files
44
47
 
45
48
  | File | Lines Missed | Illustrative Line | Coverage |
46
49
  |---|---|---|---:|
47
- | src/lib.rs | 314/413 | [1994] `}` | 23.97% 🟠 |
48
- | src/naga_wasm_backend/expressions.rs | 153/311 | [1555] `ctx.wasm_func.instruction(&Instruction::LocalSet(temp_b));` | 50.80% 🟡 |
49
- | src/webgl2_context/shaders.rs | 52/228 | [428] `used_locations.insert(loc, (name.clone(), origin));` | 77.19% 🟡 |
50
- | src/naga_wasm_backend/backend.rs | 47/195 | [110] `code: CodeSection::new(),` | 75.90% 🟡 |
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webgl2",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "WebGL2 tools to derisk large GPU projects on the web beyond toys and demos.",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/webgl2.debug.wasm CHANGED
Binary file
package/webgl2.wasm CHANGED
Binary file