@luma.gl/webgl 9.0.0-alpha.51 → 9.0.0-alpha.52
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/context/debug/webgl-developer-tools.d.ts.map +1 -1
- package/dist/context/debug/webgl-developer-tools.js +5 -4
- package/dist/context/debug/webgl-developer-tools.js.map +1 -1
- package/dist/dist.dev.js +676 -6
- package/dist.min.js +38 -38
- package/package.json +5 -5
- package/src/context/debug/webgl-developer-tools.ts +7 -6
- package/src/adapter/resources/.webgl-render-pipeline.ts.swp +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luma.gl/webgl",
|
|
3
|
-
"version": "9.0.0-alpha.
|
|
3
|
+
"version": "9.0.0-alpha.52",
|
|
4
4
|
"description": "WebGL2 adapter for the luma.gl API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
|
-
"@luma.gl/constants": "9.0.0-alpha.
|
|
48
|
-
"@luma.gl/core": "9.0.0-alpha.
|
|
47
|
+
"@luma.gl/constants": "9.0.0-alpha.52",
|
|
48
|
+
"@luma.gl/core": "9.0.0-alpha.52",
|
|
49
49
|
"@probe.gl/env": "^4.0.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@luma.gl/test-utils": "9.0.0-alpha.
|
|
52
|
+
"@luma.gl/test-utils": "9.0.0-alpha.52"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "41fa29f78dc260e5ef4c6a48e657fb5d23c96e8f"
|
|
55
55
|
}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
// Copyright (c) vis.gl contributors
|
|
3
3
|
|
|
4
4
|
import {log, loadScript} from '@luma.gl/core';
|
|
5
|
-
|
|
5
|
+
// Rename constant to prevent inlining. We need the full set of constants for generating debug strings.
|
|
6
|
+
import {GL as GLEnum} from '@luma.gl/constants';
|
|
6
7
|
import {isBrowser} from '@probe.gl/env'
|
|
7
8
|
|
|
8
9
|
const WEBGL_DEBUG_CDN_URL = 'https://unpkg.com/webgl-debug@2.0.1/index.js';
|
|
@@ -85,7 +86,7 @@ function getDebugContext(gl: WebGLRenderingContext, props: DebugContextProps): W
|
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
// Create a new debug context
|
|
88
|
-
globalThis.WebGLDebugUtils.init({...
|
|
89
|
+
globalThis.WebGLDebugUtils.init({...GLEnum, ...gl});
|
|
89
90
|
const glDebug = globalThis.WebGLDebugUtils.makeDebugContext(
|
|
90
91
|
gl,
|
|
91
92
|
onGLError.bind(null, props),
|
|
@@ -93,9 +94,9 @@ function getDebugContext(gl: WebGLRenderingContext, props: DebugContextProps): W
|
|
|
93
94
|
);
|
|
94
95
|
|
|
95
96
|
// Make sure we have all WebGL2 and extension constants (todo dynamic import to circumvent minification?)
|
|
96
|
-
for (const key in
|
|
97
|
-
if (!(key in glDebug) && typeof
|
|
98
|
-
glDebug[key] =
|
|
97
|
+
for (const key in GLEnum) {
|
|
98
|
+
if (!(key in glDebug) && typeof GLEnum[key] === 'number') {
|
|
99
|
+
glDebug[key] = GLEnum[key];
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
102
|
|
|
@@ -147,7 +148,7 @@ function onValidateGLFunc(props: DebugContextProps, functionName: string, functi
|
|
|
147
148
|
log.log(1, functionString)();
|
|
148
149
|
}
|
|
149
150
|
|
|
150
|
-
// If array of breakpoint strings supplied, check if any of them is contained in current
|
|
151
|
+
// If array of breakpoint strings supplied, check if any of them is contained in current GLEnum function
|
|
151
152
|
if (props.break && props.break.length > 0) {
|
|
152
153
|
functionString = functionString || getFunctionString(functionName, functionArgs);
|
|
153
154
|
const isBreakpoint = props.break.every((breakOn: string) => functionString.indexOf(breakOn) !== -1);
|
|
Binary file
|