@luma.gl/webgl 8.5.17 → 8.5.19
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/dist.js +79 -71
- package/dist/dist.min.js +1 -1
- package/dist/es5/classes/resource.js +4 -2
- package/dist/es5/classes/resource.js.map +1 -1
- package/dist/es5/init.js +1 -1
- package/dist/esm/classes/resource.js +4 -2
- package/dist/esm/classes/resource.js.map +1 -1
- package/dist/esm/init.js +1 -1
- package/package.json +4 -4
- package/src/classes/resource.js +11 -3
package/dist/dist.js
CHANGED
|
@@ -97,9 +97,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
97
97
|
/******/ ({
|
|
98
98
|
|
|
99
99
|
/***/ "../../node_modules/@babel/runtime/helpers/esm/defineProperty.js":
|
|
100
|
-
|
|
101
|
-
!*** /Users/
|
|
102
|
-
|
|
100
|
+
/*!*********************************************************************************************!*\
|
|
101
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
|
|
102
|
+
\*********************************************************************************************/
|
|
103
103
|
/*! exports provided: default */
|
|
104
104
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
105
105
|
|
|
@@ -124,9 +124,9 @@ function _defineProperty(obj, key, value) {
|
|
|
124
124
|
/***/ }),
|
|
125
125
|
|
|
126
126
|
/***/ "../../node_modules/@probe.gl/env/dist/esm/index.js":
|
|
127
|
-
|
|
128
|
-
!*** /Users/
|
|
129
|
-
|
|
127
|
+
/*!********************************************************************************!*\
|
|
128
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/index.js ***!
|
|
129
|
+
\********************************************************************************/
|
|
130
130
|
/*! exports provided: VERSION, self, window, global, document, process, console, isBrowser, isBrowserMainThread, getBrowser, isMobile, isElectron, assert */
|
|
131
131
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
132
132
|
|
|
@@ -175,9 +175,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
175
175
|
/***/ }),
|
|
176
176
|
|
|
177
177
|
/***/ "../../node_modules/@probe.gl/env/dist/esm/lib/get-browser.js":
|
|
178
|
-
|
|
179
|
-
!*** /Users/
|
|
180
|
-
|
|
178
|
+
/*!******************************************************************************************!*\
|
|
179
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/lib/get-browser.js ***!
|
|
180
|
+
\******************************************************************************************/
|
|
181
181
|
/*! exports provided: isMobile, default */
|
|
182
182
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
183
183
|
|
|
@@ -235,9 +235,9 @@ function getBrowser(mockUserAgent) {
|
|
|
235
235
|
/***/ }),
|
|
236
236
|
|
|
237
237
|
/***/ "../../node_modules/@probe.gl/env/dist/esm/lib/globals.js":
|
|
238
|
-
|
|
239
|
-
!*** /Users/
|
|
240
|
-
|
|
238
|
+
/*!**************************************************************************************!*\
|
|
239
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/lib/globals.js ***!
|
|
240
|
+
\**************************************************************************************/
|
|
241
241
|
/*! exports provided: self, window, global, document, process, console */
|
|
242
242
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
243
243
|
|
|
@@ -269,9 +269,9 @@ const console_ = console;
|
|
|
269
269
|
/***/ }),
|
|
270
270
|
|
|
271
271
|
/***/ "../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js":
|
|
272
|
-
|
|
273
|
-
!*** /Users/
|
|
274
|
-
|
|
272
|
+
/*!*****************************************************************************************!*\
|
|
273
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/lib/is-browser.js ***!
|
|
274
|
+
\*****************************************************************************************/
|
|
275
275
|
/*! exports provided: default, isBrowserMainThread */
|
|
276
276
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
277
277
|
|
|
@@ -294,9 +294,9 @@ function isBrowserMainThread() {
|
|
|
294
294
|
/***/ }),
|
|
295
295
|
|
|
296
296
|
/***/ "../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js":
|
|
297
|
-
|
|
298
|
-
!*** /Users/
|
|
299
|
-
|
|
297
|
+
/*!******************************************************************************************!*\
|
|
298
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/lib/is-electron.js ***!
|
|
299
|
+
\******************************************************************************************/
|
|
300
300
|
/*! exports provided: default */
|
|
301
301
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
302
302
|
|
|
@@ -327,9 +327,9 @@ function isElectron(mockUserAgent) {
|
|
|
327
327
|
/***/ }),
|
|
328
328
|
|
|
329
329
|
/***/ "../../node_modules/@probe.gl/env/dist/esm/utils/assert.js":
|
|
330
|
-
|
|
331
|
-
!*** /Users/
|
|
332
|
-
|
|
330
|
+
/*!***************************************************************************************!*\
|
|
331
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/utils/assert.js ***!
|
|
332
|
+
\***************************************************************************************/
|
|
333
333
|
/*! exports provided: default */
|
|
334
334
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
335
335
|
|
|
@@ -346,9 +346,9 @@ function assert(condition, message) {
|
|
|
346
346
|
/***/ }),
|
|
347
347
|
|
|
348
348
|
/***/ "../../node_modules/@probe.gl/env/dist/esm/utils/globals.js":
|
|
349
|
-
|
|
350
|
-
!*** /Users/
|
|
351
|
-
|
|
349
|
+
/*!****************************************************************************************!*\
|
|
350
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/env/dist/esm/utils/globals.js ***!
|
|
351
|
+
\****************************************************************************************/
|
|
352
352
|
/*! exports provided: self, window, global, document, process, console, VERSION, isBrowser */
|
|
353
353
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
354
354
|
|
|
@@ -372,16 +372,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
372
372
|
|
|
373
373
|
|
|
374
374
|
|
|
375
|
-
const VERSION = true ? "8.5.
|
|
375
|
+
const VERSION = true ? "8.5.18" : undefined;
|
|
376
376
|
const isBrowser = Object(_lib_is_browser__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
377
377
|
//# sourceMappingURL=globals.js.map
|
|
378
378
|
|
|
379
379
|
/***/ }),
|
|
380
380
|
|
|
381
381
|
/***/ "../../node_modules/@probe.gl/log/dist/esm/index.js":
|
|
382
|
-
|
|
383
|
-
!*** /Users/
|
|
384
|
-
|
|
382
|
+
/*!********************************************************************************!*\
|
|
383
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/log/dist/esm/index.js ***!
|
|
384
|
+
\********************************************************************************/
|
|
385
385
|
/*! exports provided: default, Log, COLOR, addColor, leftPad, rightPad, autobind, LocalStorage, getHiResTimestamp */
|
|
386
386
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
387
387
|
|
|
@@ -428,9 +428,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
428
428
|
/***/ }),
|
|
429
429
|
|
|
430
430
|
/***/ "../../node_modules/@probe.gl/log/dist/esm/init.js":
|
|
431
|
-
|
|
432
|
-
!*** /Users/
|
|
433
|
-
|
|
431
|
+
/*!*******************************************************************************!*\
|
|
432
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/log/dist/esm/init.js ***!
|
|
433
|
+
\*******************************************************************************/
|
|
434
434
|
/*! no static exports found */
|
|
435
435
|
/***/ (function(module, exports) {
|
|
436
436
|
|
|
@@ -440,9 +440,9 @@ globalThis.probe = {};
|
|
|
440
440
|
/***/ }),
|
|
441
441
|
|
|
442
442
|
/***/ "../../node_modules/@probe.gl/log/dist/esm/log.js":
|
|
443
|
-
|
|
444
|
-
!*** /Users/
|
|
445
|
-
|
|
443
|
+
/*!******************************************************************************!*\
|
|
444
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/log/dist/esm/log.js ***!
|
|
445
|
+
\******************************************************************************/
|
|
446
446
|
/*! exports provided: default, normalizeArguments */
|
|
447
447
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
448
448
|
|
|
@@ -902,9 +902,9 @@ function getTableHeader(table) {
|
|
|
902
902
|
/***/ }),
|
|
903
903
|
|
|
904
904
|
/***/ "../../node_modules/@probe.gl/log/dist/esm/utils/assert.js":
|
|
905
|
-
|
|
906
|
-
!*** /Users/
|
|
907
|
-
|
|
905
|
+
/*!***************************************************************************************!*\
|
|
906
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/log/dist/esm/utils/assert.js ***!
|
|
907
|
+
\***************************************************************************************/
|
|
908
908
|
/*! exports provided: default */
|
|
909
909
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
910
910
|
|
|
@@ -921,9 +921,9 @@ function assert(condition, message) {
|
|
|
921
921
|
/***/ }),
|
|
922
922
|
|
|
923
923
|
/***/ "../../node_modules/@probe.gl/log/dist/esm/utils/autobind.js":
|
|
924
|
-
|
|
925
|
-
!*** /Users/
|
|
926
|
-
|
|
924
|
+
/*!*****************************************************************************************!*\
|
|
925
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/log/dist/esm/utils/autobind.js ***!
|
|
926
|
+
\*****************************************************************************************/
|
|
927
927
|
/*! exports provided: autobind */
|
|
928
928
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
929
929
|
|
|
@@ -948,9 +948,9 @@ function autobind(obj) {
|
|
|
948
948
|
/***/ }),
|
|
949
949
|
|
|
950
950
|
/***/ "../../node_modules/@probe.gl/log/dist/esm/utils/color.js":
|
|
951
|
-
|
|
952
|
-
!*** /Users/
|
|
953
|
-
|
|
951
|
+
/*!**************************************************************************************!*\
|
|
952
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/log/dist/esm/utils/color.js ***!
|
|
953
|
+
\**************************************************************************************/
|
|
954
954
|
/*! exports provided: COLOR, addColor */
|
|
955
955
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
956
956
|
|
|
@@ -1005,9 +1005,9 @@ function addColor(string, color, background) {
|
|
|
1005
1005
|
/***/ }),
|
|
1006
1006
|
|
|
1007
1007
|
/***/ "../../node_modules/@probe.gl/log/dist/esm/utils/formatters.js":
|
|
1008
|
-
|
|
1009
|
-
!*** /Users/
|
|
1010
|
-
|
|
1008
|
+
/*!*******************************************************************************************!*\
|
|
1009
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/log/dist/esm/utils/formatters.js ***!
|
|
1010
|
+
\*******************************************************************************************/
|
|
1011
1011
|
/*! exports provided: formatTime, leftPad, rightPad, formatValue, formatImage */
|
|
1012
1012
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1013
1013
|
|
|
@@ -1112,9 +1112,9 @@ function formatImage(image, message, scale) {
|
|
|
1112
1112
|
/***/ }),
|
|
1113
1113
|
|
|
1114
1114
|
/***/ "../../node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js":
|
|
1115
|
-
|
|
1116
|
-
!*** /Users/
|
|
1117
|
-
|
|
1115
|
+
/*!*************************************************************************************************!*\
|
|
1116
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js ***!
|
|
1117
|
+
\*************************************************************************************************/
|
|
1118
1118
|
/*! exports provided: getHiResTimestamp */
|
|
1119
1119
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1120
1120
|
|
|
@@ -1146,9 +1146,9 @@ function getHiResTimestamp() {
|
|
|
1146
1146
|
/***/ }),
|
|
1147
1147
|
|
|
1148
1148
|
/***/ "../../node_modules/@probe.gl/log/dist/esm/utils/local-storage.js":
|
|
1149
|
-
|
|
1150
|
-
!*** /Users/
|
|
1151
|
-
|
|
1149
|
+
/*!**********************************************************************************************!*\
|
|
1150
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/log/dist/esm/utils/local-storage.js ***!
|
|
1151
|
+
\**********************************************************************************************/
|
|
1152
1152
|
/*! exports provided: default */
|
|
1153
1153
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1154
1154
|
|
|
@@ -1227,9 +1227,9 @@ class LocalStorage {
|
|
|
1227
1227
|
/***/ }),
|
|
1228
1228
|
|
|
1229
1229
|
/***/ "../../node_modules/@probe.gl/stats/dist/esm/index.js":
|
|
1230
|
-
|
|
1231
|
-
!*** /Users/
|
|
1232
|
-
|
|
1230
|
+
/*!**********************************************************************************!*\
|
|
1231
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/stats/dist/esm/index.js ***!
|
|
1232
|
+
\**********************************************************************************/
|
|
1233
1233
|
/*! exports provided: Stats, Stat, _getHiResTimestamp */
|
|
1234
1234
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1235
1235
|
|
|
@@ -1252,9 +1252,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1252
1252
|
/***/ }),
|
|
1253
1253
|
|
|
1254
1254
|
/***/ "../../node_modules/@probe.gl/stats/dist/esm/lib/stat.js":
|
|
1255
|
-
|
|
1256
|
-
!*** /Users/
|
|
1257
|
-
|
|
1255
|
+
/*!*************************************************************************************!*\
|
|
1256
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/stats/dist/esm/lib/stat.js ***!
|
|
1257
|
+
\*************************************************************************************/
|
|
1258
1258
|
/*! exports provided: default */
|
|
1259
1259
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1260
1260
|
|
|
@@ -1420,9 +1420,9 @@ class Stat {
|
|
|
1420
1420
|
/***/ }),
|
|
1421
1421
|
|
|
1422
1422
|
/***/ "../../node_modules/@probe.gl/stats/dist/esm/lib/stats.js":
|
|
1423
|
-
|
|
1424
|
-
!*** /Users/
|
|
1425
|
-
|
|
1423
|
+
/*!**************************************************************************************!*\
|
|
1424
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/stats/dist/esm/lib/stats.js ***!
|
|
1425
|
+
\**************************************************************************************/
|
|
1426
1426
|
/*! exports provided: default */
|
|
1427
1427
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1428
1428
|
|
|
@@ -1518,9 +1518,9 @@ class Stats {
|
|
|
1518
1518
|
/***/ }),
|
|
1519
1519
|
|
|
1520
1520
|
/***/ "../../node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js":
|
|
1521
|
-
|
|
1522
|
-
!*** /Users/
|
|
1523
|
-
|
|
1521
|
+
/*!***************************************************************************************************!*\
|
|
1522
|
+
!*** /Users/missx/Source/luma.gl/node_modules/@probe.gl/stats/dist/esm/utils/hi-res-timestamp.js ***!
|
|
1523
|
+
\***************************************************************************************************/
|
|
1524
1524
|
/*! exports provided: default */
|
|
1525
1525
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1526
1526
|
|
|
@@ -1547,9 +1547,9 @@ function getHiResTimestamp() {
|
|
|
1547
1547
|
/***/ }),
|
|
1548
1548
|
|
|
1549
1549
|
/***/ "../../node_modules/process/browser.js":
|
|
1550
|
-
|
|
1551
|
-
!*** /Users/
|
|
1552
|
-
|
|
1550
|
+
/*!*******************************************************************!*\
|
|
1551
|
+
!*** /Users/missx/Source/luma.gl/node_modules/process/browser.js ***!
|
|
1552
|
+
\*******************************************************************/
|
|
1553
1553
|
/*! no static exports found */
|
|
1554
1554
|
/***/ (function(module, exports) {
|
|
1555
1555
|
|
|
@@ -8121,22 +8121,31 @@ class Resource {
|
|
|
8121
8121
|
stats.get(`${name}s Active`).decrementCount();
|
|
8122
8122
|
}
|
|
8123
8123
|
|
|
8124
|
+
/**
|
|
8125
|
+
* Track common allocated memory and memory based on particular gl context.
|
|
8126
|
+
* @param {number} bytes
|
|
8127
|
+
* @param {string} name
|
|
8128
|
+
*/
|
|
8124
8129
|
_trackAllocatedMemory(bytes, name = this[Symbol.toStringTag]) {
|
|
8125
8130
|
this._trackAllocatedMemoryForContext(bytes, name);
|
|
8126
8131
|
this._trackAllocatedMemoryForContext(bytes, name, this.gl.canvas && this.gl.canvas.id);
|
|
8132
|
+
this.byteLength = bytes;
|
|
8127
8133
|
}
|
|
8128
8134
|
|
|
8129
8135
|
_trackAllocatedMemoryForContext(bytes, name = this[Symbol.toStringTag], id = '') {
|
|
8130
8136
|
const stats = _init__WEBPACK_IMPORTED_MODULE_1__["lumaStats"].get(`Memory Usage${id}`);
|
|
8131
|
-
|
|
8132
8137
|
stats.get('GPU Memory').addCount(bytes);
|
|
8133
8138
|
stats.get(`${name} Memory`).addCount(bytes);
|
|
8134
|
-
this.byteLength = bytes;
|
|
8135
8139
|
}
|
|
8136
8140
|
|
|
8141
|
+
/**
|
|
8142
|
+
* Deallocate memory for common statistic and for each gl context as well.
|
|
8143
|
+
* @param {string} name
|
|
8144
|
+
*/
|
|
8137
8145
|
_trackDeallocatedMemory(name = this[Symbol.toStringTag]) {
|
|
8138
8146
|
this._trackDeallocatedMemoryForContext(name);
|
|
8139
8147
|
this._trackDeallocatedMemoryForContext(name, this.gl.canvas && this.gl.canvas.id);
|
|
8148
|
+
this.byteLength = 0;
|
|
8140
8149
|
}
|
|
8141
8150
|
|
|
8142
8151
|
_trackDeallocatedMemoryForContext(name = this[Symbol.toStringTag], id = '') {
|
|
@@ -8144,7 +8153,6 @@ class Resource {
|
|
|
8144
8153
|
|
|
8145
8154
|
stats.get('GPU Memory').subtractCount(this.byteLength);
|
|
8146
8155
|
stats.get(`${name} Memory`).subtractCount(this.byteLength);
|
|
8147
|
-
this.byteLength = 0;
|
|
8148
8156
|
}
|
|
8149
8157
|
}
|
|
8150
8158
|
|
|
@@ -12439,7 +12447,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12439
12447
|
// Version detection using babel plugin
|
|
12440
12448
|
/* global __VERSION__ */
|
|
12441
12449
|
// @ts-ignore
|
|
12442
|
-
const VERSION = true ? "8.5.
|
|
12450
|
+
const VERSION = true ? "8.5.18" : undefined;
|
|
12443
12451
|
|
|
12444
12452
|
const STARTUP_MESSAGE = 'set luma.log.level=1 (or higher) to trace rendering';
|
|
12445
12453
|
// Assign luma.log.level in console to control logging: \
|