@idetik/core 0.35.3 → 0.35.4
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/assets/worker_kernel-CBlE4MBI.js.map +1 -1
- package/dist/index.d.ts +16 -19
- package/dist/index.js +3649 -10342
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +59 -194
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/src/data/ome_zarr/0.4/image.d.ts +4 -4
- package/dist/types/src/data/ome_zarr/0.4/plate.d.ts +4 -4
- package/dist/types/src/data/ome_zarr/0.5/image.d.ts +12 -12
- package/dist/types/src/idetik.d.ts +0 -3
- package/dist/types/src/idetik.d.ts.map +1 -1
- package/dist/types/src/utilities/logger.d.ts +1 -1
- package/dist/types/src/utilities/logger.d.ts.map +1 -1
- package/package.json +1 -3
- package/dist/types/src/renderers/webgpu/webgpu_bindings.d.ts +0 -13
- package/dist/types/src/renderers/webgpu/webgpu_bindings.d.ts.map +0 -1
- package/dist/types/src/renderers/webgpu/webgpu_dynamic_buffer.d.ts +0 -17
- package/dist/types/src/renderers/webgpu/webgpu_dynamic_buffer.d.ts.map +0 -1
- package/dist/types/src/renderers/webgpu/webgpu_geometry_buffers.d.ts +0 -17
- package/dist/types/src/renderers/webgpu/webgpu_geometry_buffers.d.ts.map +0 -1
- package/dist/types/src/renderers/webgpu/webgpu_pipelines.d.ts +0 -42
- package/dist/types/src/renderers/webgpu/webgpu_pipelines.d.ts.map +0 -1
- package/dist/types/src/renderers/webgpu/webgpu_renderer.d.ts +0 -46
- package/dist/types/src/renderers/webgpu/webgpu_renderer.d.ts.map +0 -1
- package/dist/types/src/renderers/webgpu/webgpu_texture_pool.d.ts +0 -17
- package/dist/types/src/renderers/webgpu/webgpu_texture_pool.d.ts.map +0 -1
|
@@ -23,18 +23,18 @@ export declare const Image: z.ZodObject<{
|
|
|
23
23
|
coordinateTransformations: any[];
|
|
24
24
|
}[];
|
|
25
25
|
axes: any[];
|
|
26
|
-
version?: "0.4" | undefined;
|
|
27
26
|
name?: string | undefined;
|
|
28
27
|
coordinateTransformations?: any[] | undefined;
|
|
28
|
+
version?: "0.4" | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
datasets: {
|
|
31
31
|
path: string;
|
|
32
32
|
coordinateTransformations: any[];
|
|
33
33
|
}[];
|
|
34
34
|
axes: any[];
|
|
35
|
-
version?: "0.4" | undefined;
|
|
36
35
|
name?: string | undefined;
|
|
37
36
|
coordinateTransformations?: any[] | undefined;
|
|
37
|
+
version?: "0.4" | undefined;
|
|
38
38
|
}>, "many">;
|
|
39
39
|
omero: z.ZodOptional<z.ZodObject<{
|
|
40
40
|
channels: z.ZodArray<z.ZodObject<{
|
|
@@ -143,9 +143,9 @@ export declare const Image: z.ZodObject<{
|
|
|
143
143
|
coordinateTransformations: any[];
|
|
144
144
|
}[];
|
|
145
145
|
axes: any[];
|
|
146
|
-
version?: "0.4" | undefined;
|
|
147
146
|
name?: string | undefined;
|
|
148
147
|
coordinateTransformations?: any[] | undefined;
|
|
148
|
+
version?: "0.4" | undefined;
|
|
149
149
|
}[];
|
|
150
150
|
omero?: {
|
|
151
151
|
channels: {
|
|
@@ -174,9 +174,9 @@ export declare const Image: z.ZodObject<{
|
|
|
174
174
|
coordinateTransformations: any[];
|
|
175
175
|
}[];
|
|
176
176
|
axes: any[];
|
|
177
|
-
version?: "0.4" | undefined;
|
|
178
177
|
name?: string | undefined;
|
|
179
178
|
coordinateTransformations?: any[] | undefined;
|
|
179
|
+
version?: "0.4" | undefined;
|
|
180
180
|
}[];
|
|
181
181
|
omero?: {
|
|
182
182
|
channels: {
|
|
@@ -84,8 +84,8 @@ export declare const Plate: z.ZodObject<{
|
|
|
84
84
|
rowIndex: number;
|
|
85
85
|
columnIndex: number;
|
|
86
86
|
}[];
|
|
87
|
-
version?: "0.4" | undefined;
|
|
88
87
|
name?: string | undefined;
|
|
88
|
+
version?: "0.4" | undefined;
|
|
89
89
|
acquisitions?: {
|
|
90
90
|
id: number;
|
|
91
91
|
name?: string | undefined;
|
|
@@ -107,8 +107,8 @@ export declare const Plate: z.ZodObject<{
|
|
|
107
107
|
rowIndex: number;
|
|
108
108
|
columnIndex: number;
|
|
109
109
|
}[];
|
|
110
|
-
version?: "0.4" | undefined;
|
|
111
110
|
name?: string | undefined;
|
|
111
|
+
version?: "0.4" | undefined;
|
|
112
112
|
acquisitions?: {
|
|
113
113
|
id: number;
|
|
114
114
|
name?: string | undefined;
|
|
@@ -132,8 +132,8 @@ export declare const Plate: z.ZodObject<{
|
|
|
132
132
|
rowIndex: number;
|
|
133
133
|
columnIndex: number;
|
|
134
134
|
}[];
|
|
135
|
-
version?: "0.4" | undefined;
|
|
136
135
|
name?: string | undefined;
|
|
136
|
+
version?: "0.4" | undefined;
|
|
137
137
|
acquisitions?: {
|
|
138
138
|
id: number;
|
|
139
139
|
name?: string | undefined;
|
|
@@ -157,8 +157,8 @@ export declare const Plate: z.ZodObject<{
|
|
|
157
157
|
rowIndex: number;
|
|
158
158
|
columnIndex: number;
|
|
159
159
|
}[];
|
|
160
|
-
version?: "0.4" | undefined;
|
|
161
160
|
name?: string | undefined;
|
|
161
|
+
version?: "0.4" | undefined;
|
|
162
162
|
acquisitions?: {
|
|
163
163
|
id: number;
|
|
164
164
|
name?: string | undefined;
|
|
@@ -59,24 +59,24 @@ export declare const Image: z.ZodObject<{
|
|
|
59
59
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
61
|
color?: string | undefined;
|
|
62
|
-
label?: string | undefined;
|
|
63
62
|
window?: {
|
|
64
63
|
min: number;
|
|
65
64
|
max: number;
|
|
66
65
|
end: number;
|
|
67
66
|
start: number;
|
|
68
67
|
} | undefined;
|
|
68
|
+
label?: string | undefined;
|
|
69
69
|
family?: string | undefined;
|
|
70
70
|
active?: boolean | undefined;
|
|
71
71
|
}, {
|
|
72
72
|
color?: string | undefined;
|
|
73
|
-
label?: string | undefined;
|
|
74
73
|
window?: {
|
|
75
74
|
min: number;
|
|
76
75
|
max: number;
|
|
77
76
|
end: number;
|
|
78
77
|
start: number;
|
|
79
78
|
} | undefined;
|
|
79
|
+
label?: string | undefined;
|
|
80
80
|
family?: string | undefined;
|
|
81
81
|
active?: boolean | undefined;
|
|
82
82
|
}>, "many">;
|
|
@@ -99,13 +99,13 @@ export declare const Image: z.ZodObject<{
|
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
100
|
channels: {
|
|
101
101
|
color?: string | undefined;
|
|
102
|
-
label?: string | undefined;
|
|
103
102
|
window?: {
|
|
104
103
|
min: number;
|
|
105
104
|
max: number;
|
|
106
105
|
end: number;
|
|
107
106
|
start: number;
|
|
108
107
|
} | undefined;
|
|
108
|
+
label?: string | undefined;
|
|
109
109
|
family?: string | undefined;
|
|
110
110
|
active?: boolean | undefined;
|
|
111
111
|
}[];
|
|
@@ -118,13 +118,13 @@ export declare const Image: z.ZodObject<{
|
|
|
118
118
|
}, {
|
|
119
119
|
channels: {
|
|
120
120
|
color?: string | undefined;
|
|
121
|
-
label?: string | undefined;
|
|
122
121
|
window?: {
|
|
123
122
|
min: number;
|
|
124
123
|
max: number;
|
|
125
124
|
end: number;
|
|
126
125
|
start: number;
|
|
127
126
|
} | undefined;
|
|
127
|
+
label?: string | undefined;
|
|
128
128
|
family?: string | undefined;
|
|
129
129
|
active?: boolean | undefined;
|
|
130
130
|
}[];
|
|
@@ -138,7 +138,6 @@ export declare const Image: z.ZodObject<{
|
|
|
138
138
|
/**The version of the OME-Zarr Metadata*/
|
|
139
139
|
version: z.ZodLiteral<"0.5">;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
|
-
version: "0.5";
|
|
142
141
|
multiscales: {
|
|
143
142
|
datasets: {
|
|
144
143
|
path: string;
|
|
@@ -148,16 +147,17 @@ export declare const Image: z.ZodObject<{
|
|
|
148
147
|
name?: string | undefined;
|
|
149
148
|
coordinateTransformations?: any[] | undefined;
|
|
150
149
|
}[];
|
|
150
|
+
version: "0.5";
|
|
151
151
|
omero?: {
|
|
152
152
|
channels: {
|
|
153
153
|
color?: string | undefined;
|
|
154
|
-
label?: string | undefined;
|
|
155
154
|
window?: {
|
|
156
155
|
min: number;
|
|
157
156
|
max: number;
|
|
158
157
|
end: number;
|
|
159
158
|
start: number;
|
|
160
159
|
} | undefined;
|
|
160
|
+
label?: string | undefined;
|
|
161
161
|
family?: string | undefined;
|
|
162
162
|
active?: boolean | undefined;
|
|
163
163
|
}[];
|
|
@@ -169,7 +169,6 @@ export declare const Image: z.ZodObject<{
|
|
|
169
169
|
} | undefined;
|
|
170
170
|
} | undefined;
|
|
171
171
|
}, {
|
|
172
|
-
version: "0.5";
|
|
173
172
|
multiscales: {
|
|
174
173
|
datasets: {
|
|
175
174
|
path: string;
|
|
@@ -179,16 +178,17 @@ export declare const Image: z.ZodObject<{
|
|
|
179
178
|
name?: string | undefined;
|
|
180
179
|
coordinateTransformations?: any[] | undefined;
|
|
181
180
|
}[];
|
|
181
|
+
version: "0.5";
|
|
182
182
|
omero?: {
|
|
183
183
|
channels: {
|
|
184
184
|
color?: string | undefined;
|
|
185
|
-
label?: string | undefined;
|
|
186
185
|
window?: {
|
|
187
186
|
min: number;
|
|
188
187
|
max: number;
|
|
189
188
|
end: number;
|
|
190
189
|
start: number;
|
|
191
190
|
} | undefined;
|
|
191
|
+
label?: string | undefined;
|
|
192
192
|
family?: string | undefined;
|
|
193
193
|
active?: boolean | undefined;
|
|
194
194
|
}[];
|
|
@@ -202,7 +202,6 @@ export declare const Image: z.ZodObject<{
|
|
|
202
202
|
}>;
|
|
203
203
|
}, "strip", z.ZodTypeAny, {
|
|
204
204
|
ome: {
|
|
205
|
-
version: "0.5";
|
|
206
205
|
multiscales: {
|
|
207
206
|
datasets: {
|
|
208
207
|
path: string;
|
|
@@ -212,16 +211,17 @@ export declare const Image: z.ZodObject<{
|
|
|
212
211
|
name?: string | undefined;
|
|
213
212
|
coordinateTransformations?: any[] | undefined;
|
|
214
213
|
}[];
|
|
214
|
+
version: "0.5";
|
|
215
215
|
omero?: {
|
|
216
216
|
channels: {
|
|
217
217
|
color?: string | undefined;
|
|
218
|
-
label?: string | undefined;
|
|
219
218
|
window?: {
|
|
220
219
|
min: number;
|
|
221
220
|
max: number;
|
|
222
221
|
end: number;
|
|
223
222
|
start: number;
|
|
224
223
|
} | undefined;
|
|
224
|
+
label?: string | undefined;
|
|
225
225
|
family?: string | undefined;
|
|
226
226
|
active?: boolean | undefined;
|
|
227
227
|
}[];
|
|
@@ -235,7 +235,6 @@ export declare const Image: z.ZodObject<{
|
|
|
235
235
|
};
|
|
236
236
|
}, {
|
|
237
237
|
ome: {
|
|
238
|
-
version: "0.5";
|
|
239
238
|
multiscales: {
|
|
240
239
|
datasets: {
|
|
241
240
|
path: string;
|
|
@@ -245,16 +244,17 @@ export declare const Image: z.ZodObject<{
|
|
|
245
244
|
name?: string | undefined;
|
|
246
245
|
coordinateTransformations?: any[] | undefined;
|
|
247
246
|
}[];
|
|
247
|
+
version: "0.5";
|
|
248
248
|
omero?: {
|
|
249
249
|
channels: {
|
|
250
250
|
color?: string | undefined;
|
|
251
|
-
label?: string | undefined;
|
|
252
251
|
window?: {
|
|
253
252
|
min: number;
|
|
254
253
|
max: number;
|
|
255
254
|
end: number;
|
|
256
255
|
start: number;
|
|
257
256
|
} | undefined;
|
|
257
|
+
label?: string | undefined;
|
|
258
258
|
family?: string | undefined;
|
|
259
259
|
active?: boolean | undefined;
|
|
260
260
|
}[];
|
|
@@ -97,9 +97,6 @@ export declare class Idetik {
|
|
|
97
97
|
*
|
|
98
98
|
* @throws {Error} If viewports have duplicate IDs or shared elements
|
|
99
99
|
*/
|
|
100
|
-
static create(params: IdetikParams & {
|
|
101
|
-
renderer?: "webgl" | "webgpu-experimental";
|
|
102
|
-
}): Promise<Idetik>;
|
|
103
100
|
constructor(params: IdetikParams, renderer?: Renderer);
|
|
104
101
|
get chunkQueueStats(): import("./data/chunk_manager").QueueStats;
|
|
105
102
|
get memoryStats(): MemoryStats;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idetik.d.ts","sourceRoot":"","sources":["../../../src/idetik.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"idetik.d.ts","sourceRoot":"","sources":["../../../src/idetik.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAGL,QAAQ,EACR,cAAc,EACf,MAAM,iBAAiB,CAAC;AAKzB,qBAAqB;AACrB,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,cAAc;AACd,KAAK,YAAY,GAAG;IAClB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,YAAY,EAAE,YAAY,CAAC;CAC5B,CAAC;AAIF,qBAAqB;AACrB,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAe;IAC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| "ChunkQueue" | "ChunkStore" | "ChunkStoreView" | "EventDispatcher" | "Idetik" | "Layer" | "OrbitControls" | "PixelSizeObserver" | "PointPicking" | "RenderablePool" | "Viewport" | "VolumeLayer" | "VolumeRenderable" | "WebGLRenderer" | "WebGLShaderProgram" | "WebGLTexture" | "
|
|
2
|
+
type Module = "Channel" | "Chunk" | "ChunkManager" | "ChunkManagerSource" | "ChunkQueue" | "ChunkStore" | "ChunkStoreView" | "EventDispatcher" | "Idetik" | "Layer" | "OrbitControls" | "PixelSizeObserver" | "PointPicking" | "RenderablePool" | "Viewport" | "VolumeLayer" | "VolumeRenderable" | "WebGLRenderer" | "WebGLShaderProgram" | "WebGLTexture" | "WireframeGeometry" | "ZarrWorker";
|
|
3
3
|
export declare function getMode(): "production" | "development" | "test";
|
|
4
4
|
export declare class Logger {
|
|
5
5
|
private static logLevel_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../src/utilities/logger.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAiBpD,KAAK,MAAM,GACP,SAAS,GACT,OAAO,GACP,cAAc,GACd,oBAAoB,GACpB,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,iBAAiB,GACjB,QAAQ,GACR,OAAO,GACP,eAAe,GACf,mBAAmB,GACnB,cAAc,GACd,gBAAgB,GAChB,UAAU,GACV,aAAa,GACb,kBAAkB,GAClB,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../src/utilities/logger.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAiBpD,KAAK,MAAM,GACP,SAAS,GACT,OAAO,GACP,cAAc,GACd,oBAAoB,GACpB,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,iBAAiB,GACjB,QAAQ,GACR,OAAO,GACP,eAAe,GACf,mBAAmB,GACnB,cAAc,GACd,gBAAgB,GAChB,UAAU,GACV,aAAa,GACb,kBAAkB,GAClB,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,mBAAmB,GACnB,YAAY,CAAC;AAEjB,wBAAgB,OAAO,IAAI,YAAY,GAAG,aAAa,GAAG,MAAM,CA2B/D;AACD,qBAAa,MAAM;IACjB,OAAO,CAAC,MAAM,CAAC,SAAS,CACwB;WAElC,WAAW,CAAC,KAAK,EAAE,QAAQ;WAI3B,KAAK,CACjB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,GAAG,MAAM,EAAE,OAAO,EAAE;WAKR,IAAI,CAChB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,GAAG,MAAM,EAAE,OAAO,EAAE;WAKR,IAAI,CAChB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,GAAG,MAAM,EAAE,OAAO,EAAE;WAKR,KAAK,CACjB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,GAAG,MAAM,EAAE,OAAO,EAAE;IAKtB,OAAO,CAAC,MAAM,CAAC,GAAG;CA4BnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idetik/core",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"gl-matrix": "^3.4.3",
|
|
53
|
-
"webgpu-utils": "^2.1.0",
|
|
54
53
|
"zarrita": "^0.7.1",
|
|
55
54
|
"zod": "^3.24.1"
|
|
56
55
|
},
|
|
@@ -63,7 +62,6 @@
|
|
|
63
62
|
"@typescript-eslint/parser": "^8.1.0",
|
|
64
63
|
"@vitest/browser-playwright": "^4.0.0",
|
|
65
64
|
"@vitest/coverage-istanbul": "^4.0.0",
|
|
66
|
-
"@webgpu/types": "^0.1.69",
|
|
67
65
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
68
66
|
"eslint": "^9.9.0",
|
|
69
67
|
"globals": "^15.9.0",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { WebGPUPipeline } from "./webgpu_pipelines";
|
|
2
|
-
export default class WebGPUBindings {
|
|
3
|
-
private readonly device_;
|
|
4
|
-
private readonly uniformBindings_;
|
|
5
|
-
private readonly textureBindings_;
|
|
6
|
-
constructor(device: GPUDevice);
|
|
7
|
-
clearUniformBindings(): void;
|
|
8
|
-
setUniforms(pass: GPURenderPassEncoder, pipeline: WebGPUPipeline): void;
|
|
9
|
-
setTexture(pass: GPURenderPassEncoder, pipeline: WebGPUPipeline, texture: GPUTexture): void;
|
|
10
|
-
private createUniformsBindGroup;
|
|
11
|
-
private createTexturesBindGroup;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=webgpu_bindings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webgpu_bindings.d.ts","sourceRoot":"","sources":["../../../../../src/renderers/webgpu/webgpu_bindings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAkBpD,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAY;IACpC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAwB;IACzD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAwB;gBAE7C,MAAM,EAAE,SAAS;IAItB,oBAAoB;IAMpB,WAAW,CAAC,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,cAAc;IAgChE,UAAU,CACf,IAAI,EAAE,oBAAoB,EAC1B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,UAAU;IAoBrB,OAAO,CAAC,uBAAuB;IAmB/B,OAAO,CAAC,uBAAuB;CAchC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export default class WebGPUDynamicBuffer {
|
|
2
|
-
private readonly device_;
|
|
3
|
-
private readonly slotSize_;
|
|
4
|
-
private buffer_;
|
|
5
|
-
private capacity_;
|
|
6
|
-
private cursor_;
|
|
7
|
-
private version_;
|
|
8
|
-
private readonly clear_;
|
|
9
|
-
constructor(device: GPUDevice, perObjectDataSize: number);
|
|
10
|
-
clear(): void;
|
|
11
|
-
write(target: Float32Array<ArrayBuffer>): number;
|
|
12
|
-
get buffer(): GPUBuffer;
|
|
13
|
-
get version(): number;
|
|
14
|
-
private resize;
|
|
15
|
-
private createBuffer;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=webgpu_dynamic_buffer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webgpu_dynamic_buffer.d.ts","sourceRoot":"","sources":["../../../../../src/renderers/webgpu/webgpu_dynamic_buffer.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,mBAAmB;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAY;IACpC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IAEnC,OAAO,CAAC,OAAO,CAAY;IAC3B,OAAO,CAAC,SAAS,CAAoB;IACrC,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,QAAQ,CAAK;IACrB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;gBAE9B,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM;IAQjD,KAAK;IAML,KAAK,CAAC,MAAM,EAAE,YAAY,CAAC,WAAW,CAAC;IAgB9C,IAAW,MAAM,cAEhB;IAED,IAAW,OAAO,WAEjB;IAED,OAAO,CAAC,MAAM;IAoBd,OAAO,CAAC,YAAY;CASrB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Geometry } from "@/core/geometry";
|
|
2
|
-
export type WebGPUGeometryBuffer = {
|
|
3
|
-
geometry: Geometry;
|
|
4
|
-
vertexBuffer: GPUBuffer;
|
|
5
|
-
indexBuffer: GPUBuffer | null;
|
|
6
|
-
attributes: GPUVertexAttribute[];
|
|
7
|
-
attributesKey: string;
|
|
8
|
-
};
|
|
9
|
-
export default class WebGPUGeometryBuffers {
|
|
10
|
-
private readonly device_;
|
|
11
|
-
private readonly buffers_;
|
|
12
|
-
constructor(device: GPUDevice);
|
|
13
|
-
get(geometry: Geometry): WebGPUGeometryBuffer;
|
|
14
|
-
dispose(geometry: Geometry): void;
|
|
15
|
-
disposeAll(): void;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=webgpu_geometry_buffers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webgpu_geometry_buffers.d.ts","sourceRoot":"","sources":["../../../../../src/renderers/webgpu/webgpu_geometry_buffers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA0B,MAAM,iBAAiB,CAAC;AAEnE,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,EAAE,SAAS,CAAC;IACxB,WAAW,EAAE,SAAS,GAAG,IAAI,CAAC;IAC9B,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,qBAAqB;IACxC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAY;IACpC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAyB;gBAEtC,MAAM,EAAE,SAAS;IAKtB,GAAG,CAAC,QAAQ,EAAE,QAAQ;IAuCtB,OAAO,CAAC,QAAQ,EAAE,QAAQ;IAU1B,UAAU;CAOlB"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { WebGPUGeometryBuffer } from "./webgpu_geometry_buffers";
|
|
2
|
-
import { BlendMode } from "@/core/layer";
|
|
3
|
-
import { ShaderDataDefinitions, StructuredView } from "webgpu-utils";
|
|
4
|
-
export type ShaderName = "image_scalar_u32" | "image_scalar_i32" | "image_scalar_f32" | "wireframe";
|
|
5
|
-
export type PipelineKey = {
|
|
6
|
-
shaderName: ShaderName;
|
|
7
|
-
depthWrite: boolean;
|
|
8
|
-
depthTest: boolean;
|
|
9
|
-
stencil: boolean;
|
|
10
|
-
blendMode: BlendMode;
|
|
11
|
-
cullMode: GPUCullMode;
|
|
12
|
-
topology: GPUPrimitiveTopology;
|
|
13
|
-
vertexAttributesStr: string;
|
|
14
|
-
};
|
|
15
|
-
export type WebGPUShaderModule = {
|
|
16
|
-
name: ShaderName;
|
|
17
|
-
module: GPUShaderModule;
|
|
18
|
-
defs: ShaderDataDefinitions;
|
|
19
|
-
layouts: {
|
|
20
|
-
uniforms: GPUBindGroupLayout;
|
|
21
|
-
textures?: GPUBindGroupLayout;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export type WebGPUPipeline = {
|
|
25
|
-
key: PipelineKey;
|
|
26
|
-
pipeline: GPURenderPipeline;
|
|
27
|
-
uniformsView: StructuredView;
|
|
28
|
-
uniformsData: Float32Array<ArrayBuffer>;
|
|
29
|
-
shaderModule: WebGPUShaderModule;
|
|
30
|
-
};
|
|
31
|
-
export default class WebGPUPipelines {
|
|
32
|
-
private readonly colorFormat_;
|
|
33
|
-
private readonly depthFormat_;
|
|
34
|
-
private readonly device_;
|
|
35
|
-
private readonly pipelines_;
|
|
36
|
-
private readonly shaderModules_;
|
|
37
|
-
constructor(device: GPUDevice, colorFormat: GPUTextureFormat, depthFormat: GPUTextureFormat);
|
|
38
|
-
compileShader(name: ShaderName): Promise<void>;
|
|
39
|
-
get(key: PipelineKey, geometryBuffer: WebGPUGeometryBuffer): WebGPUPipeline;
|
|
40
|
-
private getCachedPipeline;
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=webgpu_pipelines.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webgpu_pipelines.d.ts","sourceRoot":"","sources":["../../../../../src/renderers/webgpu/webgpu_pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EACL,qBAAqB,EACrB,cAAc,EAIf,MAAM,cAAc,CAAC;AAOtB,MAAM,MAAM,UAAU,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,GAClB,WAAW,CAAC;AAEhB,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,WAAW,CAAC;IACtB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,eAAe,CAAC;IACxB,IAAI,EAAE,qBAAqB,CAAC;IAC5B,OAAO,EAAE;QACP,QAAQ,EAAE,kBAAkB,CAAC;QAC7B,QAAQ,CAAC,EAAE,kBAAkB,CAAC;KAC/B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,WAAW,CAAC;IACjB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,YAAY,EAAE,cAAc,CAAC;IAC7B,YAAY,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IACxC,YAAY,EAAE,kBAAkB,CAAC;CAClC,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,eAAe;IAClC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAmB;IAChD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAmB;IAChD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAY;IACpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAuB;gBAGpD,MAAM,EAAE,SAAS,EACjB,WAAW,EAAE,gBAAgB,EAC7B,WAAW,EAAE,gBAAgB;IASlB,aAAa,CAAC,IAAI,EAAE,UAAU;IA6CpC,GAAG,CAAC,GAAG,EAAE,WAAW,EAAE,cAAc,EAAE,oBAAoB;IAwFjE,OAAO,CAAC,iBAAiB;CAa1B"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Camera } from "@/objects/cameras/camera";
|
|
2
|
-
import { Layer } from "@/core/layer";
|
|
3
|
-
import { Renderer } from "@/core/renderer";
|
|
4
|
-
import { Viewport } from "@/core/viewport";
|
|
5
|
-
import { Texture } from "@/objects/textures/texture";
|
|
6
|
-
export declare function createWebGPURenderer(canvas: HTMLCanvasElement): Promise<WebGPURenderer>;
|
|
7
|
-
declare class WebGPURenderer extends Renderer {
|
|
8
|
-
private readonly bindings_;
|
|
9
|
-
private readonly geometryBuffers_;
|
|
10
|
-
private readonly pipelines_;
|
|
11
|
-
private readonly texturePool_;
|
|
12
|
-
private readonly colorFormat_;
|
|
13
|
-
private readonly context_;
|
|
14
|
-
private readonly depthFormat_;
|
|
15
|
-
private readonly device_;
|
|
16
|
-
private readonly currentProjection_;
|
|
17
|
-
private readonly currentModelView_;
|
|
18
|
-
private colorMSAATexture_;
|
|
19
|
-
private depthStencilTexture_;
|
|
20
|
-
private passEncoder_;
|
|
21
|
-
private renderedObjectsPerFrame_;
|
|
22
|
-
private needsClear_;
|
|
23
|
-
private currentDepthWrite_;
|
|
24
|
-
private currentStencil_;
|
|
25
|
-
private currentBlendMode_;
|
|
26
|
-
private currentLayerOpacity_;
|
|
27
|
-
constructor(canvas: HTMLCanvasElement, device: GPUDevice);
|
|
28
|
-
compileShaders(): Promise<void>;
|
|
29
|
-
beginFrame(): void;
|
|
30
|
-
render(viewport: Viewport): void;
|
|
31
|
-
private renderLayer;
|
|
32
|
-
protected renderObject(layer: Layer, objectIndex: number, camera: Camera): void;
|
|
33
|
-
private renderWireframe;
|
|
34
|
-
protected resize(width: number, height: number): void;
|
|
35
|
-
private beginRenderPass;
|
|
36
|
-
protected clear(): void;
|
|
37
|
-
uploadTexture(texture: Texture): void;
|
|
38
|
-
disposeTexture(texture: Texture): void;
|
|
39
|
-
private setUniformsForObject;
|
|
40
|
-
private setTexturesForObject;
|
|
41
|
-
private updateProjection;
|
|
42
|
-
get gpuTextureBytes(): number;
|
|
43
|
-
get gpuTextureCount(): number;
|
|
44
|
-
}
|
|
45
|
-
export {};
|
|
46
|
-
//# sourceMappingURL=webgpu_renderer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webgpu_renderer.d.ts","sourceRoot":"","sources":["../../../../../src/renderers/webgpu/webgpu_renderer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,KAAK,EAAa,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAa3C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAarD,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,iBAAiB,2BAcnE;AAED,cAAM,cAAe,SAAQ,QAAQ;IACnC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAC3C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAwB;IACzD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkB;IAC7C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAoB;IAEjD,OAAO,CAAC,QAAQ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ly device_;
|
|
4
|
-
private readonly textures_;
|
|
5
|
-
private gpuTextureBytes_;
|
|
6
|
-
private textureCount_;
|
|
7
|
-
constructor(device: GPUDevice);
|
|
8
|
-
get(entry: Texture): GPUTexture;
|
|
9
|
-
get gpuTextureBytes(): number;
|
|
10
|
-
get textureCount(): number;
|
|
11
|
-
private readTexel;
|
|
12
|
-
private upload;
|
|
13
|
-
dispose(texture: Texture): void;
|
|
14
|
-
disposeAll(): void;
|
|
15
|
-
}
|
|
16
|
-
export declare function textureGPUFormat(texture: Texture): GPUTextureFormat;
|
|
17
|
-
//# sourceMappingURL=webgpu_texture_pool.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webgpu_texture_pool.d.ts","sourceRoot":"","sources":["../../../../../src/renderers/webgpu/webgpu_texture_pool.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAKR,MAAM,4BAA4B,CAAC;AAQpC,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAY;IACpC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkB;IAE5C,OAAO,CAAC,gBAAgB,CAAK;IAC7B,OAAO,CAAC,aAAa,CAAK;gBAEd,MAAM,EAAE,SAAS;IAKtB,GAAG,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU;IAoCtC,IAAW,eAAe,WAEzB;IAED,IAAW,YAAY,WAEtB;YAEa,SAAS;IA+BvB,OAAO,CAAC,MAAM;IAeP,OAAO,CAAC,OAAO,EAAE,OAAO;IAaxB,UAAU;CAMlB;AA6BD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,gBAAgB,CAwCnE"}
|