@adobe/data-gpu 0.9.69 → 0.9.70
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/core/core-plugin.d.ts +4 -4
- package/dist/core/core-plugin.js +2 -2
- package/dist/core/core-plugin.js.map +1 -1
- package/dist/core/frame-time/frame-time-plugin.d.ts +1 -1
- package/dist/core/frame-time/frame-time-plugin.js +1 -1
- package/dist/core/frame-time/frame-time-plugin.js.map +1 -1
- package/dist/graphics/animation/animation-plugin.d.ts +3 -3
- package/dist/graphics/camera/camera-plugin.d.ts +21 -21
- package/dist/graphics/camera/orbit/orbit-data-plugin.d.ts +51 -51
- package/dist/graphics/camera/orbit/orbit-plugin.d.ts +51 -51
- package/dist/graphics/camera/orbit/orbit-system-plugin.d.ts +51 -51
- package/dist/graphics/graphics-plugin.d.ts +21 -21
- package/dist/graphics/graphics-plugin.js +7 -7
- package/dist/graphics/graphics-plugin.js.map +1 -1
- package/dist/graphics/picking/picking-plugin.d.ts +622 -622
- package/dist/graphics/rendering/bone-collider-plugin.d.ts +260 -260
- package/dist/graphics/rendering/ibl-render/ibl-render-plugin.d.ts +103 -103
- package/dist/graphics/rendering/ibl-render/ibl-render-plugin.js +4 -4
- package/dist/graphics/rendering/ibl-render/ibl-render-plugin.js.map +1 -1
- package/dist/graphics/rendering/interpolation-plugin.d.ts +133 -133
- package/dist/graphics/rendering/jolt-ragdoll-plugin.d.ts +208 -208
- package/dist/graphics/rendering/material-gpu/material-gpu-plugin.d.ts +7 -7
- package/dist/graphics/rendering/material-gpu/material-gpu-plugin.js +3 -3
- package/dist/graphics/rendering/material-gpu/material-gpu-plugin.js.map +1 -1
- package/dist/graphics/rendering/model-collider-plugin.d.ts +126 -126
- package/dist/graphics/rendering/pbr-render/pbr-render-plugin.d.ts +106 -106
- package/dist/graphics/rendering/pbr-render/physics-bridge-plugin.d.ts +261 -261
- package/dist/graphics/rendering/ragdoll-trigger-plugin.d.ts +2 -2
- package/dist/graphics/rendering/ragdoll-trigger-plugin.js +1 -1
- package/dist/graphics/rendering/ragdoll-trigger-plugin.js.map +1 -1
- package/dist/graphics/rendering/skinning/skinning-plugin.d.ts +156 -156
- package/dist/graphics/scene/model/model-loader-plugin.d.ts +126 -126
- package/dist/graphics/scene/model/shape/shape-geometry-plugin.d.ts +125 -125
- package/dist/graphics/scene/model/shape/shape-geometry-plugin.js +1 -1
- package/dist/graphics/scene/model/shape/shape-geometry-plugin.js.map +1 -1
- package/dist/graphics/scene/model/world-bounds-plugin.d.ts +121 -121
- package/dist/graphics/scene/scene-plugin.d.ts +36 -36
- package/dist/graphics/scene/scene-uniforms/scene-uniforms-plugin.d.ts +34 -34
- package/dist/graphics/scene/scene-uniforms/scene-uniforms-plugin.js +1 -1
- package/dist/graphics/scene/scene-uniforms/scene-uniforms-plugin.js.map +1 -1
- package/dist/physics/physics-clock-plugin.d.ts +9 -9
- package/dist/physics/physics-clock-plugin.js +1 -1
- package/dist/physics/physics-clock-plugin.js.map +1 -1
- package/dist/physics/solvers/jolt-solver-plugin.d.ts +38 -38
- package/dist/physics/solvers/jolt-solver-plugin.js +1 -1
- package/dist/physics/solvers/jolt-solver-plugin.js.map +1 -1
- package/dist/physics/solvers/rapier-solver-plugin.d.ts +37 -37
- package/package.json +2 -2
- package/src/core/core-plugin.ts +2 -2
- package/src/core/frame-time/frame-time-plugin.ts +1 -1
- package/src/graphics/graphics-plugin.ts +7 -7
- package/src/graphics/rendering/ibl-render/ibl-render-plugin.ts +4 -4
- package/src/graphics/rendering/material-gpu/material-gpu-plugin.ts +3 -3
- package/src/graphics/rendering/ragdoll-trigger-plugin.ts +1 -1
- package/src/graphics/scene/model/shape/shape-geometry-plugin.ts +1 -1
- package/src/graphics/scene/scene-uniforms/scene-uniforms-plugin.ts +1 -1
- package/src/physics/physics-clock-plugin.ts +1 -1
- package/src/physics/solvers/jolt-solver-plugin.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -17,7 +17,7 @@ export declare const graphics: {
|
|
|
17
17
|
readonly resources: {
|
|
18
18
|
readonly frameTime: {
|
|
19
19
|
readonly default: import("../core/frame-time/public.js");
|
|
20
|
-
readonly
|
|
20
|
+
readonly nonPersistent: true;
|
|
21
21
|
};
|
|
22
22
|
} & {
|
|
23
23
|
readonly schedulerState: {
|
|
@@ -26,40 +26,40 @@ export declare const graphics: {
|
|
|
26
26
|
} & {
|
|
27
27
|
readonly device: {
|
|
28
28
|
readonly default: GPUDevice | null;
|
|
29
|
-
readonly
|
|
29
|
+
readonly nonPersistent: true;
|
|
30
30
|
};
|
|
31
31
|
readonly commandEncoder: {
|
|
32
32
|
readonly default: GPUCommandEncoder | null;
|
|
33
|
-
readonly
|
|
33
|
+
readonly nonPersistent: true;
|
|
34
34
|
};
|
|
35
35
|
} & {
|
|
36
36
|
readonly renderPassEncoder: {
|
|
37
37
|
readonly default: GPURenderPassEncoder | null;
|
|
38
|
-
readonly
|
|
38
|
+
readonly nonPersistent: true;
|
|
39
39
|
};
|
|
40
40
|
readonly depthTexture: {
|
|
41
41
|
readonly default: GPUTexture | null;
|
|
42
|
-
readonly
|
|
42
|
+
readonly nonPersistent: true;
|
|
43
43
|
};
|
|
44
44
|
readonly clearColor: {
|
|
45
45
|
readonly default: Vec4;
|
|
46
|
-
readonly
|
|
46
|
+
readonly nonPersistent: true;
|
|
47
47
|
};
|
|
48
48
|
readonly canvas: {
|
|
49
49
|
readonly default: HTMLCanvasElement | null;
|
|
50
|
-
readonly
|
|
50
|
+
readonly nonPersistent: true;
|
|
51
51
|
};
|
|
52
52
|
readonly canvasContext: {
|
|
53
53
|
readonly default: GPUCanvasContext | null;
|
|
54
|
-
readonly
|
|
54
|
+
readonly nonPersistent: true;
|
|
55
55
|
};
|
|
56
56
|
readonly canvasFormat: {
|
|
57
57
|
readonly default: GPUTextureFormat;
|
|
58
|
-
readonly
|
|
58
|
+
readonly nonPersistent: true;
|
|
59
59
|
};
|
|
60
60
|
readonly depthFormat: {
|
|
61
61
|
readonly default: GPUTextureFormat;
|
|
62
|
-
readonly
|
|
62
|
+
readonly nonPersistent: true;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
readonly archetypes: {};
|
|
@@ -67,36 +67,36 @@ export declare const graphics: {
|
|
|
67
67
|
readonly setCanvas: (t: import("@adobe/data/ecs").TransactionContext<import("@adobe/data/schema").FromSchemas<{}>, import("@adobe/data/schema").FromSchemas<{
|
|
68
68
|
readonly renderPassEncoder: {
|
|
69
69
|
readonly default: GPURenderPassEncoder | null;
|
|
70
|
-
readonly
|
|
70
|
+
readonly nonPersistent: true;
|
|
71
71
|
};
|
|
72
72
|
readonly depthTexture: {
|
|
73
73
|
readonly default: GPUTexture | null;
|
|
74
|
-
readonly
|
|
74
|
+
readonly nonPersistent: true;
|
|
75
75
|
};
|
|
76
76
|
readonly clearColor: {
|
|
77
77
|
readonly default: Vec4;
|
|
78
|
-
readonly
|
|
78
|
+
readonly nonPersistent: true;
|
|
79
79
|
};
|
|
80
80
|
readonly canvas: {
|
|
81
81
|
readonly default: HTMLCanvasElement | null;
|
|
82
|
-
readonly
|
|
82
|
+
readonly nonPersistent: true;
|
|
83
83
|
};
|
|
84
84
|
readonly canvasContext: {
|
|
85
85
|
readonly default: GPUCanvasContext | null;
|
|
86
|
-
readonly
|
|
86
|
+
readonly nonPersistent: true;
|
|
87
87
|
};
|
|
88
88
|
readonly canvasFormat: {
|
|
89
89
|
readonly default: GPUTextureFormat;
|
|
90
|
-
readonly
|
|
90
|
+
readonly nonPersistent: true;
|
|
91
91
|
};
|
|
92
92
|
readonly depthFormat: {
|
|
93
93
|
readonly default: GPUTextureFormat;
|
|
94
|
-
readonly
|
|
94
|
+
readonly nonPersistent: true;
|
|
95
95
|
};
|
|
96
96
|
} & {
|
|
97
97
|
readonly frameTime: {
|
|
98
98
|
readonly default: import("../core/frame-time/public.js");
|
|
99
|
-
readonly
|
|
99
|
+
readonly nonPersistent: true;
|
|
100
100
|
};
|
|
101
101
|
} & {
|
|
102
102
|
readonly schedulerState: {
|
|
@@ -105,15 +105,15 @@ export declare const graphics: {
|
|
|
105
105
|
} & {
|
|
106
106
|
readonly device: {
|
|
107
107
|
readonly default: GPUDevice | null;
|
|
108
|
-
readonly
|
|
108
|
+
readonly nonPersistent: true;
|
|
109
109
|
};
|
|
110
110
|
readonly commandEncoder: {
|
|
111
111
|
readonly default: GPUCommandEncoder | null;
|
|
112
|
-
readonly
|
|
112
|
+
readonly nonPersistent: true;
|
|
113
113
|
};
|
|
114
114
|
}>, {}, {}>, canvas: HTMLCanvasElement | null) => void;
|
|
115
115
|
};
|
|
116
|
-
readonly systems: import("@adobe/data/ecs").SystemDeclarations<"
|
|
116
|
+
readonly systems: import("@adobe/data/ecs").SystemDeclarations<"_frameTime" | "update" | "schedulerSystem" | "input" | "preUpdate" | "postUpdate" | "physics" | "preRender" | "render" | "postRender" | "configureCanvas" | "beginRenderPass" | "endRenderPass">;
|
|
117
117
|
readonly actions: {};
|
|
118
118
|
readonly services: {};
|
|
119
119
|
readonly computed: {};
|
|
@@ -17,11 +17,11 @@ import { core } from "../core/core-plugin.js";
|
|
|
17
17
|
export const graphics = Database.Plugin.create({
|
|
18
18
|
extends: core,
|
|
19
19
|
resources: {
|
|
20
|
-
renderPassEncoder: { default: null,
|
|
21
|
-
depthTexture: { default: null,
|
|
22
|
-
clearColor: { default: [0, 0, 0, 1],
|
|
23
|
-
canvas: { default: null,
|
|
24
|
-
canvasContext: { default: null,
|
|
20
|
+
renderPassEncoder: { default: null, nonPersistent: true },
|
|
21
|
+
depthTexture: { default: null, nonPersistent: true },
|
|
22
|
+
clearColor: { default: [0, 0, 0, 1], nonPersistent: true },
|
|
23
|
+
canvas: { default: null, nonPersistent: true },
|
|
24
|
+
canvasContext: { default: null, nonPersistent: true },
|
|
25
25
|
// Guarded for headless hosts (Node): this default is evaluated at module
|
|
26
26
|
// load, and `navigator` is browser-only. Rendering re-derives the real
|
|
27
27
|
// preferred format when a canvas is configured; the placeholder is unused.
|
|
@@ -29,9 +29,9 @@ export const graphics = Database.Plugin.create({
|
|
|
29
29
|
default: (typeof navigator !== "undefined" && navigator.gpu
|
|
30
30
|
? navigator.gpu.getPreferredCanvasFormat()
|
|
31
31
|
: "bgra8unorm"),
|
|
32
|
-
|
|
32
|
+
nonPersistent: true,
|
|
33
33
|
},
|
|
34
|
-
depthFormat: { default: "depth24plus",
|
|
34
|
+
depthFormat: { default: "depth24plus", nonPersistent: true },
|
|
35
35
|
},
|
|
36
36
|
transactions: {
|
|
37
37
|
setCanvas(t, canvas) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphics-plugin.js","sourceRoot":"","sources":["../../src/graphics/graphics-plugin.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE,IAAI;IACb,SAAS,EAAE;QACP,iBAAiB,EAAE,EAAE,OAAO,EAAE,IAAmC,EAAE,
|
|
1
|
+
{"version":3,"file":"graphics-plugin.js","sourceRoot":"","sources":["../../src/graphics/graphics-plugin.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE,IAAI;IACb,SAAS,EAAE;QACP,iBAAiB,EAAE,EAAE,OAAO,EAAE,IAAmC,EAAE,aAAa,EAAE,IAAI,EAAE;QACxF,YAAY,EAAE,EAAE,OAAO,EAAE,I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