webgl2 1.1.18 → 1.2.1
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 +37 -32
- package/daebug.md +6 -7
- package/demo.js +2 -2
- package/index.js +404 -354
- package/package.json +1 -1
- package/src/webgl2_context.js +220 -30
- package/src/webgpu_context.js +272 -7
- package/webgl2.debug.wasm +0 -0
- package/webgl2.wasm +0 -0
package/coverage.md
CHANGED
|
@@ -8,43 +8,48 @@
|
|
|
8
8
|
| src/decompiler/emitter.rs | 17 | 8 | 25 | 68.00% 🟡 |
|
|
9
9
|
| src/decompiler/lifter.rs | 17 | 21 | 38 | 44.74% 🟠 |
|
|
10
10
|
| src/decompiler/mod.rs | 8 | 6 | 14 | 57.14% 🟡 |
|
|
11
|
-
| src/decompiler/module.rs |
|
|
12
|
-
| src/decompiler/parser.rs |
|
|
13
|
-
| src/decompiler/simplifier.rs |
|
|
14
|
-
| src/error.rs |
|
|
15
|
-
| src/lib.rs |
|
|
16
|
-
| src/naga_wasm_backend/backend.rs |
|
|
17
|
-
| src/naga_wasm_backend/call_lowering.rs |
|
|
18
|
-
| src/naga_wasm_backend/control_flow.rs |
|
|
19
|
-
| src/naga_wasm_backend/debug/stub.rs |
|
|
20
|
-
| src/naga_wasm_backend/expressions.rs |
|
|
21
|
-
| src/naga_wasm_backend/function_abi.rs |
|
|
11
|
+
| src/decompiler/module.rs | 3 | 1 | 4 | 75.00% 🟡 |
|
|
12
|
+
| src/decompiler/parser.rs | 15 | 2 | 17 | 88.24% 🟢 |
|
|
13
|
+
| src/decompiler/simplifier.rs | 54 | 19 | 73 | 73.97% 🟡 |
|
|
14
|
+
| src/error.rs | 8 | 15 | 23 | 34.78% 🟠 |
|
|
15
|
+
| src/lib.rs | 314 | 224 | 538 | 58.36% 🟡 |
|
|
16
|
+
| src/naga_wasm_backend/backend.rs | 62 | 2 | 64 | 96.88% 🟢 |
|
|
17
|
+
| src/naga_wasm_backend/call_lowering.rs | 19 | 0 | 19 | 100.00% 🟢 |
|
|
18
|
+
| src/naga_wasm_backend/control_flow.rs | 30 | 40 | 70 | 42.86% 🟠 |
|
|
19
|
+
| src/naga_wasm_backend/debug/stub.rs | 20 | 0 | 20 | 100.00% 🟢 |
|
|
20
|
+
| src/naga_wasm_backend/expressions.rs | 65 | 109 | 174 | 37.36% 🟠 |
|
|
21
|
+
| src/naga_wasm_backend/function_abi.rs | 25 | 0 | 25 | 100.00% 🟢 |
|
|
22
22
|
| src/naga_wasm_backend/functions/prep.rs | 4 | 0 | 4 | 100.00% 🟢 |
|
|
23
23
|
| src/naga_wasm_backend/functions/registry.rs | 4 | 0 | 4 | 100.00% 🟢 |
|
|
24
|
-
| src/naga_wasm_backend/
|
|
24
|
+
| src/naga_wasm_backend/memory_layout.rs | 9 | 0 | 9 | 100.00% 🟢 |
|
|
25
|
+
| src/naga_wasm_backend/mod.rs | 1 | 0 | 1 | 100.00% 🟢 |
|
|
26
|
+
| src/naga_wasm_backend/output_layout.rs | 4 | 2 | 6 | 66.67% 🟡 |
|
|
25
27
|
| src/naga_wasm_backend/types.rs | 11 | 0 | 11 | 100.00% 🟢 |
|
|
26
|
-
| src/wasm_gl_emu/
|
|
27
|
-
| src/wasm_gl_emu/
|
|
28
|
-
| src/
|
|
29
|
-
| src/
|
|
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/webgl2_context/
|
|
37
|
-
| src/webgl2_context/
|
|
38
|
-
| src/webgl2_context/
|
|
39
|
-
| src/
|
|
40
|
-
| src/
|
|
41
|
-
|
|
|
28
|
+
| src/wasm_gl_emu/device.rs | 20 | 4 | 24 | 83.33% 🟢 |
|
|
29
|
+
| src/wasm_gl_emu/framebuffer.rs | 3 | 1 | 4 | 75.00% 🟡 |
|
|
30
|
+
| src/wasm_gl_emu/rasterizer.rs | 32 | 18 | 50 | 64.00% 🟡 |
|
|
31
|
+
| src/wasm_gl_emu/transfer.rs | 19 | 7 | 26 | 73.08% 🟡 |
|
|
32
|
+
| src/webgl2_context/blend.rs | 0 | 3 | 3 | 0.00% 🟡 |
|
|
33
|
+
| src/webgl2_context/buffers.rs | 20 | 4 | 24 | 83.33% 🟢 |
|
|
34
|
+
| src/webgl2_context/drawing.rs | 13 | 0 | 13 | 100.00% 🟢 |
|
|
35
|
+
| src/webgl2_context/framebuffers.rs | 11 | 1 | 12 | 91.67% 🟢 |
|
|
36
|
+
| src/webgl2_context/registry.rs | 7 | 0 | 7 | 100.00% 🟢 |
|
|
37
|
+
| src/webgl2_context/renderbuffers.rs | 10 | 0 | 10 | 100.00% 🟢 |
|
|
38
|
+
| src/webgl2_context/shaders.rs | 112 | 14 | 126 | 88.89% 🟢 |
|
|
39
|
+
| src/webgl2_context/state.rs | 16 | 4 | 20 | 80.00% 🟢 |
|
|
40
|
+
| src/webgl2_context/textures.rs | 25 | 9 | 34 | 73.53% 🟡 |
|
|
41
|
+
| src/webgl2_context/types.rs | 16 | 0 | 16 | 100.00% 🟢 |
|
|
42
|
+
| src/webgl2_context/vaos.rs | 35 | 0 | 35 | 100.00% 🟢 |
|
|
43
|
+
| src/webgpu/adapter.rs | 2 | 0 | 2 | 100.00% 🟢 |
|
|
44
|
+
| src/webgpu/backend.rs | 70 | 26 | 96 | 72.92% 🟡 |
|
|
45
|
+
| src/webgpu/command.rs | 3 | 1 | 4 | 75.00% 🟡 |
|
|
46
|
+
| **Total** | **1104** | **542** | **1646** | **67.07% 🟡** |
|
|
42
47
|
|
|
43
48
|
## Top Missed Files
|
|
44
49
|
|
|
45
50
|
| File | Lines Missed | Illustrative Line | Coverage |
|
|
46
51
|
|---|---|---|---:|
|
|
47
|
-
| src/lib.rs |
|
|
48
|
-
| src/
|
|
49
|
-
| src/
|
|
50
|
-
| src/
|
|
52
|
+
| src/lib.rs | 224/538 | [1033] `/// Use a program.` | 58.36% 🟡 |
|
|
53
|
+
| src/naga_wasm_backend/expressions.rs | 109/174 | [1504] `for j in 0..count {` | 37.36% 🟠 |
|
|
54
|
+
| src/naga_wasm_backend/control_flow.rs | 40/70 | [218] `for (s, s_span) in body.span_iter() {` | 42.86% 🟠 |
|
|
55
|
+
| src/webgpu/backend.rs | 26/96 | [1404] `}` | 72.92% 🟡 |
|
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
|
package/demo.js
CHANGED
|
@@ -616,8 +616,8 @@ async function runTerminalAnimation(width, height, duration = 20000) {
|
|
|
616
616
|
firstFrame = false;
|
|
617
617
|
} else {
|
|
618
618
|
// Move cursor up to overwrite previous frame
|
|
619
|
-
process.stdout.write(
|
|
620
|
-
|
|
619
|
+
process.stdout.write(
|
|
620
|
+
`\x1b[${numLines}A` + output);
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
lastFrameTime = now;
|