@geometra/renderer-webgpu 1.0.1 → 1.1.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/README.md +27 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -13,6 +13,27 @@ Current status:
|
|
|
13
13
|
- API scaffold is implemented
|
|
14
14
|
- Full paint parity with `@geometra/renderer-canvas` is not implemented yet
|
|
15
15
|
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install @geometra/renderer-webgpu
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Current support
|
|
23
|
+
|
|
24
|
+
- WebGPU capability detection and async device/context initialization
|
|
25
|
+
- Geometry render integration for solid box backgrounds
|
|
26
|
+
- 2D clear-pass fallback before `init()` completes
|
|
27
|
+
- Optional `onFallbackNeeded(count)` callback when a tree includes unsupported paint features
|
|
28
|
+
|
|
29
|
+
Current gaps:
|
|
30
|
+
|
|
31
|
+
- text paint
|
|
32
|
+
- selection highlight
|
|
33
|
+
- focus/debug overlays
|
|
34
|
+
- gradients, shadows, and border-radius parity
|
|
35
|
+
- full canvas feature parity
|
|
36
|
+
|
|
16
37
|
## Usage
|
|
17
38
|
|
|
18
39
|
```ts
|
|
@@ -32,3 +53,9 @@ await createApp(
|
|
|
32
53
|
{ width: 400, height: 200 },
|
|
33
54
|
)
|
|
34
55
|
```
|
|
56
|
+
|
|
57
|
+
## Notes
|
|
58
|
+
|
|
59
|
+
- Call `await renderer.init()` before relying on GPU rendering. Until then, `render()` uses a predictable clear-pass fallback.
|
|
60
|
+
- The current implementation is best treated as an MVP backend for capability probes and early integration work, not a canvas replacement.
|
|
61
|
+
- For the current backend matrix, see [RENDERER_SUPPORT_MATRIX.md](https://github.com/razroo/geometra/blob/main/RENDERER_SUPPORT_MATRIX.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geometra/renderer-webgpu",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "WebGPU renderer scaffold for Geometra",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"check": "tsc --noEmit"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@geometra/core": "^1.0
|
|
36
|
+
"@geometra/core": "^1.1.0"
|
|
37
37
|
}
|
|
38
38
|
}
|