@luma.gl/webgl 9.0.0-beta.3 → 9.0.0-beta.5
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/adapter/converters/device-parameters.js +240 -158
- package/dist/adapter/converters/sampler-parameters.d.ts +0 -4
- package/dist/adapter/converters/sampler-parameters.d.ts.map +1 -1
- package/dist/adapter/converters/sampler-parameters.js +73 -68
- package/dist/adapter/converters/shader-formats.js +33 -46
- package/dist/adapter/converters/texture-formats.d.ts +9 -18
- package/dist/adapter/converters/texture-formats.d.ts.map +1 -1
- package/dist/adapter/converters/texture-formats.js +454 -871
- package/dist/adapter/converters/vertex-formats.js +52 -61
- package/dist/adapter/device-helpers/device-features.d.ts +2 -5
- package/dist/adapter/device-helpers/device-features.d.ts.map +1 -1
- package/dist/adapter/device-helpers/device-features.js +56 -87
- package/dist/adapter/device-helpers/device-limits.d.ts +2 -4
- package/dist/adapter/device-helpers/device-limits.d.ts.map +1 -1
- package/dist/adapter/device-helpers/device-limits.js +88 -83
- package/dist/adapter/device-helpers/get-device-info.d.ts +1 -1
- package/dist/adapter/device-helpers/get-device-info.d.ts.map +1 -1
- package/dist/adapter/device-helpers/get-device-info.js +79 -63
- package/dist/adapter/device-helpers/webgl-device-features.d.ts +6 -0
- package/dist/adapter/device-helpers/webgl-device-features.d.ts.map +1 -0
- package/dist/adapter/device-helpers/webgl-device-features.js +52 -0
- package/dist/adapter/device-helpers/webgl-device-info.d.ts +4 -0
- package/dist/adapter/device-helpers/webgl-device-info.d.ts.map +1 -0
- package/dist/adapter/device-helpers/webgl-device-info.js +87 -0
- package/dist/adapter/device-helpers/webgl-device-limits.d.ts +50 -0
- package/dist/adapter/device-helpers/webgl-device-limits.d.ts.map +1 -0
- package/dist/adapter/device-helpers/webgl-device-limits.js +92 -0
- package/dist/adapter/helpers/decode-webgl-types.js +87 -76
- package/dist/adapter/helpers/get-shader-layout.d.ts +1 -1
- package/dist/adapter/helpers/get-shader-layout.d.ts.map +1 -1
- package/dist/adapter/helpers/get-shader-layout.js +261 -226
- package/dist/adapter/helpers/parse-shader-compiler-log.js +46 -37
- package/dist/adapter/helpers/set-uniform.d.ts +1 -1
- package/dist/adapter/helpers/set-uniform.d.ts.map +1 -1
- package/dist/adapter/helpers/set-uniform.js +67 -82
- package/dist/adapter/helpers/webgl-topology-utils.js +77 -93
- package/dist/adapter/objects/constants-to-keys.d.ts +1 -1
- package/dist/adapter/objects/constants-to-keys.d.ts.map +1 -1
- package/dist/adapter/objects/constants-to-keys.js +18 -12
- package/dist/adapter/objects/webgl-renderbuffer.js +76 -80
- package/dist/adapter/objects/webgl-resource.d.ts +1 -1
- package/dist/adapter/objects/webgl-resource.d.ts.map +1 -1
- package/dist/adapter/objects/webgl-resource.js +204 -154
- package/dist/adapter/resources/webgl-buffer.d.ts +2 -3
- package/dist/adapter/resources/webgl-buffer.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-buffer.js +160 -119
- package/dist/adapter/resources/webgl-command-buffer.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-command-buffer.js +268 -171
- package/dist/adapter/resources/webgl-command-encoder.js +32 -40
- package/dist/adapter/resources/webgl-external-texture.js +92 -1
- package/dist/adapter/resources/webgl-framebuffer.d.ts +2 -2
- package/dist/adapter/resources/webgl-framebuffer.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-framebuffer.js +167 -139
- package/dist/adapter/resources/webgl-render-pass.js +121 -95
- package/dist/adapter/resources/webgl-render-pipeline.d.ts +11 -1
- package/dist/adapter/resources/webgl-render-pipeline.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-render-pipeline.js +378 -228
- package/dist/adapter/resources/webgl-sampler.d.ts +0 -2
- package/dist/adapter/resources/webgl-sampler.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-sampler.js +43 -34
- package/dist/adapter/resources/webgl-shader.d.ts +10 -1
- package/dist/adapter/resources/webgl-shader.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-shader.js +106 -45
- package/dist/adapter/resources/webgl-texture.d.ts +2 -6
- package/dist/adapter/resources/webgl-texture.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-texture.js +614 -699
- package/dist/adapter/resources/webgl-transform-feedback.d.ts +1 -1
- package/dist/adapter/resources/webgl-transform-feedback.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-transform-feedback.js +143 -145
- package/dist/adapter/resources/webgl-vertex-array.d.ts +1 -1
- package/dist/adapter/resources/webgl-vertex-array.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-vertex-array.js +229 -158
- package/dist/adapter/webgl-canvas-context.d.ts.map +1 -1
- package/dist/adapter/webgl-canvas-context.js +58 -37
- package/dist/adapter/webgl-device.d.ts +7 -15
- package/dist/adapter/webgl-device.d.ts.map +1 -1
- package/dist/adapter/webgl-device.js +440 -381
- package/dist/classic/accessor.js +132 -102
- package/dist/classic/clear.d.ts +2 -2
- package/dist/classic/clear.d.ts.map +1 -1
- package/dist/classic/clear.js +73 -73
- package/dist/classic/copy-and-blit.d.ts.map +1 -1
- package/dist/classic/copy-and-blit.js +176 -177
- package/dist/classic/format-utils.d.ts +2 -2
- package/dist/classic/format-utils.js +38 -32
- package/dist/classic/typed-array-utils.js +95 -81
- package/dist/context/{polyfill → context}/context-data.d.ts +2 -1
- package/dist/context/context/context-data.d.ts.map +1 -0
- package/dist/context/context/context-data.js +33 -0
- package/dist/context/context/create-browser-context.d.ts +1 -6
- package/dist/context/context/create-browser-context.d.ts.map +1 -1
- package/dist/context/context/create-browser-context.js +62 -49
- package/dist/context/debug/spector.js +54 -50
- package/dist/context/debug/webgl-developer-tools.d.ts +1 -2
- package/dist/context/debug/webgl-developer-tools.d.ts.map +1 -1
- package/dist/context/debug/webgl-developer-tools.js +102 -76
- package/dist/context/parameters/unified-parameter-api.d.ts +3 -3
- package/dist/context/parameters/unified-parameter-api.d.ts.map +1 -1
- package/dist/context/parameters/unified-parameter-api.js +95 -46
- package/dist/context/parameters/webgl-parameter-tables.d.ts +110 -99
- package/dist/context/parameters/webgl-parameter-tables.d.ts.map +1 -1
- package/dist/context/parameters/webgl-parameter-tables.js +456 -404
- package/dist/context/state-tracker/deep-array-equal.js +18 -14
- package/dist/context/state-tracker/track-context-state.d.ts +4 -4
- package/dist/context/state-tracker/track-context-state.d.ts.map +1 -1
- package/dist/context/state-tracker/track-context-state.js +190 -126
- package/dist/context/state-tracker/with-parameters.d.ts +1 -1
- package/dist/context/state-tracker/with-parameters.d.ts.map +1 -1
- package/dist/context/state-tracker/with-parameters.js +45 -29
- package/dist/dist.dev.js +2568 -3786
- package/dist/index.cjs +1346 -2464
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +2 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -26
- package/dist/types.js +2 -1
- package/dist.min.js +9 -42
- package/package.json +11 -15
- package/src/adapter/converters/device-parameters.ts +0 -1
- package/src/adapter/converters/sampler-parameters.ts +0 -17
- package/src/adapter/converters/texture-formats.ts +86 -154
- package/src/adapter/device-helpers/webgl-device-features.ts +69 -0
- package/src/adapter/device-helpers/{get-device-info.ts → webgl-device-info.ts} +3 -4
- package/src/adapter/device-helpers/{device-limits.ts → webgl-device-limits.ts} +25 -23
- package/src/adapter/helpers/get-shader-layout.ts +17 -28
- package/src/adapter/helpers/set-uniform.ts +1 -3
- package/src/adapter/objects/constants-to-keys.ts +1 -1
- package/src/adapter/objects/webgl-renderbuffer.ts +4 -4
- package/src/adapter/objects/webgl-resource.ts +3 -18
- package/src/adapter/resources/webgl-buffer.ts +6 -11
- package/src/adapter/resources/webgl-command-buffer.ts +20 -30
- package/src/adapter/resources/webgl-external-texture.ts +2 -3
- package/src/adapter/resources/webgl-framebuffer.ts +4 -5
- package/src/adapter/resources/webgl-render-pass.ts +7 -7
- package/src/adapter/resources/webgl-render-pipeline.ts +106 -31
- package/src/adapter/resources/webgl-sampler.ts +5 -9
- package/src/adapter/resources/webgl-shader.ts +57 -10
- package/src/adapter/resources/webgl-texture.ts +29 -103
- package/src/adapter/resources/webgl-transform-feedback.ts +14 -15
- package/src/adapter/resources/webgl-vertex-array.ts +16 -18
- package/src/adapter/webgl-canvas-context.ts +1 -7
- package/src/adapter/webgl-device.ts +18 -67
- package/src/classic/clear.ts +13 -14
- package/src/classic/copy-and-blit.ts +1 -2
- package/src/context/context/context-data.ts +44 -0
- package/src/context/context/create-browser-context.ts +7 -32
- package/src/context/debug/webgl-developer-tools.ts +6 -8
- package/src/context/parameters/unified-parameter-api.ts +3 -3
- package/src/context/parameters/webgl-parameter-tables.ts +66 -75
- package/src/context/state-tracker/track-context-state.ts +18 -17
- package/src/context/state-tracker/with-parameters.ts +1 -1
- package/src/index.ts +2 -17
- package/dist/adapter/converters/device-parameters.js.map +0 -1
- package/dist/adapter/converters/sampler-parameters.js.map +0 -1
- package/dist/adapter/converters/shader-formats.js.map +0 -1
- package/dist/adapter/converters/texture-formats.js.map +0 -1
- package/dist/adapter/converters/vertex-formats.js.map +0 -1
- package/dist/adapter/device-helpers/device-features.js.map +0 -1
- package/dist/adapter/device-helpers/device-limits.js.map +0 -1
- package/dist/adapter/device-helpers/get-device-info.js.map +0 -1
- package/dist/adapter/device-helpers/is-old-ie.d.ts +0 -2
- package/dist/adapter/device-helpers/is-old-ie.d.ts.map +0 -1
- package/dist/adapter/device-helpers/is-old-ie.js +0 -9
- package/dist/adapter/device-helpers/is-old-ie.js.map +0 -1
- package/dist/adapter/helpers/decode-webgl-types.js.map +0 -1
- package/dist/adapter/helpers/get-shader-layout.js.map +0 -1
- package/dist/adapter/helpers/parse-shader-compiler-log.js.map +0 -1
- package/dist/adapter/helpers/set-uniform.js.map +0 -1
- package/dist/adapter/helpers/webgl-topology-utils.js.map +0 -1
- package/dist/adapter/objects/constants-to-keys.js.map +0 -1
- package/dist/adapter/objects/webgl-renderbuffer.js.map +0 -1
- package/dist/adapter/objects/webgl-resource.js.map +0 -1
- package/dist/adapter/resources/webgl-buffer.js.map +0 -1
- package/dist/adapter/resources/webgl-command-buffer.js.map +0 -1
- package/dist/adapter/resources/webgl-command-encoder.js.map +0 -1
- package/dist/adapter/resources/webgl-external-texture.js.map +0 -1
- package/dist/adapter/resources/webgl-framebuffer.js.map +0 -1
- package/dist/adapter/resources/webgl-render-pass.js.map +0 -1
- package/dist/adapter/resources/webgl-render-pipeline.js.map +0 -1
- package/dist/adapter/resources/webgl-sampler.js.map +0 -1
- package/dist/adapter/resources/webgl-shader.js.map +0 -1
- package/dist/adapter/resources/webgl-texture.js.map +0 -1
- package/dist/adapter/resources/webgl-transform-feedback.js.map +0 -1
- package/dist/adapter/resources/webgl-vertex-array.js.map +0 -1
- package/dist/adapter/webgl-canvas-context.js.map +0 -1
- package/dist/adapter/webgl-device.js.map +0 -1
- package/dist/classic/accessor.js.map +0 -1
- package/dist/classic/clear.js.map +0 -1
- package/dist/classic/copy-and-blit.js.map +0 -1
- package/dist/classic/format-utils.js.map +0 -1
- package/dist/classic/typed-array-utils.js.map +0 -1
- package/dist/context/context/create-browser-context.js.map +0 -1
- package/dist/context/context/create-headless-context.d.ts +0 -9
- package/dist/context/context/create-headless-context.d.ts.map +0 -1
- package/dist/context/context/create-headless-context.js +0 -42
- package/dist/context/context/create-headless-context.js.map +0 -1
- package/dist/context/context/webgl-checks.d.ts +0 -13
- package/dist/context/context/webgl-checks.d.ts.map +0 -1
- package/dist/context/context/webgl-checks.js +0 -31
- package/dist/context/context/webgl-checks.js.map +0 -1
- package/dist/context/debug/spector.js.map +0 -1
- package/dist/context/debug/webgl-developer-tools.js.map +0 -1
- package/dist/context/parameters/unified-parameter-api.js.map +0 -1
- package/dist/context/parameters/webgl-parameter-tables.js.map +0 -1
- package/dist/context/polyfill/context-data.d.ts.map +0 -1
- package/dist/context/polyfill/context-data.js +0 -12
- package/dist/context/polyfill/context-data.js.map +0 -1
- package/dist/context/polyfill/get-parameter-polyfill.d.ts +0 -2
- package/dist/context/polyfill/get-parameter-polyfill.d.ts.map +0 -1
- package/dist/context/polyfill/get-parameter-polyfill.js +0 -85
- package/dist/context/polyfill/get-parameter-polyfill.js.map +0 -1
- package/dist/context/polyfill/polyfill-context.d.ts +0 -5
- package/dist/context/polyfill/polyfill-context.d.ts.map +0 -1
- package/dist/context/polyfill/polyfill-context.js +0 -87
- package/dist/context/polyfill/polyfill-context.js.map +0 -1
- package/dist/context/polyfill/polyfill-table.d.ts +0 -48
- package/dist/context/polyfill/polyfill-table.d.ts.map +0 -1
- package/dist/context/polyfill/polyfill-table.js +0 -137
- package/dist/context/polyfill/polyfill-table.js.map +0 -1
- package/dist/context/polyfill/polyfill-vertex-array-object.d.ts +0 -2
- package/dist/context/polyfill/polyfill-vertex-array-object.d.ts.map +0 -1
- package/dist/context/polyfill/polyfill-vertex-array-object.js +0 -265
- package/dist/context/polyfill/polyfill-vertex-array-object.js.map +0 -1
- package/dist/context/state-tracker/deep-array-equal.js.map +0 -1
- package/dist/context/state-tracker/track-context-state.js.map +0 -1
- package/dist/context/state-tracker/with-parameters.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types.js.map +0 -1
- package/src/adapter/device-helpers/device-features.ts +0 -161
- package/src/adapter/device-helpers/is-old-ie.ts +0 -14
- package/src/context/context/create-headless-context.ts +0 -51
- package/src/context/context/webgl-checks.ts +0 -51
- package/src/context/polyfill/context-data.ts +0 -30
- package/src/context/polyfill/get-parameter-polyfill.ts +0 -122
- package/src/context/polyfill/polyfill-context.ts +0 -104
- package/src/context/polyfill/polyfill-table.ts +0 -167
- package/src/context/polyfill/polyfill-vertex-array-object.ts +0 -365
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// luma.gl, MIT license
|
|
2
|
+
// Copyright (c) vis.gl contributors
|
|
3
|
+
/**
|
|
4
|
+
* Gets luma.gl specific state from a context
|
|
5
|
+
* @returns context state
|
|
6
|
+
*/
|
|
7
|
+
export function getContextData(gl) {
|
|
8
|
+
// @ts-expect-error
|
|
9
|
+
const luma = gl.luma;
|
|
10
|
+
if (!luma) {
|
|
11
|
+
const contextState = {
|
|
12
|
+
_polyfilled: false,
|
|
13
|
+
_extensions: {}
|
|
14
|
+
};
|
|
15
|
+
// @ts-expect-error
|
|
16
|
+
gl.luma = contextState;
|
|
17
|
+
}
|
|
18
|
+
// @ts-expect-error
|
|
19
|
+
return gl.luma;
|
|
20
|
+
}
|
|
21
|
+
export function initializeExtensions(gl) {
|
|
22
|
+
const contextState = getContextData(gl);
|
|
23
|
+
// `getSupportedExtensions` can return null when context is lost.
|
|
24
|
+
const EXTENSIONS = gl.getSupportedExtensions() || [];
|
|
25
|
+
// Generates warnings in Chrome
|
|
26
|
+
const IGNORE_EXTENSIONS = ['WEBGL_polygon_mode'];
|
|
27
|
+
for (const extensionName of EXTENSIONS) {
|
|
28
|
+
if (!IGNORE_EXTENSIONS.includes(extensionName)) {
|
|
29
|
+
const extension = gl.getExtension(extensionName);
|
|
30
|
+
contextState._extensions[extensionName] = extension;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ContextProps
|
|
3
|
-
* @param webgl2 Set to false to not create a WebGL2 context (force webgl1)
|
|
4
|
-
* @param webgl1 set to false to not create a WebGL1 context (fail if webgl2 not available)
|
|
5
3
|
* @param onContextLost
|
|
6
4
|
* @param onContextRestored
|
|
7
5
|
*
|
|
@@ -16,9 +14,6 @@
|
|
|
16
14
|
* @param failIfMajorPerformanceCaveat Do not create if the system performance is low.
|
|
17
15
|
*/
|
|
18
16
|
type ContextProps = {
|
|
19
|
-
type?: 'webgl' | 'webgl1' | 'webgl2' | string;
|
|
20
|
-
webgl1?: boolean;
|
|
21
|
-
webgl2?: boolean;
|
|
22
17
|
onContextLost?: (event: Event) => void;
|
|
23
18
|
onContextRestored?: (event: Event) => void;
|
|
24
19
|
alpha?: boolean;
|
|
@@ -35,6 +30,6 @@ type ContextProps = {
|
|
|
35
30
|
* Note calling this multiple time on the same canvas does return the same context
|
|
36
31
|
* @param canvas A canvas element or offscreen canvas
|
|
37
32
|
*/
|
|
38
|
-
export declare function createBrowserContext(canvas: HTMLCanvasElement | OffscreenCanvas, props: ContextProps):
|
|
33
|
+
export declare function createBrowserContext(canvas: HTMLCanvasElement | OffscreenCanvas, props: ContextProps): WebGL2RenderingContext;
|
|
39
34
|
export {};
|
|
40
35
|
//# sourceMappingURL=create-browser-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-browser-context.d.ts","sourceRoot":"","sources":["../../../src/context/context/create-browser-context.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"create-browser-context.d.ts","sourceRoot":"","sources":["../../../src/context/context/create-browser-context.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,KAAK,YAAY,GAAG;IAClB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACvC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC3C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,eAAe,CAAC,EAAE,SAAS,GAAG,kBAAkB,GAAG,WAAW,CAAC;IAC/D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAUF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,iBAAiB,GAAG,eAAe,EAC3C,KAAK,EAAE,YAAY,GAClB,sBAAsB,CA+CxB"}
|
|
@@ -1,53 +1,66 @@
|
|
|
1
|
+
// luma.gl, MIT license
|
|
2
|
+
// Copyright (c) vis.gl contributors
|
|
1
3
|
const DEFAULT_CONTEXT_PROPS = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
powerPreference: 'high-performance', // After all, most apps are using WebGL for performance reasons
|
|
5
|
+
// eslint-disable-next-line no-console
|
|
6
|
+
onContextLost: () => console.error('WebGL context lost'),
|
|
7
|
+
// eslint-disable-next-line no-console
|
|
8
|
+
onContextRestored: () => console.info('WebGL context restored')
|
|
7
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* Create a WebGL context for a canvas
|
|
12
|
+
* Note calling this multiple time on the same canvas does return the same context
|
|
13
|
+
* @param canvas A canvas element or offscreen canvas
|
|
14
|
+
*/
|
|
8
15
|
export function createBrowserContext(canvas, props) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const {
|
|
41
|
-
onContextLost
|
|
42
|
-
} = props;
|
|
43
|
-
canvas.addEventListener('webglcontextlost', event => onContextLost(event), false);
|
|
44
|
-
}
|
|
45
|
-
if (props.onContextRestored) {
|
|
46
|
-
const {
|
|
47
|
-
onContextRestored
|
|
48
|
-
} = props;
|
|
49
|
-
canvas.addEventListener('webglcontextrestored', event => onContextRestored(event), false);
|
|
50
|
-
}
|
|
51
|
-
return gl;
|
|
16
|
+
props = { ...DEFAULT_CONTEXT_PROPS, ...props };
|
|
17
|
+
// Try to extract any extra information about why context creation failed
|
|
18
|
+
let errorMessage = null;
|
|
19
|
+
const onCreateError = error => (errorMessage = error.statusMessage || errorMessage);
|
|
20
|
+
canvas.addEventListener('webglcontextcreationerror', onCreateError, false);
|
|
21
|
+
// Create the desired context
|
|
22
|
+
let gl = null;
|
|
23
|
+
// props.failIfMajorPerformanceCaveat = true;
|
|
24
|
+
// We require webgl2 context
|
|
25
|
+
gl ||= canvas.getContext('webgl2', props);
|
|
26
|
+
// Software GPU
|
|
27
|
+
// props.failIfMajorPerformanceCaveat = false;
|
|
28
|
+
// if (!gl && props.webgl1) {
|
|
29
|
+
// gl = canvas.getContext('webgl', props);
|
|
30
|
+
// }
|
|
31
|
+
// TODO are we removing this listener before giving it a chance to fire?
|
|
32
|
+
canvas.removeEventListener('webglcontextcreationerror', onCreateError, false);
|
|
33
|
+
if (!gl) {
|
|
34
|
+
throw new Error(`Failed to create WebGL context: ${errorMessage || 'Unknown error'}`);
|
|
35
|
+
}
|
|
36
|
+
if (props.onContextLost) {
|
|
37
|
+
// Carefully extract and wrap callbacks to prevent addEventListener from rebinding them.
|
|
38
|
+
const { onContextLost } = props;
|
|
39
|
+
canvas.addEventListener('webglcontextlost', (event) => onContextLost(event), false);
|
|
40
|
+
}
|
|
41
|
+
if (props.onContextRestored) {
|
|
42
|
+
// Carefully extract and wrap callbacks to prevent addEventListener from rebinding them.
|
|
43
|
+
const { onContextRestored } = props;
|
|
44
|
+
canvas.addEventListener('webglcontextrestored', (event) => onContextRestored(event), false);
|
|
45
|
+
}
|
|
46
|
+
return gl;
|
|
52
47
|
}
|
|
53
|
-
|
|
48
|
+
/* TODO - can we call this asynchronously to catch the error events?
|
|
49
|
+
export async function createBrowserContextAsync(canvas: HTMLCanvasElement | OffscreenCanvas, props: ContextProps): Promise<WebGL2RenderingContext> {
|
|
50
|
+
props = {...DEFAULT_CONTEXT_PROPS, ...props};
|
|
51
|
+
|
|
52
|
+
// Try to extract any extra information about why context creation failed
|
|
53
|
+
let errorMessage = null;
|
|
54
|
+
const onCreateError = (error) => (errorMessage = error.statusMessage || errorMessage);
|
|
55
|
+
canvas.addEventListener('webglcontextcreationerror', onCreateError, false);
|
|
56
|
+
|
|
57
|
+
const gl = createBrowserContext(canvas, props);
|
|
58
|
+
|
|
59
|
+
// Give the listener a chance to fire
|
|
60
|
+
await new Promise(resolve => setTimeout(resolve, 0));
|
|
61
|
+
|
|
62
|
+
canvas.removeEventListener('webglcontextcreationerror', onCreateError, false);
|
|
63
|
+
|
|
64
|
+
return gl;
|
|
65
|
+
}
|
|
66
|
+
*/
|
|
@@ -1,64 +1,68 @@
|
|
|
1
|
+
// luma.gl, MIT license
|
|
2
|
+
// Copyright (c) vis.gl contributors
|
|
1
3
|
import { log, loadScript } from '@luma.gl/core';
|
|
2
4
|
const DEFAULT_SPECTOR_PROPS = {
|
|
3
|
-
|
|
5
|
+
spector: log.get('spector') || log.get('inspect')
|
|
4
6
|
};
|
|
7
|
+
// https://github.com/BabylonJS/Spector.js#basic-usage
|
|
5
8
|
const SPECTOR_CDN_URL = 'https://spectorcdn.babylonjs.com/spector.bundle.js';
|
|
6
9
|
const LOG_LEVEL = 1;
|
|
7
10
|
let spector = null;
|
|
8
11
|
let initialized = false;
|
|
12
|
+
/** Loads spector from CDN if not already installed */
|
|
9
13
|
export async function loadSpectorJS(props) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
if (!globalThis.SPECTOR) {
|
|
15
|
+
try {
|
|
16
|
+
await loadScript(SPECTOR_CDN_URL);
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
log.warn(String(error));
|
|
20
|
+
}
|
|
15
21
|
}
|
|
16
|
-
}
|
|
17
22
|
}
|
|
18
23
|
export function initializeSpectorJS(props) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
...props
|
|
23
|
-
};
|
|
24
|
-
if (!((_props = props) !== null && _props !== void 0 && _props.spector)) {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
if (!spector && globalThis.SPECTOR) {
|
|
28
|
-
log.probe(LOG_LEVEL, 'SPECTOR found and initialized')();
|
|
29
|
-
spector = new globalThis.SPECTOR.Spector();
|
|
30
|
-
if (globalThis.luma) {
|
|
31
|
-
globalThis.luma.spector = spector;
|
|
24
|
+
props = { ...DEFAULT_SPECTOR_PROPS, ...props };
|
|
25
|
+
if (!props?.spector) {
|
|
26
|
+
return null;
|
|
32
27
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
initialized = true;
|
|
40
|
-
spector.spyCanvases();
|
|
41
|
-
(_spector = spector) === null || _spector === void 0 ? void 0 : _spector.onCaptureStarted.add(capture => log.info('Spector capture started:', capture)());
|
|
42
|
-
(_spector2 = spector) === null || _spector2 === void 0 ? void 0 : _spector2.onCapture.add(capture => {
|
|
43
|
-
var _spector3, _spector4, _spector5;
|
|
44
|
-
log.info('Spector capture complete:', capture)();
|
|
45
|
-
(_spector3 = spector) === null || _spector3 === void 0 ? void 0 : _spector3.getResultUI();
|
|
46
|
-
(_spector4 = spector) === null || _spector4 === void 0 ? void 0 : _spector4.resultView.display();
|
|
47
|
-
(_spector5 = spector) === null || _spector5 === void 0 ? void 0 : _spector5.resultView.addCapture(capture);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
if ((_props2 = props) !== null && _props2 !== void 0 && _props2.canvas) {
|
|
51
|
-
var _spector6, _props3;
|
|
52
|
-
if (typeof props.spector === 'string' && props.spector !== props.canvas.id) {
|
|
53
|
-
return spector;
|
|
28
|
+
if (!spector && globalThis.SPECTOR) {
|
|
29
|
+
log.probe(LOG_LEVEL, 'SPECTOR found and initialized')();
|
|
30
|
+
spector = new globalThis.SPECTOR.Spector();
|
|
31
|
+
if (globalThis.luma) {
|
|
32
|
+
globalThis.luma.spector = spector;
|
|
33
|
+
}
|
|
54
34
|
}
|
|
55
|
-
(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
35
|
+
if (!spector) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
if (!initialized) {
|
|
39
|
+
initialized = true;
|
|
40
|
+
// enables recording some extra information merged in the capture like texture memory sizes and formats
|
|
41
|
+
spector.spyCanvases();
|
|
42
|
+
// A callback when results are ready
|
|
43
|
+
spector?.onCaptureStarted.add((capture) => log.info('Spector capture started:', capture)());
|
|
44
|
+
spector?.onCapture.add((capture) => {
|
|
45
|
+
log.info('Spector capture complete:', capture)();
|
|
46
|
+
// Use undocumented Spector API to open the UI with our capture
|
|
47
|
+
// See https://github.com/BabylonJS/Spector.js/blob/767ad1195a25b85a85c381f400eb50a979239eca/src/spector.ts#L124
|
|
48
|
+
spector?.getResultUI();
|
|
49
|
+
spector?.resultView.display();
|
|
50
|
+
spector?.resultView.addCapture(capture);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
if (props?.canvas) {
|
|
54
|
+
// @ts-expect-error If spector is specified as a canvas id, only monitor that canvas
|
|
55
|
+
if (typeof props.spector === 'string' && props.spector !== props.canvas.id) {
|
|
56
|
+
return spector;
|
|
57
|
+
}
|
|
58
|
+
// capture startup
|
|
59
|
+
// spector?.captureCanvas(props?.canvas);
|
|
60
|
+
spector?.startCapture(props?.canvas, 500); // 500 commands
|
|
61
|
+
new Promise(resolve => setTimeout(resolve, 2000)).then(_ => {
|
|
62
|
+
log.info('Spector capture stopped after 2 seconds')();
|
|
63
|
+
spector?.stopCapture();
|
|
64
|
+
// spector?.displayUI();
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
return spector;
|
|
63
68
|
}
|
|
64
|
-
//# sourceMappingURL=spector.js.map
|
|
@@ -2,7 +2,6 @@ type DebugContextProps = {
|
|
|
2
2
|
debug?: boolean;
|
|
3
3
|
throwOnError?: boolean;
|
|
4
4
|
break?: string[];
|
|
5
|
-
webgl2?: boolean;
|
|
6
5
|
};
|
|
7
6
|
declare global {
|
|
8
7
|
var WebGLDebugUtils: any;
|
|
@@ -14,6 +13,6 @@ declare global {
|
|
|
14
13
|
* @see https://github.com/vorg/webgl-debug
|
|
15
14
|
*/
|
|
16
15
|
export declare function loadWebGLDeveloperTools(): Promise<void>;
|
|
17
|
-
export declare function makeDebugContext(gl:
|
|
16
|
+
export declare function makeDebugContext(gl: WebGL2RenderingContext, props?: DebugContextProps): WebGL2RenderingContext | null;
|
|
18
17
|
export {};
|
|
19
18
|
//# sourceMappingURL=webgl-developer-tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webgl-developer-tools.d.ts","sourceRoot":"","sources":["../../../src/context/debug/webgl-developer-tools.ts"],"names":[],"mappings":"AAUA,KAAK,iBAAiB,GAAG;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"webgl-developer-tools.d.ts","sourceRoot":"","sources":["../../../src/context/debug/webgl-developer-tools.ts"],"names":[],"mappings":"AAUA,KAAK,iBAAiB,GAAG;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAoBF,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,eAAe,EAAE,GAAG,CAAC;CAC1B;AAED;;;;;GAKG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC,CAO7D;AAID,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,sBAAsB,EAAE,KAAK,GAAE,iBAAsB,GAAG,sBAAsB,GAAG,IAAI,CAOzH"}
|
|
@@ -1,98 +1,124 @@
|
|
|
1
|
+
// luma.gl, MIT license
|
|
2
|
+
// Copyright (c) vis.gl contributors
|
|
1
3
|
import { log, loadScript } from '@luma.gl/core';
|
|
4
|
+
// Rename constant to prevent inlining. We need the full set of constants for generating debug strings.
|
|
2
5
|
import { GL as GLEnum } from '@luma.gl/constants';
|
|
3
6
|
import { isBrowser } from '@probe.gl/env';
|
|
4
7
|
const WEBGL_DEBUG_CDN_URL = 'https://unpkg.com/webgl-debug@2.0.1/index.js';
|
|
8
|
+
// Helper to get shared context data
|
|
5
9
|
function getContextData(gl) {
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
gl.luma = gl.luma || {};
|
|
11
|
+
return gl.luma;
|
|
8
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Loads Khronos WebGLDeveloperTools from CDN if not already installed
|
|
15
|
+
* const WebGLDebugUtils = require('webgl-debug');
|
|
16
|
+
* @see https://github.com/KhronosGroup/WebGLDeveloperTools
|
|
17
|
+
* @see https://github.com/vorg/webgl-debug
|
|
18
|
+
*/
|
|
9
19
|
export async function loadWebGLDeveloperTools() {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
20
|
+
if (isBrowser() && !globalThis.WebGLDebugUtils) {
|
|
21
|
+
globalThis.global = globalThis.global || globalThis;
|
|
22
|
+
// @ts-expect-error Developer tools expects global to be set
|
|
23
|
+
globalThis.global.module = {};
|
|
24
|
+
await loadScript(WEBGL_DEBUG_CDN_URL);
|
|
25
|
+
}
|
|
15
26
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
27
|
+
// Returns (a potentially new) context with debug instrumentation turned off or on.
|
|
28
|
+
// Note that this actually returns a new context
|
|
29
|
+
export function makeDebugContext(gl, props = {}) {
|
|
30
|
+
// Return null to ensure we don't try to create a context in this case (TODO what case is that?)
|
|
31
|
+
if (!gl) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return props.debug ? getDebugContext(gl, props) : getRealContext(gl);
|
|
22
35
|
}
|
|
36
|
+
// Returns the real context from either of the real/debug contexts
|
|
23
37
|
function getRealContext(gl) {
|
|
24
|
-
|
|
25
|
-
|
|
38
|
+
const data = getContextData(gl);
|
|
39
|
+
// If the context has a realContext member, it is a debug context so return the realContext
|
|
40
|
+
return data.realContext ? data.realContext : gl;
|
|
26
41
|
}
|
|
42
|
+
// Returns the debug context from either of the real/debug contexts
|
|
27
43
|
function getDebugContext(gl, props) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
...gl
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
if (!globalThis.WebGLDebugUtils) {
|
|
45
|
+
log.warn('webgl-debug not loaded')();
|
|
46
|
+
return gl;
|
|
47
|
+
}
|
|
48
|
+
const data = getContextData(gl);
|
|
49
|
+
// If this already has a debug context, return it.
|
|
50
|
+
if (data.debugContext) {
|
|
51
|
+
return data.debugContext;
|
|
52
|
+
}
|
|
53
|
+
// Create a new debug context
|
|
54
|
+
globalThis.WebGLDebugUtils.init({ ...GLEnum, ...gl });
|
|
55
|
+
const glDebug = globalThis.WebGLDebugUtils.makeDebugContext(gl, onGLError.bind(null, props), onValidateGLFunc.bind(null, props));
|
|
56
|
+
// Make sure we have all WebGL2 and extension constants (todo dynamic import to circumvent minification?)
|
|
57
|
+
for (const key in GLEnum) {
|
|
58
|
+
if (!(key in glDebug) && typeof GLEnum[key] === 'number') {
|
|
59
|
+
glDebug[key] = GLEnum[key];
|
|
60
|
+
}
|
|
44
61
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
62
|
+
// Ensure we have a clean prototype on the instrumented object
|
|
63
|
+
// Note: setPrototypeOf does come with perf warnings, but we already take a bigger perf reduction
|
|
64
|
+
// by synchronizing the WebGL errors after each WebGL call.
|
|
65
|
+
class WebGLDebugContext {
|
|
66
|
+
}
|
|
67
|
+
Object.setPrototypeOf(glDebug, Object.getPrototypeOf(gl));
|
|
68
|
+
Object.setPrototypeOf(WebGLDebugContext, glDebug);
|
|
69
|
+
const debugContext = Object.create(WebGLDebugContext);
|
|
70
|
+
// Store the debug context
|
|
71
|
+
data.realContext = gl;
|
|
72
|
+
data.debugContext = debugContext;
|
|
73
|
+
debugContext.debug = true;
|
|
74
|
+
// Return it
|
|
75
|
+
return debugContext;
|
|
54
76
|
}
|
|
77
|
+
// DEBUG TRACING
|
|
55
78
|
function getFunctionString(functionName, functionArgs) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
79
|
+
// Cover bug in webgl-debug-tools
|
|
80
|
+
functionArgs = Array.from(functionArgs).map(arg => arg === undefined ? 'undefined' : arg);
|
|
81
|
+
let args = globalThis.WebGLDebugUtils.glFunctionArgsToString(functionName, functionArgs);
|
|
82
|
+
args = `${args.slice(0, 100)}${args.length > 100 ? '...' : ''}`;
|
|
83
|
+
return `gl.${functionName}(${args})`;
|
|
60
84
|
}
|
|
61
85
|
function onGLError(props, err, functionName, args) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
86
|
+
// Cover bug in webgl-debug-tools
|
|
87
|
+
args = Array.from(args).map(arg => arg === undefined ? 'undefined' : arg);
|
|
88
|
+
const errorMessage = globalThis.WebGLDebugUtils.glEnumToString(err);
|
|
89
|
+
const functionArgs = globalThis.WebGLDebugUtils.glFunctionArgsToString(functionName, args);
|
|
90
|
+
const message = `${errorMessage} in gl.${functionName}(${functionArgs})`;
|
|
91
|
+
log.error(message)();
|
|
92
|
+
debugger; // eslint-disable-line
|
|
93
|
+
if (props.throwOnError) {
|
|
94
|
+
throw new Error(message);
|
|
95
|
+
}
|
|
72
96
|
}
|
|
97
|
+
// Don't generate function string until it is needed
|
|
73
98
|
function onValidateGLFunc(props, functionName, functionArgs) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
99
|
+
let functionString = '';
|
|
100
|
+
if (log.level >= 1) {
|
|
101
|
+
functionString = getFunctionString(functionName, functionArgs);
|
|
102
|
+
log.log(1, functionString)();
|
|
103
|
+
}
|
|
104
|
+
// If array of breakpoint strings supplied, check if any of them is contained in current GLEnum function
|
|
105
|
+
if (props.break && props.break.length > 0) {
|
|
106
|
+
functionString = functionString || getFunctionString(functionName, functionArgs);
|
|
107
|
+
const isBreakpoint = props.break.every((breakOn) => functionString.indexOf(breakOn) !== -1);
|
|
108
|
+
if (isBreakpoint) {
|
|
109
|
+
debugger; // eslint-disable-line
|
|
110
|
+
}
|
|
84
111
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
112
|
+
for (const arg of functionArgs) {
|
|
113
|
+
if (arg === undefined) {
|
|
114
|
+
functionString = functionString || getFunctionString(functionName, functionArgs);
|
|
115
|
+
if (props.throwOnError) {
|
|
116
|
+
throw new Error(`Undefined argument: ${functionString}`);
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
log.error(`Undefined argument: ${functionString}`)();
|
|
120
|
+
debugger; // eslint-disable-line
|
|
121
|
+
}
|
|
122
|
+
}
|
|
95
123
|
}
|
|
96
|
-
}
|
|
97
124
|
}
|
|
98
|
-
//# sourceMappingURL=webgl-developer-tools.js.map
|
|
@@ -7,7 +7,7 @@ export type { GLParameters };
|
|
|
7
7
|
* @note requires a `cache` object to be set on the context (gl.state.cache)
|
|
8
8
|
* This object is used to fill in any missing values for composite setter functions
|
|
9
9
|
*/
|
|
10
|
-
export declare function setGLParameters(device: Device |
|
|
10
|
+
export declare function setGLParameters(device: Device | WebGL2RenderingContext, parameters: GLParameters): void;
|
|
11
11
|
/**
|
|
12
12
|
* Reads the entire WebGL state from a context
|
|
13
13
|
|
|
@@ -22,12 +22,12 @@ export declare function setGLParameters(device: Device | WebGLRenderingContext,
|
|
|
22
22
|
* considered a very slow operation, to be used only if/when a context already manipulated
|
|
23
23
|
* by external code needs to be synchronized for the first time
|
|
24
24
|
*/
|
|
25
|
-
export declare function getGLParameters(device: Device |
|
|
25
|
+
export declare function getGLParameters(device: Device | WebGL2RenderingContext, parameters?: keyof GLParameters | (keyof GLParameters)[] | GLParameters): GLParameters;
|
|
26
26
|
/**
|
|
27
27
|
* Reset all parameters to a (almost) pure context state
|
|
28
28
|
* @note viewport and scissor will be set to the values in GL_PARAMETER_DEFAULTS,
|
|
29
29
|
* NOT the canvas size dimensions, so they will have to be properly set after
|
|
30
30
|
* calling this function.
|
|
31
31
|
*/
|
|
32
|
-
export declare function resetGLParameters(device: Device |
|
|
32
|
+
export declare function resetGLParameters(device: Device | WebGL2RenderingContext): void;
|
|
33
33
|
//# sourceMappingURL=unified-parameter-api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unified-parameter-api.d.ts","sourceRoot":"","sources":["../../../src/context/parameters/unified-parameter-api.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAUrD,YAAY,EAAC,YAAY,EAAC,CAAC;AAE3B;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"unified-parameter-api.d.ts","sourceRoot":"","sources":["../../../src/context/parameters/unified-parameter-api.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAUrD,YAAY,EAAC,YAAY,EAAC,CAAC;AAE3B;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,GAAG,sBAAsB,EACvC,UAAU,EAAE,YAAY,GACvB,IAAI,CAiDN;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,GAAG,sBAAsB,EACvC,UAAU,GAAE,MAAM,YAAY,GAAG,CAAC,MAAM,YAAY,CAAC,EAAE,GAAG,YAAoC,GAC7F,YAAY,CAqBd;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,sBAAsB,GAAG,IAAI,CAE/E"}
|