@motion-core/motion-gpu 0.4.0 → 0.4.2
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/dist/advanced.d.ts +1 -0
- package/dist/advanced.d.ts.map +1 -0
- package/dist/advanced.js +12 -6
- package/dist/core/advanced.d.ts +1 -0
- package/dist/core/advanced.d.ts.map +1 -0
- package/dist/core/advanced.js +12 -5
- package/dist/core/current-value.d.ts +1 -0
- package/dist/core/current-value.d.ts.map +1 -0
- package/dist/core/current-value.js +35 -34
- package/dist/core/current-value.js.map +1 -0
- package/dist/core/error-diagnostics.d.ts +1 -0
- package/dist/core/error-diagnostics.d.ts.map +1 -0
- package/dist/core/error-diagnostics.js +70 -137
- package/dist/core/error-diagnostics.js.map +1 -0
- package/dist/core/error-report.d.ts +1 -0
- package/dist/core/error-report.d.ts.map +1 -0
- package/dist/core/error-report.js +184 -233
- package/dist/core/error-report.js.map +1 -0
- package/dist/core/frame-registry.d.ts +1 -0
- package/dist/core/frame-registry.d.ts.map +1 -0
- package/dist/core/frame-registry.js +546 -662
- package/dist/core/frame-registry.js.map +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +11 -12
- package/dist/core/material-preprocess.d.ts +1 -0
- package/dist/core/material-preprocess.d.ts.map +1 -0
- package/dist/core/material-preprocess.js +128 -151
- package/dist/core/material-preprocess.js.map +1 -0
- package/dist/core/material.d.ts +1 -0
- package/dist/core/material.d.ts.map +1 -0
- package/dist/core/material.js +263 -317
- package/dist/core/material.js.map +1 -0
- package/dist/core/recompile-policy.d.ts +1 -0
- package/dist/core/recompile-policy.d.ts.map +1 -0
- package/dist/core/recompile-policy.js +18 -13
- package/dist/core/recompile-policy.js.map +1 -0
- package/dist/core/render-graph.d.ts +1 -0
- package/dist/core/render-graph.d.ts.map +1 -0
- package/dist/core/render-graph.js +61 -68
- package/dist/core/render-graph.js.map +1 -0
- package/dist/core/render-targets.d.ts +2 -0
- package/dist/core/render-targets.d.ts.map +1 -0
- package/dist/core/render-targets.js +52 -53
- package/dist/core/render-targets.js.map +1 -0
- package/dist/core/renderer.d.ts +1 -0
- package/dist/core/renderer.d.ts.map +1 -0
- package/dist/core/renderer.js +942 -1081
- package/dist/core/renderer.js.map +1 -0
- package/dist/core/runtime-loop.d.ts +2 -0
- package/dist/core/runtime-loop.d.ts.map +1 -0
- package/dist/core/runtime-loop.js +305 -362
- package/dist/core/runtime-loop.js.map +1 -0
- package/dist/core/scheduler-helpers.d.ts +1 -0
- package/dist/core/scheduler-helpers.d.ts.map +1 -0
- package/dist/core/scheduler-helpers.js +52 -51
- package/dist/core/scheduler-helpers.js.map +1 -0
- package/dist/core/shader.d.ts +1 -0
- package/dist/core/shader.d.ts.map +1 -0
- package/dist/core/shader.js +92 -117
- package/dist/core/shader.js.map +1 -0
- package/dist/core/texture-loader.d.ts +1 -0
- package/dist/core/texture-loader.d.ts.map +1 -0
- package/dist/core/texture-loader.js +205 -273
- package/dist/core/texture-loader.js.map +1 -0
- package/dist/core/textures.d.ts +2 -0
- package/dist/core/textures.d.ts.map +1 -0
- package/dist/core/textures.js +106 -116
- package/dist/core/textures.js.map +1 -0
- package/dist/core/types.d.ts +2 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +0 -4
- package/dist/core/uniforms.d.ts +1 -0
- package/dist/core/uniforms.d.ts.map +1 -0
- package/dist/core/uniforms.js +170 -191
- package/dist/core/uniforms.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -6
- package/dist/passes/BlitPass.d.ts +1 -0
- package/dist/passes/BlitPass.d.ts.map +1 -0
- package/dist/passes/BlitPass.js +23 -18
- package/dist/passes/BlitPass.js.map +1 -0
- package/dist/passes/CopyPass.d.ts +2 -0
- package/dist/passes/CopyPass.d.ts.map +1 -0
- package/dist/passes/CopyPass.js +58 -52
- package/dist/passes/CopyPass.js.map +1 -0
- package/dist/passes/FullscreenPass.d.ts +2 -0
- package/dist/passes/FullscreenPass.d.ts.map +1 -0
- package/dist/passes/FullscreenPass.js +127 -130
- package/dist/passes/FullscreenPass.js.map +1 -0
- package/dist/passes/ShaderPass.d.ts +1 -0
- package/dist/passes/ShaderPass.d.ts.map +1 -0
- package/dist/passes/ShaderPass.js +40 -37
- package/dist/passes/ShaderPass.js.map +1 -0
- package/dist/passes/index.d.ts +1 -0
- package/dist/passes/index.d.ts.map +1 -0
- package/dist/passes/index.js +4 -3
- package/dist/react/FragCanvas.d.ts +2 -0
- package/dist/react/FragCanvas.d.ts.map +1 -0
- package/dist/react/FragCanvas.js +234 -211
- package/dist/react/FragCanvas.js.map +1 -0
- package/dist/react/MotionGPUErrorOverlay.d.ts +1 -0
- package/dist/react/MotionGPUErrorOverlay.d.ts.map +1 -0
- package/dist/react/MotionGPUErrorOverlay.js +384 -48
- package/dist/react/MotionGPUErrorOverlay.js.map +1 -0
- package/dist/react/Portal.d.ts +1 -0
- package/dist/react/Portal.d.ts.map +1 -0
- package/dist/react/Portal.js +18 -21
- package/dist/react/Portal.js.map +1 -0
- package/dist/react/advanced.d.ts +1 -0
- package/dist/react/advanced.d.ts.map +1 -0
- package/dist/react/advanced.js +12 -6
- package/dist/react/frame-context.d.ts +1 -0
- package/dist/react/frame-context.d.ts.map +1 -0
- package/dist/react/frame-context.js +88 -94
- package/dist/react/frame-context.js.map +1 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +10 -9
- package/dist/react/motiongpu-context.d.ts +1 -0
- package/dist/react/motiongpu-context.d.ts.map +1 -0
- package/dist/react/motiongpu-context.js +18 -15
- package/dist/react/motiongpu-context.js.map +1 -0
- package/dist/react/use-motiongpu-user-context.d.ts +1 -0
- package/dist/react/use-motiongpu-user-context.d.ts.map +1 -0
- package/dist/react/use-motiongpu-user-context.js +83 -82
- package/dist/react/use-motiongpu-user-context.js.map +1 -0
- package/dist/react/use-texture.d.ts +1 -0
- package/dist/react/use-texture.d.ts.map +1 -0
- package/dist/react/use-texture.js +132 -152
- package/dist/react/use-texture.js.map +1 -0
- package/dist/svelte/FragCanvas.svelte.d.ts +2 -0
- package/dist/svelte/FragCanvas.svelte.d.ts.map +1 -0
- package/dist/svelte/MotionGPUErrorOverlay.svelte +17 -20
- package/dist/svelte/MotionGPUErrorOverlay.svelte.d.ts +1 -0
- package/dist/svelte/MotionGPUErrorOverlay.svelte.d.ts.map +1 -0
- package/dist/svelte/Portal.svelte.d.ts +1 -0
- package/dist/svelte/Portal.svelte.d.ts.map +1 -0
- package/dist/svelte/advanced.d.ts +1 -0
- package/dist/svelte/advanced.d.ts.map +1 -0
- package/dist/svelte/advanced.js +11 -6
- package/dist/svelte/frame-context.d.ts +1 -0
- package/dist/svelte/frame-context.d.ts.map +1 -0
- package/dist/svelte/frame-context.js +27 -27
- package/dist/svelte/frame-context.js.map +1 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.d.ts.map +1 -0
- package/dist/svelte/index.js +10 -9
- package/dist/svelte/motiongpu-context.d.ts +1 -0
- package/dist/svelte/motiongpu-context.d.ts.map +1 -0
- package/dist/svelte/motiongpu-context.js +24 -21
- package/dist/svelte/motiongpu-context.js.map +1 -0
- package/dist/svelte/use-motiongpu-user-context.d.ts +1 -0
- package/dist/svelte/use-motiongpu-user-context.d.ts.map +1 -0
- package/dist/svelte/use-motiongpu-user-context.js +69 -70
- package/dist/svelte/use-motiongpu-user-context.js.map +1 -0
- package/dist/svelte/use-texture.d.ts +1 -0
- package/dist/svelte/use-texture.d.ts.map +1 -0
- package/dist/svelte/use-texture.js +125 -147
- package/dist/svelte/use-texture.js.map +1 -0
- package/package.json +15 -7
- package/src/lib/advanced.ts +6 -0
- package/src/lib/core/advanced.ts +12 -0
- package/src/lib/core/current-value.ts +64 -0
- package/src/lib/core/error-diagnostics.ts +236 -0
- package/src/lib/core/error-report.ts +406 -0
- package/src/lib/core/frame-registry.ts +1189 -0
- package/src/lib/core/index.ts +77 -0
- package/src/lib/core/material-preprocess.ts +284 -0
- package/src/lib/core/material.ts +667 -0
- package/src/lib/core/recompile-policy.ts +31 -0
- package/src/lib/core/render-graph.ts +143 -0
- package/src/lib/core/render-targets.ts +107 -0
- package/src/lib/core/renderer.ts +1547 -0
- package/src/lib/core/runtime-loop.ts +458 -0
- package/src/lib/core/scheduler-helpers.ts +136 -0
- package/src/lib/core/shader.ts +258 -0
- package/src/lib/core/texture-loader.ts +476 -0
- package/src/lib/core/textures.ts +235 -0
- package/src/lib/core/types.ts +582 -0
- package/src/lib/core/uniforms.ts +282 -0
- package/src/lib/index.ts +6 -0
- package/src/lib/passes/BlitPass.ts +54 -0
- package/src/lib/passes/CopyPass.ts +80 -0
- package/src/lib/passes/FullscreenPass.ts +173 -0
- package/src/lib/passes/ShaderPass.ts +88 -0
- package/src/lib/passes/index.ts +3 -0
- package/src/lib/react/MotionGPUErrorOverlay.tsx +392 -0
- package/src/lib/react/advanced.ts +36 -0
- package/src/lib/react/frame-context.ts +169 -0
- package/src/lib/react/index.ts +51 -0
- package/src/lib/react/motiongpu-context.ts +88 -0
- package/src/lib/react/use-motiongpu-user-context.ts +186 -0
- package/src/lib/react/use-texture.ts +233 -0
- package/src/lib/svelte/FragCanvas.svelte +249 -0
- package/src/lib/svelte/MotionGPUErrorOverlay.svelte +382 -0
- package/src/lib/svelte/Portal.svelte +31 -0
- package/src/lib/svelte/advanced.ts +32 -0
- package/src/lib/svelte/frame-context.ts +87 -0
- package/src/lib/svelte/index.ts +51 -0
- package/src/lib/svelte/motiongpu-context.ts +97 -0
- package/src/lib/svelte/use-motiongpu-user-context.ts +145 -0
- package/src/lib/svelte/use-texture.ts +232 -0
- package/dist/react/MotionGPUErrorOverlay.tsx +0 -129
- /package/{dist → src/lib}/react/FragCanvas.tsx +0 -0
- /package/{dist → src/lib}/react/Portal.tsx +0 -0
package/dist/advanced.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/lib/advanced.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,oBAAoB,CAAC"}
|
package/dist/advanced.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { defineMaterial, resolveMaterial } from "./core/material.js";
|
|
2
|
+
import { toMotionGPUErrorReport } from "./core/error-report.js";
|
|
3
|
+
import { createCurrentWritable } from "./core/current-value.js";
|
|
4
|
+
import { createFrameRegistry } from "./core/frame-registry.js";
|
|
5
|
+
import { createMotionGPURuntimeLoop } from "./core/runtime-loop.js";
|
|
6
|
+
import { loadTexturesFromUrls } from "./core/texture-loader.js";
|
|
7
|
+
import { BlitPass } from "./passes/BlitPass.js";
|
|
8
|
+
import { CopyPass } from "./passes/CopyPass.js";
|
|
9
|
+
import { ShaderPass } from "./passes/ShaderPass.js";
|
|
10
|
+
import { applySchedulerPreset, captureSchedulerDebugSnapshot } from "./core/scheduler-helpers.js";
|
|
11
|
+
import "./core/advanced.js";
|
|
12
|
+
export { BlitPass, CopyPass, ShaderPass, applySchedulerPreset, captureSchedulerDebugSnapshot, createCurrentWritable, createFrameRegistry, createMotionGPURuntimeLoop, defineMaterial, loadTexturesFromUrls, resolveMaterial, toMotionGPUErrorReport };
|
package/dist/core/advanced.d.ts
CHANGED
|
@@ -4,3 +4,4 @@
|
|
|
4
4
|
export * from './index.js';
|
|
5
5
|
export { applySchedulerPreset, captureSchedulerDebugSnapshot } from './scheduler-helpers.js';
|
|
6
6
|
export type { ApplySchedulerPresetOptions, MotionGPUScheduler, SchedulerDebugSnapshot, SchedulerPreset, SchedulerPresetConfig } from './scheduler-helpers.js';
|
|
7
|
+
//# sourceMappingURL=advanced.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../../src/lib/core/advanced.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAC7F,YAAY,EACX,2BAA2B,EAC3B,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,qBAAqB,EACrB,MAAM,wBAAwB,CAAC"}
|
package/dist/core/advanced.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { defineMaterial, resolveMaterial } from "./material.js";
|
|
2
|
+
import { toMotionGPUErrorReport } from "./error-report.js";
|
|
3
|
+
import { createCurrentWritable } from "./current-value.js";
|
|
4
|
+
import { createFrameRegistry } from "./frame-registry.js";
|
|
5
|
+
import { createMotionGPURuntimeLoop } from "./runtime-loop.js";
|
|
6
|
+
import { loadTexturesFromUrls } from "./texture-loader.js";
|
|
7
|
+
import { BlitPass } from "../passes/BlitPass.js";
|
|
8
|
+
import { CopyPass } from "../passes/CopyPass.js";
|
|
9
|
+
import { ShaderPass } from "../passes/ShaderPass.js";
|
|
10
|
+
import "./index.js";
|
|
11
|
+
import { applySchedulerPreset, captureSchedulerDebugSnapshot } from "./scheduler-helpers.js";
|
|
12
|
+
export { BlitPass, CopyPass, ShaderPass, applySchedulerPreset, captureSchedulerDebugSnapshot, createCurrentWritable, createFrameRegistry, createMotionGPURuntimeLoop, defineMaterial, loadTexturesFromUrls, resolveMaterial, toMotionGPUErrorReport };
|
|
@@ -21,3 +21,4 @@ export interface CurrentWritable<T> extends CurrentReadable<T> {
|
|
|
21
21
|
* Creates a writable value with immediate subscription semantics.
|
|
22
22
|
*/
|
|
23
23
|
export declare function createCurrentWritable<T>(initialValue: T, onChange?: (value: T) => void): CurrentWritable<T>;
|
|
24
|
+
//# sourceMappingURL=current-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"current-value.d.ts","sourceRoot":"","sources":["../../src/lib/core/current-value.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC;IAC9B,SAAS,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,KAAK,MAAM,IAAI,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;IAC1D,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IAC7D,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IACxB,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;CAC3C;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACtC,YAAY,EAAE,CAAC,EACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,GAC3B,eAAe,CAAC,CAAC,CAAC,CAmCpB"}
|
|
@@ -1,36 +1,37 @@
|
|
|
1
|
+
//#region src/lib/core/current-value.ts
|
|
1
2
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
update(updater) {
|
|
33
|
-
set(updater(current));
|
|
34
|
-
}
|
|
35
|
-
};
|
|
3
|
+
* Creates a writable value with immediate subscription semantics.
|
|
4
|
+
*/
|
|
5
|
+
function createCurrentWritable(initialValue, onChange) {
|
|
6
|
+
let current = initialValue;
|
|
7
|
+
const subscribers = /* @__PURE__ */ new Set();
|
|
8
|
+
const notify = (value) => {
|
|
9
|
+
for (const run of subscribers) run(value);
|
|
10
|
+
};
|
|
11
|
+
const set = (value) => {
|
|
12
|
+
if (Object.is(current, value)) return;
|
|
13
|
+
current = value;
|
|
14
|
+
notify(value);
|
|
15
|
+
onChange?.(value);
|
|
16
|
+
};
|
|
17
|
+
return {
|
|
18
|
+
get current() {
|
|
19
|
+
return current;
|
|
20
|
+
},
|
|
21
|
+
subscribe(run) {
|
|
22
|
+
subscribers.add(run);
|
|
23
|
+
run(current);
|
|
24
|
+
return () => {
|
|
25
|
+
subscribers.delete(run);
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
set,
|
|
29
|
+
update(updater) {
|
|
30
|
+
set(updater(current));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
36
33
|
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { createCurrentWritable };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=current-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"current-value.js","names":[],"sources":["../../src/lib/core/current-value.ts"],"sourcesContent":["/**\n * Minimal subscribe contract used by MotionGPU core.\n */\nexport interface Subscribable<T> {\n\tsubscribe: (run: (value: T) => void) => () => void;\n}\n\n/**\n * Readable value with synchronous access to the latest value.\n */\nexport interface CurrentReadable<T> extends Subscribable<T> {\n\treadonly current: T;\n}\n\n/**\n * Writable extension of {@link CurrentReadable}.\n */\nexport interface CurrentWritable<T> extends CurrentReadable<T> {\n\tset: (value: T) => void;\n\tupdate: (updater: (value: T) => T) => void;\n}\n\n/**\n * Creates a writable value with immediate subscription semantics.\n */\nexport function createCurrentWritable<T>(\n\tinitialValue: T,\n\tonChange?: (value: T) => void\n): CurrentWritable<T> {\n\tlet current = initialValue;\n\tconst subscribers = new Set<(value: T) => void>();\n\n\tconst notify = (value: T): void => {\n\t\tfor (const run of subscribers) {\n\t\t\trun(value);\n\t\t}\n\t};\n\n\tconst set = (value: T): void => {\n\t\tif (Object.is(current, value)) {\n\t\t\treturn;\n\t\t}\n\t\tcurrent = value;\n\t\tnotify(value);\n\t\tonChange?.(value);\n\t};\n\n\treturn {\n\t\tget current() {\n\t\t\treturn current;\n\t\t},\n\t\tsubscribe(run) {\n\t\t\tsubscribers.add(run);\n\t\t\trun(current);\n\t\t\treturn () => {\n\t\t\t\tsubscribers.delete(run);\n\t\t\t};\n\t\t},\n\t\tset,\n\t\tupdate(updater) {\n\t\t\tset(updater(current));\n\t\t}\n\t};\n}\n"],"mappings":";;;;AAyBA,SAAgB,sBACf,cACA,UACqB;CACrB,IAAI,UAAU;CACd,MAAM,8BAAc,IAAI,KAAyB;CAEjD,MAAM,UAAU,UAAmB;AAClC,OAAK,MAAM,OAAO,YACjB,KAAI,MAAM;;CAIZ,MAAM,OAAO,UAAmB;AAC/B,MAAI,OAAO,GAAG,SAAS,MAAM,CAC5B;AAED,YAAU;AACV,SAAO,MAAM;AACb,aAAW,MAAM;;AAGlB,QAAO;EACN,IAAI,UAAU;AACb,UAAO;;EAER,UAAU,KAAK;AACd,eAAY,IAAI,IAAI;AACpB,OAAI,QAAQ;AACZ,gBAAa;AACZ,gBAAY,OAAO,IAAI;;;EAGzB;EACA,OAAO,SAAS;AACf,OAAI,QAAQ,QAAQ,CAAC;;EAEtB"}
|
|
@@ -52,3 +52,4 @@ export declare function attachShaderCompilationDiagnostics(error: Error, payload
|
|
|
52
52
|
* Extracts structured diagnostics payload from unknown error value.
|
|
53
53
|
*/
|
|
54
54
|
export declare function getShaderCompilationDiagnostics(error: unknown): ShaderCompilationDiagnosticsPayload | null;
|
|
55
|
+
//# sourceMappingURL=error-diagnostics.d.ts.map
|
|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AAC;CACjD;AAkHD;;GAEG;AACH,wBAAgB,kCAAkC,CACjD,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,mCAAmC,GAC1C,KAAK,CAGP;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAC9C,KAAK,EAAE,OAAO,GACZ,mCAAmC,GAAG,IAAI,CAwD5C"}
|
|
@@ -1,151 +1,84 @@
|
|
|
1
|
+
//#region src/lib/core/error-diagnostics.ts
|
|
1
2
|
function isMaterialSourceMetadata(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return false;
|
|
11
|
-
}
|
|
12
|
-
if (record.functionName !== undefined && typeof record.functionName !== 'string') {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
if (record.line !== undefined && typeof record.line !== 'number') {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
if (record.column !== undefined && typeof record.column !== 'number') {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
return true;
|
|
3
|
+
if (value === null || typeof value !== "object") return false;
|
|
4
|
+
const record = value;
|
|
5
|
+
if (record.component !== void 0 && typeof record.component !== "string") return false;
|
|
6
|
+
if (record.file !== void 0 && typeof record.file !== "string") return false;
|
|
7
|
+
if (record.functionName !== void 0 && typeof record.functionName !== "string") return false;
|
|
8
|
+
if (record.line !== void 0 && typeof record.line !== "number") return false;
|
|
9
|
+
if (record.column !== void 0 && typeof record.column !== "number") return false;
|
|
10
|
+
return true;
|
|
22
11
|
}
|
|
23
12
|
function isMaterialSourceLocation(value) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const record = value;
|
|
31
|
-
const kind = record.kind;
|
|
32
|
-
if (kind !== 'fragment' && kind !== 'include' && kind !== 'define') {
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
return typeof record.line === 'number';
|
|
13
|
+
if (value === null) return true;
|
|
14
|
+
if (typeof value !== "object") return false;
|
|
15
|
+
const record = value;
|
|
16
|
+
const kind = record.kind;
|
|
17
|
+
if (kind !== "fragment" && kind !== "include" && kind !== "define") return false;
|
|
18
|
+
return typeof record.line === "number";
|
|
36
19
|
}
|
|
37
20
|
function isShaderCompilationDiagnostic(value) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
if (record.linePos !== undefined && typeof record.linePos !== 'number') {
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
if (record.lineLength !== undefined && typeof record.lineLength !== 'number') {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
if (!isMaterialSourceLocation(record.sourceLocation)) {
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
57
|
-
return true;
|
|
21
|
+
if (value === null || typeof value !== "object") return false;
|
|
22
|
+
const record = value;
|
|
23
|
+
if (typeof record.generatedLine !== "number") return false;
|
|
24
|
+
if (typeof record.message !== "string") return false;
|
|
25
|
+
if (record.linePos !== void 0 && typeof record.linePos !== "number") return false;
|
|
26
|
+
if (record.lineLength !== void 0 && typeof record.lineLength !== "number") return false;
|
|
27
|
+
if (!isMaterialSourceLocation(record.sourceLocation)) return false;
|
|
28
|
+
return true;
|
|
58
29
|
}
|
|
59
30
|
function isStringArray(value) {
|
|
60
|
-
|
|
31
|
+
return Array.isArray(value) && value.every((entry) => typeof entry === "string");
|
|
61
32
|
}
|
|
62
33
|
function isShaderCompilationRuntimeContext(value) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
return true;
|
|
76
|
-
}
|
|
77
|
-
if (passGraph === null || typeof passGraph !== 'object') {
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
const passGraphRecord = passGraph;
|
|
81
|
-
if (typeof passGraphRecord.passCount !== 'number') {
|
|
82
|
-
return false;
|
|
83
|
-
}
|
|
84
|
-
if (typeof passGraphRecord.enabledPassCount !== 'number') {
|
|
85
|
-
return false;
|
|
86
|
-
}
|
|
87
|
-
if (!isStringArray(passGraphRecord.inputs) || !isStringArray(passGraphRecord.outputs)) {
|
|
88
|
-
return false;
|
|
89
|
-
}
|
|
90
|
-
return true;
|
|
34
|
+
if (value === null || typeof value !== "object") return false;
|
|
35
|
+
const record = value;
|
|
36
|
+
if (record.materialSignature !== void 0 && typeof record.materialSignature !== "string") return false;
|
|
37
|
+
if (!isStringArray(record.activeRenderTargets)) return false;
|
|
38
|
+
const passGraph = record.passGraph;
|
|
39
|
+
if (passGraph === void 0) return true;
|
|
40
|
+
if (passGraph === null || typeof passGraph !== "object") return false;
|
|
41
|
+
const passGraphRecord = passGraph;
|
|
42
|
+
if (typeof passGraphRecord.passCount !== "number") return false;
|
|
43
|
+
if (typeof passGraphRecord.enabledPassCount !== "number") return false;
|
|
44
|
+
if (!isStringArray(passGraphRecord.inputs) || !isStringArray(passGraphRecord.outputs)) return false;
|
|
45
|
+
return true;
|
|
91
46
|
}
|
|
92
47
|
/**
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
48
|
+
* Attaches structured diagnostics payload to an Error.
|
|
49
|
+
*/
|
|
50
|
+
function attachShaderCompilationDiagnostics(error, payload) {
|
|
51
|
+
error.motiongpuDiagnostics = payload;
|
|
52
|
+
return error;
|
|
98
53
|
}
|
|
99
54
|
/**
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
return null;
|
|
126
|
-
}
|
|
127
|
-
const includeSources = record.includeSources;
|
|
128
|
-
if (Object.values(includeSources).some((value) => typeof value !== 'string')) {
|
|
129
|
-
return null;
|
|
130
|
-
}
|
|
131
|
-
if (record.materialSource !== null && !isMaterialSourceMetadata(record.materialSource)) {
|
|
132
|
-
return null;
|
|
133
|
-
}
|
|
134
|
-
if (record.runtimeContext !== undefined &&
|
|
135
|
-
!isShaderCompilationRuntimeContext(record.runtimeContext)) {
|
|
136
|
-
return null;
|
|
137
|
-
}
|
|
138
|
-
return {
|
|
139
|
-
kind: 'shader-compilation',
|
|
140
|
-
diagnostics: record.diagnostics,
|
|
141
|
-
fragmentSource: record.fragmentSource,
|
|
142
|
-
includeSources: includeSources,
|
|
143
|
-
...(record.defineBlockSource !== undefined
|
|
144
|
-
? { defineBlockSource: record.defineBlockSource }
|
|
145
|
-
: {}),
|
|
146
|
-
materialSource: (record.materialSource ?? null),
|
|
147
|
-
...(record.runtimeContext !== undefined
|
|
148
|
-
? { runtimeContext: record.runtimeContext }
|
|
149
|
-
: {})
|
|
150
|
-
};
|
|
55
|
+
* Extracts structured diagnostics payload from unknown error value.
|
|
56
|
+
*/
|
|
57
|
+
function getShaderCompilationDiagnostics(error) {
|
|
58
|
+
if (!(error instanceof Error)) return null;
|
|
59
|
+
const payload = error.motiongpuDiagnostics;
|
|
60
|
+
if (payload === null || typeof payload !== "object") return null;
|
|
61
|
+
const record = payload;
|
|
62
|
+
if (record.kind !== "shader-compilation") return null;
|
|
63
|
+
if (!Array.isArray(record.diagnostics) || !record.diagnostics.every(isShaderCompilationDiagnostic)) return null;
|
|
64
|
+
if (typeof record.fragmentSource !== "string") return null;
|
|
65
|
+
if (record.defineBlockSource !== void 0 && typeof record.defineBlockSource !== "string") return null;
|
|
66
|
+
if (record.includeSources === null || typeof record.includeSources !== "object") return null;
|
|
67
|
+
const includeSources = record.includeSources;
|
|
68
|
+
if (Object.values(includeSources).some((value) => typeof value !== "string")) return null;
|
|
69
|
+
if (record.materialSource !== null && !isMaterialSourceMetadata(record.materialSource)) return null;
|
|
70
|
+
if (record.runtimeContext !== void 0 && !isShaderCompilationRuntimeContext(record.runtimeContext)) return null;
|
|
71
|
+
return {
|
|
72
|
+
kind: "shader-compilation",
|
|
73
|
+
diagnostics: record.diagnostics,
|
|
74
|
+
fragmentSource: record.fragmentSource,
|
|
75
|
+
includeSources,
|
|
76
|
+
...record.defineBlockSource !== void 0 ? { defineBlockSource: record.defineBlockSource } : {},
|
|
77
|
+
materialSource: record.materialSource ?? null,
|
|
78
|
+
...record.runtimeContext !== void 0 ? { runtimeContext: record.runtimeContext } : {}
|
|
79
|
+
};
|
|
151
80
|
}
|
|
81
|
+
//#endregion
|
|
82
|
+
export { attachShaderCompilationDiagnostics, getShaderCompilationDiagnostics };
|
|
83
|
+
|
|
84
|
+
//# sourceMappingURL=error-diagnostics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-diagnostics.js","names":[],"sources":["../../src/lib/core/error-diagnostics.ts"],"sourcesContent":["import type { MaterialSourceLocation } from './material-preprocess.js';\n\n/**\n * Source metadata for material declaration callsite.\n */\nexport interface MaterialSourceMetadata {\n\tcomponent?: string;\n\tfile?: string;\n\tline?: number;\n\tcolumn?: number;\n\tfunctionName?: string;\n}\n\n/**\n * One WGSL compiler diagnostic enriched with source-location metadata.\n */\nexport interface ShaderCompilationDiagnostic {\n\tgeneratedLine: number;\n\tmessage: string;\n\tlinePos?: number;\n\tlineLength?: number;\n\tsourceLocation: MaterialSourceLocation | null;\n}\n\n/**\n * Runtime context snapshot captured for shader compilation diagnostics.\n */\nexport interface ShaderCompilationRuntimeContext {\n\tmaterialSignature?: string;\n\tpassGraph?: {\n\t\tpassCount: number;\n\t\tenabledPassCount: number;\n\t\tinputs: string[];\n\t\toutputs: string[];\n\t};\n\tactiveRenderTargets: string[];\n}\n\n/**\n * Structured payload attached to WGSL compilation errors.\n */\nexport interface ShaderCompilationDiagnosticsPayload {\n\tkind: 'shader-compilation';\n\tdiagnostics: ShaderCompilationDiagnostic[];\n\tfragmentSource: string;\n\tincludeSources: Record<string, string>;\n\tdefineBlockSource?: string;\n\tmaterialSource: MaterialSourceMetadata | null;\n\truntimeContext?: ShaderCompilationRuntimeContext;\n}\n\ntype MotionGPUErrorWithDiagnostics = Error & {\n\tmotiongpuDiagnostics?: unknown;\n};\n\nfunction isMaterialSourceMetadata(value: unknown): value is MaterialSourceMetadata {\n\tif (value === null || typeof value !== 'object') {\n\t\treturn false;\n\t}\n\n\tconst record = value as Record<string, unknown>;\n\tif (record.component !== undefined && typeof record.component !== 'string') {\n\t\treturn false;\n\t}\n\tif (record.file !== undefined && typeof record.file !== 'string') {\n\t\treturn false;\n\t}\n\tif (record.functionName !== undefined && typeof record.functionName !== 'string') {\n\t\treturn false;\n\t}\n\tif (record.line !== undefined && typeof record.line !== 'number') {\n\t\treturn false;\n\t}\n\tif (record.column !== undefined && typeof record.column !== 'number') {\n\t\treturn false;\n\t}\n\n\treturn true;\n}\n\nfunction isMaterialSourceLocation(value: unknown): value is MaterialSourceLocation | null {\n\tif (value === null) {\n\t\treturn true;\n\t}\n\n\tif (typeof value !== 'object') {\n\t\treturn false;\n\t}\n\n\tconst record = value as Record<string, unknown>;\n\tconst kind = record.kind;\n\tif (kind !== 'fragment' && kind !== 'include' && kind !== 'define') {\n\t\treturn false;\n\t}\n\n\treturn typeof record.line === 'number';\n}\n\nfunction isShaderCompilationDiagnostic(value: unknown): value is ShaderCompilationDiagnostic {\n\tif (value === null || typeof value !== 'object') {\n\t\treturn false;\n\t}\n\n\tconst record = value as Record<string, unknown>;\n\tif (typeof record.generatedLine !== 'number') {\n\t\treturn false;\n\t}\n\tif (typeof record.message !== 'string') {\n\t\treturn false;\n\t}\n\tif (record.linePos !== undefined && typeof record.linePos !== 'number') {\n\t\treturn false;\n\t}\n\tif (record.lineLength !== undefined && typeof record.lineLength !== 'number') {\n\t\treturn false;\n\t}\n\tif (!isMaterialSourceLocation(record.sourceLocation)) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}\n\nfunction isStringArray(value: unknown): value is string[] {\n\treturn Array.isArray(value) && value.every((entry) => typeof entry === 'string');\n}\n\nfunction isShaderCompilationRuntimeContext(\n\tvalue: unknown\n): value is ShaderCompilationRuntimeContext {\n\tif (value === null || typeof value !== 'object') {\n\t\treturn false;\n\t}\n\n\tconst record = value as Record<string, unknown>;\n\tif (record.materialSignature !== undefined && typeof record.materialSignature !== 'string') {\n\t\treturn false;\n\t}\n\tif (!isStringArray(record.activeRenderTargets)) {\n\t\treturn false;\n\t}\n\tconst passGraph = record.passGraph;\n\tif (passGraph === undefined) {\n\t\treturn true;\n\t}\n\tif (passGraph === null || typeof passGraph !== 'object') {\n\t\treturn false;\n\t}\n\n\tconst passGraphRecord = passGraph as Record<string, unknown>;\n\tif (typeof passGraphRecord.passCount !== 'number') {\n\t\treturn false;\n\t}\n\tif (typeof passGraphRecord.enabledPassCount !== 'number') {\n\t\treturn false;\n\t}\n\tif (!isStringArray(passGraphRecord.inputs) || !isStringArray(passGraphRecord.outputs)) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}\n\n/**\n * Attaches structured diagnostics payload to an Error.\n */\nexport function attachShaderCompilationDiagnostics(\n\terror: Error,\n\tpayload: ShaderCompilationDiagnosticsPayload\n): Error {\n\t(error as MotionGPUErrorWithDiagnostics).motiongpuDiagnostics = payload;\n\treturn error;\n}\n\n/**\n * Extracts structured diagnostics payload from unknown error value.\n */\nexport function getShaderCompilationDiagnostics(\n\terror: unknown\n): ShaderCompilationDiagnosticsPayload | null {\n\tif (!(error instanceof Error)) {\n\t\treturn null;\n\t}\n\n\tconst payload = (error as MotionGPUErrorWithDiagnostics).motiongpuDiagnostics;\n\tif (payload === null || typeof payload !== 'object') {\n\t\treturn null;\n\t}\n\n\tconst record = payload as Record<string, unknown>;\n\tif (record.kind !== 'shader-compilation') {\n\t\treturn null;\n\t}\n\tif (\n\t\t!Array.isArray(record.diagnostics) ||\n\t\t!record.diagnostics.every(isShaderCompilationDiagnostic)\n\t) {\n\t\treturn null;\n\t}\n\tif (typeof record.fragmentSource !== 'string') {\n\t\treturn null;\n\t}\n\tif (record.defineBlockSource !== undefined && typeof record.defineBlockSource !== 'string') {\n\t\treturn null;\n\t}\n\tif (record.includeSources === null || typeof record.includeSources !== 'object') {\n\t\treturn null;\n\t}\n\tconst includeSources = record.includeSources as Record<string, unknown>;\n\tif (Object.values(includeSources).some((value) => typeof value !== 'string')) {\n\t\treturn null;\n\t}\n\tif (record.materialSource !== null && !isMaterialSourceMetadata(record.materialSource)) {\n\t\treturn null;\n\t}\n\tif (\n\t\trecord.runtimeContext !== undefined &&\n\t\t!isShaderCompilationRuntimeContext(record.runtimeContext)\n\t) {\n\t\treturn null;\n\t}\n\n\treturn {\n\t\tkind: 'shader-compilation',\n\t\tdiagnostics: record.diagnostics as ShaderCompilationDiagnostic[],\n\t\tfragmentSource: record.fragmentSource,\n\t\tincludeSources: includeSources as Record<string, string>,\n\t\t...(record.defineBlockSource !== undefined\n\t\t\t? { defineBlockSource: record.defineBlockSource as string }\n\t\t\t: {}),\n\t\tmaterialSource: (record.materialSource ?? null) as MaterialSourceMetadata | null,\n\t\t...(record.runtimeContext !== undefined\n\t\t\t? { runtimeContext: record.runtimeContext as ShaderCompilationRuntimeContext }\n\t\t\t: {})\n\t};\n}\n"],"mappings":";AAuDA,SAAS,yBAAyB,OAAiD;AAClF,KAAI,UAAU,QAAQ,OAAO,UAAU,SACtC,QAAO;CAGR,MAAM,SAAS;AACf,KAAI,OAAO,cAAc,UAAa,OAAO,OAAO,cAAc,SACjE,QAAO;AAER,KAAI,OAAO,SAAS,UAAa,OAAO,OAAO,SAAS,SACvD,Q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
|
+
{"version":3,"file":"error-report.d.ts","sourceRoot":"","sources":["../../src/lib/core/error-report.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAAG,QAAQ,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC3B,oBAAoB,GACpB,4BAA4B,GAC5B,4BAA4B,GAC5B,yBAAyB,GACzB,oBAAoB,GACpB,yBAAyB,GACzB,qBAAqB,GACrB,uBAAuB,GACvB,wBAAwB,GACxB,4BAA4B,GAC5B,yBAAyB,GACzB,yBAAyB,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,wBAAwB,EAAE,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,gBAAgB,EAAE,MAAM,CAAC;QACzB,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,OAAO,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;IACF,mBAAmB,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC;;OAEG;IACH,IAAI,EAAE,kBAAkB,CAAC;IACzB;;OAEG;IACH,QAAQ,EAAE,sBAAsB,CAAC;IACjC;;OAEG;IACH,WAAW,EAA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