wgpu-kit 1.0.3 → 1.1.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/README.cn.md +3 -3
- package/README.md +56 -16
- package/dist/core/buffer.js +17 -5
- package/dist/core/codes.d.ts +35 -0
- package/dist/core/codes.js +34 -0
- package/dist/core/context.js +1 -1
- package/dist/core/errors.d.ts +18 -6
- package/dist/core/errors.js +28 -13
- package/dist/core/kernel.js +14 -11
- package/dist/core/layout.js +7 -6
- package/dist/core/pingpong.js +1 -1
- package/dist/core/raw.js +3 -3
- package/dist/media.js +3 -3
- package/dist/observe.js +2 -2
- package/dist/packs/grid/index.d.ts +39 -0
- package/dist/packs/grid/index.js +187 -0
- package/dist/packs/image/index.js +1 -1
- package/dist/packs/life/boids.js +7 -103
- package/dist/packs/particles/config.d.ts +2 -1
- package/dist/packs/particles/config.js +5 -5
- package/dist/packs/particles/grid.js +35 -46
- package/dist/packs/particles/index.js +23 -22
- package/dist/packs/particles/presets.js +1 -1
- package/package.json +30 -11
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wgpu-kit",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"description": "Creative-coding GPU toolkit for the browser. 200k-particle physics at 120fps in 5 lines of code. WebGPU compute without the boilerplate.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"keywords": [
|
|
@@ -25,31 +25,43 @@
|
|
|
25
25
|
},
|
|
26
26
|
"./particles": {
|
|
27
27
|
"types": "./dist/packs/particles/index.d.ts",
|
|
28
|
-
"import": "./dist/particles.js"
|
|
28
|
+
"import": "./dist/packs/particles/index.js"
|
|
29
29
|
},
|
|
30
30
|
"./three": {
|
|
31
31
|
"types": "./dist/interop/three.d.ts",
|
|
32
|
-
"import": "./dist/three.js"
|
|
32
|
+
"import": "./dist/interop/three.js"
|
|
33
33
|
},
|
|
34
34
|
"./life": {
|
|
35
35
|
"types": "./dist/packs/life/index.d.ts",
|
|
36
|
-
"import": "./dist/life.js"
|
|
36
|
+
"import": "./dist/packs/life/index.js"
|
|
37
37
|
},
|
|
38
38
|
"./react": {
|
|
39
39
|
"types": "./dist/react/index.d.ts",
|
|
40
|
-
"import": "./dist/react.js"
|
|
40
|
+
"import": "./dist/react/index.js"
|
|
41
41
|
},
|
|
42
42
|
"./fields": {
|
|
43
43
|
"types": "./dist/packs/fields/index.d.ts",
|
|
44
|
-
"import": "./dist/fields.js"
|
|
44
|
+
"import": "./dist/packs/fields/index.js"
|
|
45
45
|
},
|
|
46
46
|
"./image": {
|
|
47
47
|
"types": "./dist/packs/image/index.d.ts",
|
|
48
|
-
"import": "./dist/image.js"
|
|
48
|
+
"import": "./dist/packs/image/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./media": {
|
|
51
|
+
"types": "./dist/media.d.ts",
|
|
52
|
+
"import": "./dist/media.js"
|
|
53
|
+
},
|
|
54
|
+
"./observe": {
|
|
55
|
+
"types": "./dist/observe.d.ts",
|
|
56
|
+
"import": "./dist/observe.js"
|
|
49
57
|
},
|
|
50
58
|
"./vite": {
|
|
51
59
|
"types": "./dist/vite.d.ts",
|
|
52
60
|
"import": "./dist/vite.js"
|
|
61
|
+
},
|
|
62
|
+
"./grid": {
|
|
63
|
+
"types": "./dist/packs/grid/index.d.ts",
|
|
64
|
+
"import": "./dist/packs/grid/index.js"
|
|
53
65
|
}
|
|
54
66
|
},
|
|
55
67
|
"peerDependencies": {
|
|
@@ -64,8 +76,10 @@
|
|
|
64
76
|
"build:playground": "vite build playground",
|
|
65
77
|
"typecheck": "tsc --noEmit",
|
|
66
78
|
"test": "vitest run",
|
|
67
|
-
"bundle:tests": "esbuild tests/gpu/smoke.ts --bundle --format=esm --outfile=tests/gpu/smoke.bundle.js --log-level=warning && esbuild tests/gpu/bench.ts --bundle --format=esm --outfile=tests/gpu/bench.bundle.js --log-level=warning && esbuild tests/gpu/packages.ts --bundle --format=esm --outfile=tests/gpu/packages.bundle.js --log-level=warning",
|
|
68
|
-
"verify": "node scripts/verify.mjs"
|
|
79
|
+
"bundle:tests": "esbuild tests/gpu/smoke.ts --bundle --format=esm --outfile=tests/gpu/smoke.bundle.js --log-level=warning && esbuild tests/gpu/bench.ts --bundle --format=esm --outfile=tests/gpu/bench.bundle.js --log-level=warning && esbuild tests/gpu/packages.ts --bundle --format=esm --outfile=tests/gpu/packages.bundle.js --log-level=warning && esbuild tests/gpu/grid-debug.ts --bundle --format=esm --outfile=tests/gpu/grid-debug.bundle.js --log-level=warning",
|
|
80
|
+
"verify": "node scripts/verify.mjs",
|
|
81
|
+
"prepublishOnly": "npm run build && node scripts/audit-exports.mjs",
|
|
82
|
+
"bench": "node scripts/bench.mjs"
|
|
69
83
|
},
|
|
70
84
|
"devDependencies": {
|
|
71
85
|
"@types/node": "^24.0.0",
|
|
@@ -89,5 +103,10 @@
|
|
|
89
103
|
"bugs": {
|
|
90
104
|
"url": "https://github.com/nanfengw0w/wgpu-kit/issues"
|
|
91
105
|
},
|
|
92
|
-
"homepage": "https://github.com/nanfengw0w/wgpu-kit#readme"
|
|
106
|
+
"homepage": "https://github.com/nanfengw0w/wgpu-kit#readme",
|
|
107
|
+
"peerDependenciesMeta": {
|
|
108
|
+
"react": {
|
|
109
|
+
"optional": true
|
|
110
|
+
}
|
|
111
|
+
}
|
|
93
112
|
}
|