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 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 | 1 | 1 | 2 | 50.00% 🟡 |
12
- | src/decompiler/parser.rs | 16 | 2 | 18 | 88.89% 🟢 |
13
- | src/decompiler/simplifier.rs | 56 | 18 | 74 | 75.68% 🟡 |
14
- | src/error.rs | 7 | 15 | 22 | 31.82% 🟠 |
15
- | src/lib.rs | 308 | 196 | 504 | 61.11% 🟡 |
16
- | src/naga_wasm_backend/backend.rs | 54 | 1 | 55 | 98.18% 🟢 |
17
- | src/naga_wasm_backend/call_lowering.rs | 17 | 0 | 17 | 100.00% 🟢 |
18
- | src/naga_wasm_backend/control_flow.rs | 29 | 15 | 44 | 65.91% 🟡 |
19
- | src/naga_wasm_backend/debug/stub.rs | 21 | 0 | 21 | 100.00% 🟢 |
20
- | src/naga_wasm_backend/expressions.rs | 55 | 16 | 71 | 77.46% 🟡 |
21
- | src/naga_wasm_backend/function_abi.rs | 23 | 0 | 23 | 100.00% 🟢 |
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/output_layout.rs | 2 | 2 | 4 | 50.00% 🟡 |
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/framebuffer.rs | 2 | 0 | 2 | 100.00% 🟢 |
27
- | src/wasm_gl_emu/rasterizer.rs | 36 | 13 | 49 | 73.47% 🟡 |
28
- | src/webgl2_context/blend.rs | 2 | 1 | 3 | 66.67% 🟡 |
29
- | src/webgl2_context/buffers.rs | 18 | 1 | 19 | 94.74% 🟢 |
30
- | src/webgl2_context/drawing.rs | 32 | 6 | 38 | 84.21% 🟢 |
31
- | src/webgl2_context/framebuffers.rs | 10 | 0 | 10 | 100.00% 🟢 |
32
- | src/webgl2_context/registry.rs | 6 | 0 | 6 | 100.00% 🟢 |
33
- | src/webgl2_context/renderbuffers.rs | 12 | 0 | 12 | 100.00% 🟢 |
34
- | src/webgl2_context/shaders.rs | 109 | 14 | 123 | 88.62% 🟢 |
35
- | src/webgl2_context/state.rs | 21 | 1 | 22 | 95.45% 🟢 |
36
- | src/webgl2_context/textures.rs | 23 | 9 | 32 | 71.88% 🟡 |
37
- | src/webgl2_context/types.rs | 10 | 1 | 11 | 90.91% 🟢 |
38
- | src/webgl2_context/vaos.rs | 36 | 0 | 36 | 100.00% 🟢 |
39
- | src/webgpu/adapter.rs | 3 | 0 | 3 | 100.00% 🟢 |
40
- | src/webgpu/backend.rs | 25 | 25 | 50 | 50.00% 🟡 |
41
- | **Total** | **995** | **373** | **1368** | **72.73% 🟡** |
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 | 196/504 | [1040] `// ---- GLSL Decompiler Support (docs/11.b-decompile-theo...` | 61.11% 🟡 |
48
- | src/webgpu/backend.rs | 25/50 | [943] `}` | 50.00% 🟡 |
49
- | src/decompiler/lifter.rs | 21/38 | [455] `fn unary_op(&mut self, op: UnaryOp) {` | 44.74% 🟠 |
50
- | src/decompiler/simplifier.rs | 18/74 | [115] `let get_const = |id: &Id| egraph[*id].data.constant;` | 75.68% 🟡 |
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: SERVER SHUT DOWN 23:15:36
2
- > This debugging session has concluded.
1
+ # 👾 Daebug remote debugging REPL started 22:13:58
2
+ > Interactive debugging REPL sessions for live browser contexts
3
3
 
4
- The REPL server has been shut down. Total uptime was from 23:13:45 to 23:15:36.
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
- To begin a new debugging session:
7
+ ## Active Sessions
8
8
 
9
- ```
10
- npm start
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(`\x1b[${numLines}A`);
620
- process.stdout.write(output);
619
+ process.stdout.write(
620
+ `\x1b[${numLines}A` + output);
621
621
  }
622
622
 
623
623
  lastFrameTime = now;