@plasius/gpu-shader 0.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.
@@ -0,0 +1,545 @@
1
+ {
2
+ "contractVersion": "1.0.0",
3
+ "matrixId": "stable-webgpu",
4
+ "version": "2026-07-13",
5
+ "policy": {
6
+ "coverage": "all-cells-required",
7
+ "requiredPhysicalCellCount": 15,
8
+ "requiredBlockingCellCount": 16,
9
+ "unavailable": "fail",
10
+ "skipped": "fail",
11
+ "timeout": "fail",
12
+ "deviceLoss": "fail"
13
+ },
14
+ "cells": [
15
+ {
16
+ "cellId": "android-adreno-chrome-vulkan",
17
+ "blocking": true,
18
+ "countsTowardStableCoverage": true,
19
+ "runnerLabels": [
20
+ "self-hosted",
21
+ "Linux",
22
+ "X64",
23
+ "shader-validation",
24
+ "device-controller",
25
+ "physical-gpu",
26
+ "android-adreno",
27
+ "vulkan"
28
+ ],
29
+ "browser": {
30
+ "name": "chrome",
31
+ "channel": "stable"
32
+ },
33
+ "os": {
34
+ "name": "android",
35
+ "versionRequirement": { "kind": "minimum-major", "value": 12 },
36
+ "architecture": "arm64"
37
+ },
38
+ "adapter": {
39
+ "kind": "physical",
40
+ "vendor": "qualcomm",
41
+ "family": "adreno",
42
+ "backend": "vulkan"
43
+ },
44
+ "automation": {
45
+ "kind": "playwright"
46
+ },
47
+ "timeoutMs": 900000
48
+ },
49
+ {
50
+ "cellId": "android-mali-chrome-vulkan",
51
+ "blocking": true,
52
+ "countsTowardStableCoverage": true,
53
+ "runnerLabels": [
54
+ "self-hosted",
55
+ "Linux",
56
+ "X64",
57
+ "shader-validation",
58
+ "device-controller",
59
+ "physical-gpu",
60
+ "android-mali",
61
+ "vulkan"
62
+ ],
63
+ "browser": {
64
+ "name": "chrome",
65
+ "channel": "stable"
66
+ },
67
+ "os": {
68
+ "name": "android",
69
+ "versionRequirement": { "kind": "minimum-major", "value": 12 },
70
+ "architecture": "arm64"
71
+ },
72
+ "adapter": {
73
+ "kind": "physical",
74
+ "vendor": "arm",
75
+ "family": "mali",
76
+ "backend": "vulkan"
77
+ },
78
+ "automation": {
79
+ "kind": "playwright"
80
+ },
81
+ "timeoutMs": 900000
82
+ },
83
+ {
84
+ "cellId": "chromeos-arm-chrome-vulkan",
85
+ "blocking": true,
86
+ "countsTowardStableCoverage": true,
87
+ "runnerLabels": [
88
+ "self-hosted",
89
+ "Linux",
90
+ "X64",
91
+ "shader-validation",
92
+ "device-controller",
93
+ "physical-gpu",
94
+ "chromeos-arm",
95
+ "vulkan"
96
+ ],
97
+ "browser": {
98
+ "name": "chrome",
99
+ "channel": "stable"
100
+ },
101
+ "os": {
102
+ "name": "chromeos",
103
+ "versionRequirement": { "kind": "stable-channel", "channel": "stable" },
104
+ "architecture": "arm64"
105
+ },
106
+ "adapter": {
107
+ "kind": "physical",
108
+ "vendor": "arm",
109
+ "family": "qualified-arm",
110
+ "backend": "vulkan"
111
+ },
112
+ "automation": {
113
+ "kind": "webdriver"
114
+ },
115
+ "timeoutMs": 900000
116
+ },
117
+ {
118
+ "cellId": "chromeos-intel-chrome-vulkan",
119
+ "blocking": true,
120
+ "countsTowardStableCoverage": true,
121
+ "runnerLabels": [
122
+ "self-hosted",
123
+ "Linux",
124
+ "X64",
125
+ "shader-validation",
126
+ "device-controller",
127
+ "physical-gpu",
128
+ "chromeos-intel",
129
+ "vulkan"
130
+ ],
131
+ "browser": {
132
+ "name": "chrome",
133
+ "channel": "stable"
134
+ },
135
+ "os": {
136
+ "name": "chromeos",
137
+ "versionRequirement": { "kind": "stable-channel", "channel": "stable" },
138
+ "architecture": "x64"
139
+ },
140
+ "adapter": {
141
+ "kind": "physical",
142
+ "vendor": "intel",
143
+ "family": "qualified-intel",
144
+ "backend": "vulkan"
145
+ },
146
+ "automation": {
147
+ "kind": "webdriver"
148
+ },
149
+ "timeoutMs": 900000
150
+ },
151
+ {
152
+ "cellId": "ios-iphone-safari-metal",
153
+ "blocking": true,
154
+ "countsTowardStableCoverage": true,
155
+ "runnerLabels": [
156
+ "self-hosted",
157
+ "macOS",
158
+ "ARM64",
159
+ "shader-validation",
160
+ "device-controller",
161
+ "physical-gpu",
162
+ "ios-safari",
163
+ "metal"
164
+ ],
165
+ "browser": {
166
+ "name": "safari",
167
+ "channel": "stable"
168
+ },
169
+ "os": {
170
+ "name": "ios",
171
+ "versionRequirement": { "kind": "major", "value": 26 },
172
+ "architecture": "arm64"
173
+ },
174
+ "adapter": {
175
+ "kind": "physical",
176
+ "vendor": "apple",
177
+ "family": "iphone",
178
+ "backend": "metal"
179
+ },
180
+ "automation": {
181
+ "kind": "safari-webdriver"
182
+ },
183
+ "timeoutMs": 900000
184
+ },
185
+ {
186
+ "cellId": "ipados-ipad-safari-metal",
187
+ "blocking": true,
188
+ "countsTowardStableCoverage": true,
189
+ "runnerLabels": [
190
+ "self-hosted",
191
+ "macOS",
192
+ "ARM64",
193
+ "shader-validation",
194
+ "device-controller",
195
+ "physical-gpu",
196
+ "ipados-safari",
197
+ "metal"
198
+ ],
199
+ "browser": {
200
+ "name": "safari",
201
+ "channel": "stable"
202
+ },
203
+ "os": {
204
+ "name": "ipados",
205
+ "versionRequirement": { "kind": "major", "value": 26 },
206
+ "architecture": "arm64"
207
+ },
208
+ "adapter": {
209
+ "kind": "physical",
210
+ "vendor": "apple",
211
+ "family": "ipad",
212
+ "backend": "metal"
213
+ },
214
+ "automation": {
215
+ "kind": "safari-webdriver"
216
+ },
217
+ "timeoutMs": 900000
218
+ },
219
+ {
220
+ "cellId": "macos-apple-chrome-metal",
221
+ "blocking": true,
222
+ "countsTowardStableCoverage": true,
223
+ "runnerLabels": [
224
+ "self-hosted",
225
+ "macOS",
226
+ "ARM64",
227
+ "shader-validation",
228
+ "physical-gpu",
229
+ "gpu-apple",
230
+ "metal"
231
+ ],
232
+ "browser": {
233
+ "name": "chrome",
234
+ "channel": "stable"
235
+ },
236
+ "os": {
237
+ "name": "macos",
238
+ "versionRequirement": { "kind": "major", "value": 26 },
239
+ "architecture": "arm64"
240
+ },
241
+ "adapter": {
242
+ "kind": "physical",
243
+ "vendor": "apple",
244
+ "family": "apple-silicon",
245
+ "backend": "metal"
246
+ },
247
+ "automation": {
248
+ "kind": "playwright"
249
+ },
250
+ "timeoutMs": 600000
251
+ },
252
+ {
253
+ "cellId": "macos-apple-firefox-metal",
254
+ "blocking": true,
255
+ "countsTowardStableCoverage": true,
256
+ "runnerLabels": [
257
+ "self-hosted",
258
+ "macOS",
259
+ "ARM64",
260
+ "shader-validation",
261
+ "physical-gpu",
262
+ "gpu-apple",
263
+ "metal"
264
+ ],
265
+ "browser": {
266
+ "name": "firefox",
267
+ "channel": "stable"
268
+ },
269
+ "os": {
270
+ "name": "macos",
271
+ "versionRequirement": { "kind": "major", "value": 26 },
272
+ "architecture": "arm64"
273
+ },
274
+ "adapter": {
275
+ "kind": "physical",
276
+ "vendor": "apple",
277
+ "family": "apple-silicon",
278
+ "backend": "metal"
279
+ },
280
+ "automation": {
281
+ "kind": "webdriver"
282
+ },
283
+ "timeoutMs": 600000
284
+ },
285
+ {
286
+ "cellId": "macos-apple-safari-metal",
287
+ "blocking": true,
288
+ "countsTowardStableCoverage": true,
289
+ "runnerLabels": [
290
+ "self-hosted",
291
+ "macOS",
292
+ "ARM64",
293
+ "shader-validation",
294
+ "physical-gpu",
295
+ "gpu-apple",
296
+ "metal"
297
+ ],
298
+ "browser": {
299
+ "name": "safari",
300
+ "channel": "stable"
301
+ },
302
+ "os": {
303
+ "name": "macos",
304
+ "versionRequirement": { "kind": "major", "value": 26 },
305
+ "architecture": "arm64"
306
+ },
307
+ "adapter": {
308
+ "kind": "physical",
309
+ "vendor": "apple",
310
+ "family": "apple-silicon",
311
+ "backend": "metal"
312
+ },
313
+ "automation": {
314
+ "kind": "safari-webdriver"
315
+ },
316
+ "timeoutMs": 600000
317
+ },
318
+ {
319
+ "cellId": "swiftshader.chromium.ubuntu-x64",
320
+ "blocking": true,
321
+ "countsTowardStableCoverage": false,
322
+ "runnerLabels": [
323
+ "ubuntu-24.04"
324
+ ],
325
+ "browser": {
326
+ "name": "chromium",
327
+ "channel": "playwright-bundled"
328
+ },
329
+ "os": {
330
+ "name": "ubuntu",
331
+ "versionRequirement": { "kind": "exact", "value": "24.04" },
332
+ "architecture": "x64"
333
+ },
334
+ "adapter": {
335
+ "kind": "software",
336
+ "vendor": "google",
337
+ "family": "swiftshader",
338
+ "backend": "swiftshader"
339
+ },
340
+ "automation": {
341
+ "kind": "playwright"
342
+ },
343
+ "timeoutMs": 300000
344
+ },
345
+ {
346
+ "cellId": "ubuntu-intel-chrome-vulkan",
347
+ "blocking": true,
348
+ "countsTowardStableCoverage": true,
349
+ "runnerLabels": [
350
+ "self-hosted",
351
+ "Linux",
352
+ "X64",
353
+ "shader-validation",
354
+ "physical-gpu",
355
+ "gpu-intel",
356
+ "vulkan"
357
+ ],
358
+ "browser": {
359
+ "name": "chrome",
360
+ "channel": "stable"
361
+ },
362
+ "os": {
363
+ "name": "ubuntu",
364
+ "versionRequirement": { "kind": "exact", "value": "24.04" },
365
+ "architecture": "x64"
366
+ },
367
+ "adapter": {
368
+ "kind": "physical",
369
+ "vendor": "intel",
370
+ "family": "qualified-intel",
371
+ "backend": "vulkan"
372
+ },
373
+ "automation": {
374
+ "kind": "playwright"
375
+ },
376
+ "timeoutMs": 600000
377
+ },
378
+ {
379
+ "cellId": "ubuntu-nvidia-chrome-vulkan",
380
+ "blocking": true,
381
+ "countsTowardStableCoverage": true,
382
+ "runnerLabels": [
383
+ "self-hosted",
384
+ "Linux",
385
+ "X64",
386
+ "shader-validation",
387
+ "physical-gpu",
388
+ "gpu-nvidia",
389
+ "vulkan"
390
+ ],
391
+ "browser": {
392
+ "name": "chrome",
393
+ "channel": "stable"
394
+ },
395
+ "os": {
396
+ "name": "ubuntu",
397
+ "versionRequirement": { "kind": "exact", "value": "24.04" },
398
+ "architecture": "x64"
399
+ },
400
+ "adapter": {
401
+ "kind": "physical",
402
+ "vendor": "nvidia",
403
+ "family": "qualified-nvidia",
404
+ "backend": "vulkan"
405
+ },
406
+ "automation": {
407
+ "kind": "playwright"
408
+ },
409
+ "timeoutMs": 600000
410
+ },
411
+ {
412
+ "cellId": "visionos-safari-metal",
413
+ "blocking": true,
414
+ "countsTowardStableCoverage": true,
415
+ "runnerLabels": [
416
+ "self-hosted",
417
+ "macOS",
418
+ "ARM64",
419
+ "shader-validation",
420
+ "device-controller",
421
+ "physical-gpu",
422
+ "visionos-safari",
423
+ "metal"
424
+ ],
425
+ "browser": {
426
+ "name": "safari",
427
+ "channel": "stable"
428
+ },
429
+ "os": {
430
+ "name": "visionos",
431
+ "versionRequirement": { "kind": "major", "value": 26 },
432
+ "architecture": "arm64"
433
+ },
434
+ "adapter": {
435
+ "kind": "physical",
436
+ "vendor": "apple",
437
+ "family": "vision-pro",
438
+ "backend": "metal"
439
+ },
440
+ "automation": {
441
+ "kind": "safari-webdriver"
442
+ },
443
+ "timeoutMs": 900000
444
+ },
445
+ {
446
+ "cellId": "win11-amd-firefox-d3d12",
447
+ "blocking": true,
448
+ "countsTowardStableCoverage": true,
449
+ "runnerLabels": [
450
+ "self-hosted",
451
+ "Windows",
452
+ "X64",
453
+ "shader-validation",
454
+ "physical-gpu",
455
+ "gpu-amd",
456
+ "d3d12"
457
+ ],
458
+ "browser": {
459
+ "name": "firefox",
460
+ "channel": "stable"
461
+ },
462
+ "os": {
463
+ "name": "windows",
464
+ "versionRequirement": { "kind": "major", "value": 11 },
465
+ "architecture": "x64"
466
+ },
467
+ "adapter": {
468
+ "kind": "physical",
469
+ "vendor": "amd",
470
+ "family": "qualified-amd",
471
+ "backend": "d3d12"
472
+ },
473
+ "automation": {
474
+ "kind": "webdriver"
475
+ },
476
+ "timeoutMs": 600000
477
+ },
478
+ {
479
+ "cellId": "win11-intel-chrome-d3d12",
480
+ "blocking": true,
481
+ "countsTowardStableCoverage": true,
482
+ "runnerLabels": [
483
+ "self-hosted",
484
+ "Windows",
485
+ "X64",
486
+ "shader-validation",
487
+ "physical-gpu",
488
+ "gpu-intel",
489
+ "d3d12"
490
+ ],
491
+ "browser": {
492
+ "name": "chrome",
493
+ "channel": "stable"
494
+ },
495
+ "os": {
496
+ "name": "windows",
497
+ "versionRequirement": { "kind": "major", "value": 11 },
498
+ "architecture": "x64"
499
+ },
500
+ "adapter": {
501
+ "kind": "physical",
502
+ "vendor": "intel",
503
+ "family": "qualified-intel",
504
+ "backend": "d3d12"
505
+ },
506
+ "automation": {
507
+ "kind": "playwright"
508
+ },
509
+ "timeoutMs": 600000
510
+ },
511
+ {
512
+ "cellId": "win11-nvidia-edge-d3d12",
513
+ "blocking": true,
514
+ "countsTowardStableCoverage": true,
515
+ "runnerLabels": [
516
+ "self-hosted",
517
+ "Windows",
518
+ "X64",
519
+ "shader-validation",
520
+ "physical-gpu",
521
+ "gpu-nvidia",
522
+ "d3d12"
523
+ ],
524
+ "browser": {
525
+ "name": "edge",
526
+ "channel": "stable"
527
+ },
528
+ "os": {
529
+ "name": "windows",
530
+ "versionRequirement": { "kind": "major", "value": 11 },
531
+ "architecture": "x64"
532
+ },
533
+ "adapter": {
534
+ "kind": "physical",
535
+ "vendor": "nvidia",
536
+ "family": "qualified-nvidia",
537
+ "backend": "d3d12"
538
+ },
539
+ "automation": {
540
+ "kind": "playwright"
541
+ },
542
+ "timeoutMs": 600000
543
+ }
544
+ ]
545
+ }
package/package.json ADDED
@@ -0,0 +1,100 @@
1
+ {
2
+ "name": "@plasius/gpu-shader",
3
+ "version": "0.1.0",
4
+ "description": "Reflection-first WebGPU WGSL interfaces, CPU codecs, compatibility validation, style profiles, and qualification tooling",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "bin": {
11
+ "plasius-gpu-shader": "./dist/cli.js"
12
+ },
13
+ "files": [
14
+ "dist",
15
+ "matrices"
16
+ ],
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js",
21
+ "require": "./dist/index.cjs"
22
+ },
23
+ "./node": {
24
+ "types": "./dist/node.d.ts",
25
+ "import": "./dist/node.js",
26
+ "require": "./dist/node.cjs"
27
+ },
28
+ "./testing": {
29
+ "types": "./dist/testing.d.ts",
30
+ "import": "./dist/testing.js",
31
+ "require": "./dist/testing.cjs"
32
+ },
33
+ "./package.json": "./package.json"
34
+ },
35
+ "scripts": {
36
+ "build": "tsup",
37
+ "clean": "rimraf dist coverage .npm-cache-packcheck",
38
+ "test": "vitest run",
39
+ "test:watch": "vitest",
40
+ "test:coverage": "vitest run --coverage",
41
+ "typecheck": "tsc --noEmit",
42
+ "lint": "eslint . --max-warnings=0",
43
+ "audit:eslint": "eslint . --max-warnings=0",
44
+ "audit:deps": "npm ls --all --omit=optional --omit=peer",
45
+ "audit:npm": "npm audit --audit-level=high --omit=dev",
46
+ "audit:test": "vitest run --coverage",
47
+ "pack:check": "node scripts/verify-public-package.cjs",
48
+ "harness:fingerprint": "node scripts/fingerprint-trusted-harness.cjs .",
49
+ "shader:matrix": "npm run build && node dist/cli.js validate-matrix --matrix matrices/stable-webgpu-2026-07-13.json",
50
+ "prepare": "npm run build",
51
+ "prepublishOnly": "npm run build && npm run pack:check"
52
+ },
53
+ "keywords": [
54
+ "webgpu",
55
+ "wgsl",
56
+ "shader",
57
+ "reflection",
58
+ "gpu",
59
+ "abi",
60
+ "plasius"
61
+ ],
62
+ "author": "Plasius LTD <development@plasius.co.uk>",
63
+ "license": "Apache-2.0",
64
+ "repository": {
65
+ "type": "git",
66
+ "url": "git+https://github.com/Plasius-LTD/gpu-shader.git"
67
+ },
68
+ "bugs": {
69
+ "url": "https://github.com/Plasius-LTD/gpu-shader/issues"
70
+ },
71
+ "homepage": "https://github.com/Plasius-LTD/gpu-shader#readme",
72
+ "dependencies": {
73
+ "wgsl_reflect": "1.5.0"
74
+ },
75
+ "optionalDependencies": {
76
+ "playwright-core": "1.61.1"
77
+ },
78
+ "devDependencies": {
79
+ "@eslint/js": "^10.0.1",
80
+ "@types/node": "^26.0.1",
81
+ "@typescript-eslint/eslint-plugin": "^8.59.3",
82
+ "@typescript-eslint/parser": "^8.59.3",
83
+ "@vitest/coverage-v8": "^4.1.6",
84
+ "eslint": "^10.3.0",
85
+ "globals": "^17.6.0",
86
+ "rimraf": "^6.1.3",
87
+ "tsup": "^8.5.1",
88
+ "typescript": "^6.0.3",
89
+ "vitest": "^4.1.6"
90
+ },
91
+ "publishConfig": {
92
+ "access": "public"
93
+ },
94
+ "overrides": {
95
+ "minimatch": "^10.2.1"
96
+ },
97
+ "engines": {
98
+ "node": ">=24"
99
+ }
100
+ }