webgl2 1.1.17 → 1.2.0
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 +35 -31
- package/daebug.md +6 -7
- package/demo.js +776 -0
- package/index.js +63 -7
- package/package.json +2 -1
- package/src/webgl2_context.js +673 -44
- package/webgl2.debug.wasm +0 -0
- package/webgl2.wasm +0 -0
package/coverage.md
CHANGED
|
@@ -4,44 +4,48 @@
|
|
|
4
4
|
|
|
5
5
|
| File | Lines Covered | Lines Missed | Total Lines | Coverage |
|
|
6
6
|
|---|---|---|---|---:|
|
|
7
|
-
| src/decompiler/
|
|
7
|
+
| src/decompiler/ast.rs | 0 | 1 | 1 | 0.00% 🟡 |
|
|
8
|
+
| src/decompiler/emitter.rs | 17 | 8 | 25 | 68.00% 🟡 |
|
|
8
9
|
| src/decompiler/lifter.rs | 17 | 21 | 38 | 44.74% 🟠 |
|
|
9
|
-
| src/decompiler/mod.rs |
|
|
10
|
+
| src/decompiler/mod.rs | 8 | 6 | 14 | 57.14% 🟡 |
|
|
10
11
|
| src/decompiler/module.rs | 1 | 1 | 2 | 50.00% 🟡 |
|
|
11
|
-
| src/decompiler/parser.rs | 17 |
|
|
12
|
-
| src/decompiler/simplifier.rs |
|
|
13
|
-
| src/error.rs |
|
|
14
|
-
| src/lib.rs |
|
|
15
|
-
| src/naga_wasm_backend/backend.rs |
|
|
16
|
-
| src/naga_wasm_backend/call_lowering.rs |
|
|
17
|
-
| src/naga_wasm_backend/control_flow.rs |
|
|
18
|
-
| src/naga_wasm_backend/debug/stub.rs |
|
|
19
|
-
| src/naga_wasm_backend/expressions.rs |
|
|
20
|
-
| src/naga_wasm_backend/function_abi.rs |
|
|
12
|
+
| src/decompiler/parser.rs | 17 | 2 | 19 | 89.47% 🟢 |
|
|
13
|
+
| src/decompiler/simplifier.rs | 53 | 19 | 72 | 73.61% 🟡 |
|
|
14
|
+
| src/error.rs | 7 | 15 | 22 | 31.82% 🟠 |
|
|
15
|
+
| src/lib.rs | 315 | 210 | 525 | 60.00% 🟡 |
|
|
16
|
+
| src/naga_wasm_backend/backend.rs | 62 | 2 | 64 | 96.88% 🟢 |
|
|
17
|
+
| src/naga_wasm_backend/call_lowering.rs | 18 | 0 | 18 | 100.00% 🟢 |
|
|
18
|
+
| src/naga_wasm_backend/control_flow.rs | 54 | 16 | 70 | 77.14% 🟡 |
|
|
19
|
+
| src/naga_wasm_backend/debug/stub.rs | 20 | 0 | 20 | 100.00% 🟢 |
|
|
20
|
+
| src/naga_wasm_backend/expressions.rs | 65 | 105 | 170 | 38.24% 🟠 |
|
|
21
|
+
| src/naga_wasm_backend/function_abi.rs | 22 | 0 | 22 | 100.00% 🟢 |
|
|
21
22
|
| src/naga_wasm_backend/functions/prep.rs | 4 | 0 | 4 | 100.00% 🟢 |
|
|
22
|
-
| src/naga_wasm_backend/functions/registry.rs | 4 |
|
|
23
|
+
| src/naga_wasm_backend/functions/registry.rs | 4 | 1 | 5 | 80.00% 🟢 |
|
|
24
|
+
| src/naga_wasm_backend/memory_layout.rs | 9 | 0 | 9 | 100.00% 🟢 |
|
|
23
25
|
| src/naga_wasm_backend/output_layout.rs | 2 | 2 | 4 | 50.00% 🟡 |
|
|
24
|
-
| src/naga_wasm_backend/types.rs |
|
|
25
|
-
| src/wasm_gl_emu/
|
|
26
|
-
| src/
|
|
27
|
-
| src/webgl2_context/
|
|
28
|
-
| src/webgl2_context/
|
|
29
|
-
| src/webgl2_context/
|
|
30
|
-
| src/webgl2_context/
|
|
31
|
-
| src/webgl2_context/
|
|
32
|
-
| src/webgl2_context/
|
|
33
|
-
| src/webgl2_context/
|
|
34
|
-
| src/webgl2_context/
|
|
35
|
-
| src/webgl2_context/
|
|
36
|
-
| src/
|
|
37
|
-
| src/
|
|
38
|
-
|
|
|
26
|
+
| src/naga_wasm_backend/types.rs | 11 | 0 | 11 | 100.00% 🟢 |
|
|
27
|
+
| src/wasm_gl_emu/framebuffer.rs | 1 | 0 | 1 | 100.00% 🟢 |
|
|
28
|
+
| src/wasm_gl_emu/rasterizer.rs | 26 | 18 | 44 | 59.09% 🟡 |
|
|
29
|
+
| src/webgl2_context/blend.rs | 2 | 1 | 3 | 66.67% 🟡 |
|
|
30
|
+
| src/webgl2_context/buffers.rs | 18 | 1 | 19 | 94.74% 🟢 |
|
|
31
|
+
| src/webgl2_context/drawing.rs | 26 | 3 | 29 | 89.66% 🟢 |
|
|
32
|
+
| src/webgl2_context/framebuffers.rs | 10 | 0 | 10 | 100.00% 🟢 |
|
|
33
|
+
| src/webgl2_context/registry.rs | 7 | 0 | 7 | 100.00% 🟢 |
|
|
34
|
+
| src/webgl2_context/renderbuffers.rs | 11 | 0 | 11 | 100.00% 🟢 |
|
|
35
|
+
| src/webgl2_context/shaders.rs | 113 | 12 | 125 | 90.40% 🟢 |
|
|
36
|
+
| src/webgl2_context/state.rs | 23 | 1 | 24 | 95.83% 🟢 |
|
|
37
|
+
| src/webgl2_context/textures.rs | 28 | 17 | 45 | 62.22% 🟡 |
|
|
38
|
+
| src/webgl2_context/types.rs | 15 | 1 | 16 | 93.75% 🟢 |
|
|
39
|
+
| src/webgl2_context/vaos.rs | 35 | 0 | 35 | 100.00% 🟢 |
|
|
40
|
+
| src/webgpu/adapter.rs | 3 | 0 | 3 | 100.00% 🟢 |
|
|
41
|
+
| src/webgpu/backend.rs | 25 | 27 | 52 | 48.08% 🟠 |
|
|
42
|
+
| **Total** | **1049** | **490** | **1539** | **68.16% 🟡** |
|
|
39
43
|
|
|
40
44
|
## Top Missed Files
|
|
41
45
|
|
|
42
46
|
| File | Lines Missed | Illustrative Line | Coverage |
|
|
43
47
|
|---|---|---|---:|
|
|
44
|
-
| src/lib.rs |
|
|
45
|
-
| src/
|
|
46
|
-
| src/
|
|
48
|
+
| src/lib.rs | 210/525 | [1040] `/// Get active attribute info.` | 60.00% 🟡 |
|
|
49
|
+
| src/naga_wasm_backend/expressions.rs | 105/170 | [1504] `for j in 0..count {` | 38.24% 🟠 |
|
|
50
|
+
| src/webgpu/backend.rs | 27/52 | [965] `}` | 48.08% 🟠 |
|
|
47
51
|
| src/decompiler/lifter.rs | 21/38 | [455] `fn unary_op(&mut self, op: UnaryOp) {` | 44.74% 🟠 |
|
package/daebug.md
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
# 👾 Daebug remote debugging REPL
|
|
2
|
-
>
|
|
1
|
+
# 👾 Daebug remote debugging REPL started 22:13:58
|
|
2
|
+
> Interactive debugging REPL sessions for live browser contexts
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
This file tracks all active debugging sessions. Each entry represents a connected page or web worker where you can execute JavaScript code and see results in real-time.
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Active Sessions
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
```
|
|
9
|
+
* [18-quartz-2214-06-webworker](daebug/18-quartz-2214-06-webworker.md) (worker://18-quartz-2214-06-webworker) at 22:14:06: live
|
|
10
|
+
* [18-quartz-2214-06](daebug/18-quartz-2214-06.md) (http://localhost:8907/) at 22:14:06: live
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
## How to Use
|