@luma.gl/webgl 8.6.0-alpha.3 → 8.6.0-alpha.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/_deprecated/context-api.d.ts +85 -0
- package/dist/_deprecated/context-api.d.ts.map +1 -0
- package/dist/_deprecated/context-api.js +70 -0
- package/dist/_deprecated/context-api.js.map +1 -0
- package/dist/_deprecated/features.d.ts +27 -0
- package/dist/_deprecated/features.d.ts.map +1 -0
- package/dist/_deprecated/features.js +111 -0
- package/dist/_deprecated/features.js.map +1 -0
- package/dist/es5/_deprecated/context-api.js +110 -0
- package/dist/es5/_deprecated/context-api.js.map +1 -0
- package/dist/es5/_deprecated/features.js +118 -0
- package/dist/es5/_deprecated/features.js.map +1 -0
- package/dist/es5/index.js +73 -3
- package/dist/es5/index.js.map +1 -1
- package/dist/esm/_deprecated/context-api.js +70 -0
- package/dist/esm/_deprecated/context-api.js.map +1 -0
- package/dist/esm/_deprecated/features.js +111 -0
- package/dist/esm/_deprecated/features.js.map +1 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/_deprecated/context-api.ts +140 -0
- package/src/_deprecated/features.ts +159 -0
- package/src/index.ts +20 -9
package/dist/es5/index.js
CHANGED
|
@@ -325,6 +325,12 @@ Object.defineProperty(exports, "getDebugTableForProgramConfiguration", {
|
|
|
325
325
|
return _debugProgramConfiguration.getDebugTableForProgramConfiguration;
|
|
326
326
|
}
|
|
327
327
|
});
|
|
328
|
+
Object.defineProperty(exports, "getProgramBindings", {
|
|
329
|
+
enumerable: true,
|
|
330
|
+
get: function get() {
|
|
331
|
+
return _getProgramBindings.getProgramBindings;
|
|
332
|
+
}
|
|
333
|
+
});
|
|
328
334
|
Object.defineProperty(exports, "log", {
|
|
329
335
|
enumerable: true,
|
|
330
336
|
get: function get() {
|
|
@@ -367,10 +373,70 @@ Object.defineProperty(exports, "loadImage", {
|
|
|
367
373
|
return _api.loadImage;
|
|
368
374
|
}
|
|
369
375
|
});
|
|
370
|
-
Object.defineProperty(exports, "
|
|
376
|
+
Object.defineProperty(exports, "createGLContext", {
|
|
371
377
|
enumerable: true,
|
|
372
378
|
get: function get() {
|
|
373
|
-
return
|
|
379
|
+
return _contextApi.createGLContext;
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
Object.defineProperty(exports, "instrumentGLContext", {
|
|
383
|
+
enumerable: true,
|
|
384
|
+
get: function get() {
|
|
385
|
+
return _contextApi.instrumentGLContext;
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
Object.defineProperty(exports, "resizeGLContext", {
|
|
389
|
+
enumerable: true,
|
|
390
|
+
get: function get() {
|
|
391
|
+
return _contextApi.resizeGLContext;
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
Object.defineProperty(exports, "hasFeature", {
|
|
395
|
+
enumerable: true,
|
|
396
|
+
get: function get() {
|
|
397
|
+
return _contextApi.hasFeature;
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
Object.defineProperty(exports, "hasFeatures", {
|
|
401
|
+
enumerable: true,
|
|
402
|
+
get: function get() {
|
|
403
|
+
return _contextApi.hasFeatures;
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
Object.defineProperty(exports, "getFeatures", {
|
|
407
|
+
enumerable: true,
|
|
408
|
+
get: function get() {
|
|
409
|
+
return _contextApi.getFeatures;
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
Object.defineProperty(exports, "getContextInfo", {
|
|
413
|
+
enumerable: true,
|
|
414
|
+
get: function get() {
|
|
415
|
+
return _contextApi.getContextInfo;
|
|
416
|
+
}
|
|
417
|
+
});
|
|
418
|
+
Object.defineProperty(exports, "getGLContextInfo", {
|
|
419
|
+
enumerable: true,
|
|
420
|
+
get: function get() {
|
|
421
|
+
return _contextApi.getGLContextInfo;
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
Object.defineProperty(exports, "getContextLimits", {
|
|
425
|
+
enumerable: true,
|
|
426
|
+
get: function get() {
|
|
427
|
+
return _contextApi.getContextLimits;
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
Object.defineProperty(exports, "getContextDebugInfo", {
|
|
431
|
+
enumerable: true,
|
|
432
|
+
get: function get() {
|
|
433
|
+
return _contextApi.getContextDebugInfo;
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
Object.defineProperty(exports, "FEATURES", {
|
|
437
|
+
enumerable: true,
|
|
438
|
+
get: function get() {
|
|
439
|
+
return _features.FEATURES;
|
|
374
440
|
}
|
|
375
441
|
});
|
|
376
442
|
|
|
@@ -438,9 +504,13 @@ var _debugVertexArray = require("./debug/debug-vertex-array");
|
|
|
438
504
|
|
|
439
505
|
var _debugProgramConfiguration = require("./debug/debug-program-configuration");
|
|
440
506
|
|
|
507
|
+
var _getProgramBindings = require("./helpers/get-program-bindings");
|
|
508
|
+
|
|
441
509
|
var _api = require("@luma.gl/api");
|
|
442
510
|
|
|
443
|
-
var
|
|
511
|
+
var _contextApi = require("./_deprecated/context-api");
|
|
512
|
+
|
|
513
|
+
var _features = require("./_deprecated/features");
|
|
444
514
|
|
|
445
515
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
446
516
|
|
package/dist/es5/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA;;AAIA;;AAGA;;AAGA;;AACA;;AAGA;;AAIA;;AAEA;;AAEA;;AAGA;;AAEA;;AAEA;;AAIA;;AAEA;;AAGA;;AAWA;;AAEA;;AAEA;;AAEA;;AAEA;;AACA;;AAEA;;AAKA;;AASA;;AAKA;;AAMA;;AAKA;;AAOA;;AAGA;;AACA;;AACA;;AACA;;AAGA;;AAMA;;AAKA;;AAcA","sourcesContent":["// luma.gl Base WebGL wrapper library\n// Provides simple class/function wrappers around the low level webgl objects\n// These classes are intentionally close to the WebGL API\n// but make it easier to use.\n// Higher level abstractions can be built on these classes\n\n// Initialize any global state\nimport './init';\n\n// export type {WebGLDeviceProps, WebGLDeviceInfo, WebGPUDeviceLimits} from './lib/webgl-device';\nexport type {WebGLDeviceProps} from './adapter/webgl-device';\nexport {default as WebGLDevice, getWebGLDevice} from './adapter/webgl-device';\n\n// UTILS\nexport {requestAnimationFrame, cancelAnimationFrame} from './webgl-utils/request-animation-frame';\n\n// WebGL Functions\nexport {cloneTextureFrom} from './webgl-utils/texture-utils';\nexport {getKeyValue, getKey} from './webgl-utils/constants-to-keys';\n\n// WebGL Helper Classes\nexport {default as Accessor} from './classes/accessor';\n\n// WebGL1 classes\nexport type {BufferProps} from '@luma.gl/api';\nexport {default as Buffer} from './classes/webgl-buffer';\nexport type {Texture2DProps} from './classes/texture-2d';\nexport {default as Texture2D} from './classes/texture-2d';\nexport type {TextureCubeProps} from './classes/texture-cube';\nexport {default as TextureCube} from './classes/texture-cube';\n\nexport type {ProgramProps} from './classes/program';\nexport {default as Program} from './classes/program';\nexport type {FramebufferProps} from './classes/framebuffer';\nexport {default as Framebuffer} from './classes/framebuffer';\nexport type {RenderbufferProps} from './classes/renderbuffer';\nexport {default as Renderbuffer} from './classes/renderbuffer';\n\n// Classic luma.gl classes (For backwards compatibility)\nexport type {ShaderProps} from './classes/shader';\nexport {Shader, VertexShader, FragmentShader} from './classes/shader';\n\nexport {clear, clearBuffer} from './classes/clear';\n\n// Copy and Blit\nexport {\n readPixelsToArray,\n readPixelsToBuffer,\n copyToDataUrl,\n copyToImage,\n copyToTexture,\n blit\n} from './classes/copy-and-blit';\n\n// WebGL2 classes & Extensions\nexport type {QueryProps} from './classes/query';\nexport {default as Query} from './classes/query';\nexport type {Texture3DProps} from './classes/texture-3d';\nexport {default as Texture3D} from './classes/texture-3d';\nexport type {TransformFeedbackProps} from './classes/transform-feedback';\nexport {default as TransformFeedback} from './classes/transform-feedback';\nexport type {VertexArrayObjectProps} from './classes/vertex-array-object';\nexport {default as VertexArrayObject} from './classes/vertex-array-object';\nexport type {VertexArrayProps} from './classes/vertex-array';\nexport {default as VertexArray} from './classes/vertex-array';\nexport {default as UniformBufferLayout} from './classes/uniform-buffer-layout';\n\nexport {setDeviceParameters} from './adapter/converters/set-device-parameters';\n\n// experimental WebGL exports\n\n// UTILS\nexport {\n isWebGL,\n isWebGL2,\n getWebGL2Context,\n assertWebGLContext,\n assertWebGL2Context\n} from './context/context/webgl-checks';\n\n// Device ratio\nexport {cssToDeviceRatio, cssToDevicePixels} from './context/context/device-pixels';\n\n// Unified parameter API\n\nexport type {GLParameters} from './context/parameters/webgl-parameters';\nexport {\n getParameters,\n setParameters,\n resetParameters\n} from './context/parameters/unified-parameter-api';\n\nexport {\n withParameters\n} from './context/state-tracker/with-parameters';\n\n// State tracking\nexport {\n trackContextState,\n pushContextState,\n popContextState\n} from './context/state-tracker/track-context-state';\n\n// Polyfills (supports a subset of WebGL2 APIs on WebGL1 contexts)\nexport {polyfillContext} from './context/polyfill/polyfill-context';\n\n// INTERNAL\nexport {parseUniformName, getUniformSetter} from './classes/uniforms';\nexport {getDebugTableForUniforms} from './debug/debug-uniforms';\nexport {getDebugTableForVertexArray} from './debug/debug-vertex-array';\nexport {getDebugTableForProgramConfiguration} from './debug/debug-program-configuration';\n\n// HELPERS - EXPERIMENTAL\nexport {getProgramBindings} from './helpers/get-program-bindings';\n\n// DEPRECATED\n\n// Deprecated re-exports\nexport {lumaStats} from './init';\nexport {log, assert, uid, isObjectEmpty} from '@luma.gl/api';\nexport {setPathPrefix, loadFile, loadImage} from '@luma.gl/api';\n\n// GLTOOLS\nexport type {GLContextOptions} from './_deprecated/context-api';\nexport {\n createGLContext,\n instrumentGLContext,\n resizeGLContext,\n hasFeature,\n hasFeatures,\n getFeatures,\n getContextInfo,\n getGLContextInfo,\n getContextLimits,\n getContextDebugInfo\n} from './_deprecated/context-api';\n\n// Features\nexport {FEATURES} from './_deprecated/features';\n\n// REMOVED in v8.7\n// getShaderInfo,\n// getShaderName\n// getShaderVersion\n"],"file":"index.js"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import GL from '@luma.gl/constants';
|
|
2
|
+
import { WebGLDevice } from '@luma.gl/webgl';
|
|
3
|
+
import { FEATURES } from './features';
|
|
4
|
+
export function createGLContext(options) {
|
|
5
|
+
const webglDevice = new WebGLDevice(options);
|
|
6
|
+
return webglDevice.gl;
|
|
7
|
+
}
|
|
8
|
+
export function instrumentGLContext(gl, options) {
|
|
9
|
+
const webglDevice = WebGLDevice.attach(gl, options);
|
|
10
|
+
return webglDevice.gl;
|
|
11
|
+
}
|
|
12
|
+
export function resizeGLContext(gl, options) {
|
|
13
|
+
const webglDevice = WebGLDevice.attach(gl);
|
|
14
|
+
webglDevice.resize(options);
|
|
15
|
+
}
|
|
16
|
+
export function hasFeatures(gl, features) {
|
|
17
|
+
const webglDevice = WebGLDevice.attach(gl);
|
|
18
|
+
const normalizedFeatures = Array.isArray(features) ? features : [features];
|
|
19
|
+
const deviceFeatures = normalizedFeatures.map(feature => getDeviceFeature(feature));
|
|
20
|
+
return deviceFeatures.every(feature => webglDevice.webglFeatures.has(feature));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function getDeviceFeature(feature) {
|
|
24
|
+
return feature.toLowerCase().replace('webgl-', '').replace('-', '_');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function hasFeature(gl, feature) {
|
|
28
|
+
return hasFeatures(gl, feature);
|
|
29
|
+
}
|
|
30
|
+
export function getFeatures(gl) {
|
|
31
|
+
const webglDevice = WebGLDevice.attach(gl);
|
|
32
|
+
const featureMap = {};
|
|
33
|
+
|
|
34
|
+
for (const feature in FEATURES) {
|
|
35
|
+
featureMap[feature] = webglDevice.webglFeatures.has(feature);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return featureMap;
|
|
39
|
+
}
|
|
40
|
+
export function getContextDebugInfo(gl) {
|
|
41
|
+
const webglDevice = WebGLDevice.attach(gl);
|
|
42
|
+
const info = webglDevice.info;
|
|
43
|
+
return { ...webglDevice.info,
|
|
44
|
+
vendorMasked: webglDevice.info.vendor,
|
|
45
|
+
rendererMasked: webglDevice.info.renderer
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function getGLContextInfo(gl) {
|
|
49
|
+
const info = getContextDebugInfo(gl);
|
|
50
|
+
return {
|
|
51
|
+
[GL.UNMASKED_VENDOR_WEBGL]: info.vendor,
|
|
52
|
+
[GL.UNMASKED_RENDERER_WEBGL]: info.renderer,
|
|
53
|
+
[GL.VENDOR]: info.vendorMasked,
|
|
54
|
+
[GL.RENDERER]: info.rendererMasked,
|
|
55
|
+
[GL.VERSION]: info.version
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function getContextInfo(gl) {
|
|
59
|
+
return { ...getContextDebugInfo(gl),
|
|
60
|
+
...getContextLimits(gl),
|
|
61
|
+
info: getGLContextInfo(gl)
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export function getContextLimits(gl) {
|
|
65
|
+
const webglDevice = WebGLDevice.attach(gl);
|
|
66
|
+
return {
|
|
67
|
+
limits: webglDevice.webglLimits
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=context-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/_deprecated/context-api.ts"],"names":["GL","WebGLDevice","FEATURES","createGLContext","options","webglDevice","gl","instrumentGLContext","attach","resizeGLContext","resize","hasFeatures","features","normalizedFeatures","Array","isArray","deviceFeatures","map","feature","getDeviceFeature","every","webglFeatures","has","toLowerCase","replace","hasFeature","getFeatures","featureMap","getContextDebugInfo","info","vendorMasked","vendor","rendererMasked","renderer","getGLContextInfo","UNMASKED_VENDOR_WEBGL","UNMASKED_RENDERER_WEBGL","VENDOR","RENDERER","VERSION","version","getContextInfo","getContextLimits","limits","webglLimits"],"mappings":"AAKA,OAAOA,EAAP,MAAe,oBAAf;AACA,SAAQC,WAAR,QAA4C,gBAA5C;AACA,SAAQC,QAAR,QAAuB,YAAvB;AAOA,OAAO,SAASC,eAAT,CAAyBC,OAAzB,EAAmF;AACxF,QAAMC,WAAW,GAAG,IAAIJ,WAAJ,CAAgBG,OAAhB,CAApB;AAEA,SAAOC,WAAW,CAACC,EAAnB;AACD;AAGD,OAAO,SAASC,mBAAT,CACLD,EADK,EAELF,OAFK,EAGkB;AACvB,QAAMC,WAAW,GAAGJ,WAAW,CAACO,MAAZ,CAAmBF,EAAnB,EAAuBF,OAAvB,CAApB;AACA,SAAOC,WAAW,CAACC,EAAnB;AACD;AAiBD,OAAO,SAASG,eAAT,CACLH,EADK,EAELF,OAFK,E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removed in luma.gl v9 or v10.\n\n/* eslint-disable quotes */\nimport GL from '@luma.gl/constants';\nimport {WebGLDevice, WebGLDeviceProps} from '@luma.gl/webgl';\nimport {FEATURES} from './features';\n\nexport type GLContextOptions = WebGLDeviceProps & {\n throwOnError?: boolean; // If set to false, return `null` if context creation fails.\n};\n\n/** @deprecated Use `new WebGLDevice()` or `luma.createDevice()` */\nexport function createGLContext(options?: GLContextOptions): WebGLRenderingContext | null {\n const webglDevice = new WebGLDevice(options);\n // Note: OK to return the context, it holds on to the device\n return webglDevice.gl;\n}\n\n/** @deprecated Use `WebGLDevice.attach()` */\nexport function instrumentGLContext(\n gl: WebGLRenderingContext | WebGL2RenderingContext,\n options?: GLContextOptions\n): WebGLRenderingContext {\n const webglDevice = WebGLDevice.attach(gl, options);\n return webglDevice.gl;\n}\n\n/**\n * Resize the canvas' drawing buffer.\n *\n * Can match the canvas CSS size, and optionally also consider devicePixelRatio\n * Can be called every frame\n *\n * Regardless of size, the drawing buffer will always be scaled to the viewport, but\n * for best visual results, usually set to either:\n * canvas CSS width x canvas CSS height\n * canvas CSS width * devicePixelRatio x canvas CSS height * devicePixelRatio\n * See http://webgl2fundamentals.org/webgl/lessons/webgl-resizing-the-canvas.html\n *\n * resizeGLContext(gl, {width, height, useDevicePixels})\n * @deprecated Use WebGLDevice.resize()\n */\nexport function resizeGLContext(\n gl: WebGLRenderingContext,\n options?: {\n width?: number;\n height?: number;\n useDevicePixels?: boolean | number;\n }\n) {\n const webglDevice = WebGLDevice.attach(gl);\n webglDevice.resize(options);\n}\n\n/** \n * Check one or more features\n * @deprecated Use `WebGLDevice.features.has()`\n*/\nexport function hasFeatures(gl: WebGLRenderingContext, features: string | string[]): boolean {\n const webglDevice = WebGLDevice.attach(gl);\n const normalizedFeatures = Array.isArray(features) ? features : [features];\n const deviceFeatures = normalizedFeatures.map(feature => getDeviceFeature(feature));\n return deviceFeatures.every((feature) => webglDevice.webglFeatures.has(feature));\n}\n\nfunction getDeviceFeature(feature) {\n return feature.toLowerCase().replace('webgl-', '').replace('-', '_');\n}\n\n/**\n * Check one feature\n * @deprecated Use `WebGLDevice.features`\n */\nexport function hasFeature(gl: WebGLRenderingContext, feature: string): boolean {\n return hasFeatures(gl, feature);\n}\n\n/**\n * Return a map of supported features\n * @deprecated Use `WebGLDevice.features`\n */\nexport function getFeatures(gl: WebGLRenderingContext): Record<string, boolean> {\n const webglDevice = WebGLDevice.attach(gl);\n const featureMap: Record<string, boolean> = {};\n for (const feature in FEATURES) {\n featureMap[feature] = webglDevice.webglFeatures.has(feature);\n }\n return featureMap;\n}\n\n/**\n * Provides strings identifying the GPU vendor and driver.\n * https://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/\n *\n * @deprecated Use `WebGLDevice.info`\n */\nexport function getContextDebugInfo(gl: WebGLRenderingContext): {\n vendor: string;\n renderer: string;\n vendorMasked: string;\n rendererMasked: string;\n version: string;\n} {\n const webglDevice = WebGLDevice.attach(gl);\n const info = webglDevice.info;\n return {\n ...webglDevice.info,\n vendorMasked: webglDevice.info.vendor,\n rendererMasked: webglDevice.info.renderer\n };\n}\n\n/** @deprecated Use `WebGLDevice.info` */\nexport function getGLContextInfo(gl) {\n const info = getContextDebugInfo(gl);\n return {\n [GL.UNMASKED_VENDOR_WEBGL]: info.vendor,\n [GL.UNMASKED_RENDERER_WEBGL]: info.renderer,\n [GL.VENDOR]: info.vendorMasked,\n [GL.RENDERER]: info.rendererMasked,\n [GL.VERSION]: info.version,\n };\n}\n\n/** @deprecated Use `WebGLDevice.info` and `WebGLDevice.limits` */\nexport function getContextInfo(gl) {\n return {\n ...getContextDebugInfo(gl),\n ...getContextLimits(gl),\n info: getGLContextInfo(gl),\n };\n}\n\n/** @deprecated Use `WebGLDevice.limits` */\nexport function getContextLimits(gl) {\n const webglDevice = WebGLDevice.attach(gl);\n return {limits: webglDevice.webglLimits};\n}\n"],"file":"context-api.js"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import GL from '@luma.gl/constants';
|
|
2
|
+
import { isWebGL2 } from '@luma.gl/webgl';
|
|
3
|
+
import { assert } from '@luma.gl/api';
|
|
4
|
+
export const FEATURES = {
|
|
5
|
+
WEBGL2: 'WEBGL2',
|
|
6
|
+
VERTEX_ARRAY_OBJECT: 'VERTEX_ARRAY_OBJECT',
|
|
7
|
+
TIMER_QUERY: 'TIMER_QUERY',
|
|
8
|
+
INSTANCED_RENDERING: 'INSTANCED_RENDERING',
|
|
9
|
+
MULTIPLE_RENDER_TARGETS: 'MULTIPLE_RENDER_TARGETS',
|
|
10
|
+
ELEMENT_INDEX_UINT32: 'ELEMENT_INDEX_UINT32',
|
|
11
|
+
BLEND_EQUATION_MINMAX: 'BLEND_EQUATION_MINMAX',
|
|
12
|
+
FLOAT_BLEND: 'FLOAT_BLEND',
|
|
13
|
+
COLOR_ENCODING_SRGB: 'COLOR_ENCODING_SRGB',
|
|
14
|
+
TEXTURE_DEPTH: 'TEXTURE_DEPTH',
|
|
15
|
+
TEXTURE_FLOAT: 'TEXTURE_FLOAT',
|
|
16
|
+
TEXTURE_HALF_FLOAT: 'TEXTURE_HALF_FLOAT',
|
|
17
|
+
TEXTURE_FILTER_LINEAR_FLOAT: 'TEXTURE_FILTER_LINEAR_FLOAT',
|
|
18
|
+
TEXTURE_FILTER_LINEAR_HALF_FLOAT: 'TEXTURE_FILTER_LINEAR_HALF_FLOAT',
|
|
19
|
+
TEXTURE_FILTER_ANISOTROPIC: 'TEXTURE_FILTER_ANISOTROPIC',
|
|
20
|
+
COLOR_ATTACHMENT_RGBA32F: 'COLOR_ATTACHMENT_RGBA32F',
|
|
21
|
+
COLOR_ATTACHMENT_FLOAT: 'COLOR_ATTACHMENT_FLOAT',
|
|
22
|
+
COLOR_ATTACHMENT_HALF_FLOAT: 'COLOR_ATTACHMENT_HALF_FLOAT',
|
|
23
|
+
GLSL_FRAG_DATA: 'GLSL_FRAG_DATA',
|
|
24
|
+
GLSL_FRAG_DEPTH: 'GLSL_FRAG_DEPTH',
|
|
25
|
+
GLSL_DERIVATIVES: 'GLSL_DERIVATIVES',
|
|
26
|
+
GLSL_TEXTURE_LOD: 'GLSL_TEXTURE_LOD'
|
|
27
|
+
};
|
|
28
|
+
export function getWebGLFeatures(gl) {
|
|
29
|
+
gl.getExtension('EXT_color_buffer_float');
|
|
30
|
+
gl.getExtension('WEBGL_color_buffer_float');
|
|
31
|
+
gl.getExtension('EXT_float_blend');
|
|
32
|
+
const features = new Set();
|
|
33
|
+
|
|
34
|
+
for (const feature in WEBGL_FEATURES) {
|
|
35
|
+
if (isFeatureSupported(gl, feature)) {
|
|
36
|
+
features.add(feature);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return features;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function isFeatureSupported(gl, cap) {
|
|
44
|
+
const feature = WEBGL_FEATURES[cap];
|
|
45
|
+
assert(feature, cap);
|
|
46
|
+
const [webgl1Feature, webgl2Feature] = feature;
|
|
47
|
+
const featureDefinition = isWebGL2(gl) ? webgl2Feature : webgl1Feature;
|
|
48
|
+
|
|
49
|
+
if (cap === FEATURES.COLOR_ATTACHMENT_RGBA32F && !isWebGL2(gl)) {
|
|
50
|
+
return checkFloat32ColorAttachment(gl);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (typeof featureDefinition === 'string') {
|
|
54
|
+
return Boolean(gl.getExtension(featureDefinition));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return featureDefinition;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function checkFloat32ColorAttachment(gl) {
|
|
61
|
+
let texture;
|
|
62
|
+
let framebuffer;
|
|
63
|
+
|
|
64
|
+
try {
|
|
65
|
+
const texture = gl.createTexture();
|
|
66
|
+
gl.bindTexture(GL.TEXTURE_2D, texture);
|
|
67
|
+
const level = 0;
|
|
68
|
+
const internalFormat = gl.RGBA;
|
|
69
|
+
const width = 1;
|
|
70
|
+
const height = 1;
|
|
71
|
+
const border = 0;
|
|
72
|
+
const srcFormat = gl.RGBA;
|
|
73
|
+
const srcType = gl.UNSIGNED_BYTE;
|
|
74
|
+
const pixel = new Uint8Array([0, 0, 255, 255]);
|
|
75
|
+
gl.texImage2D(gl.TEXTURE_2D, level, internalFormat, width, height, border, srcFormat, srcType, pixel);
|
|
76
|
+
const framebuffer = gl.createFramebuffer();
|
|
77
|
+
gl.bindFramebuffer(GL.FRAMEBUFFER, framebuffer);
|
|
78
|
+
gl.framebufferTexture2D(GL.FRAMEBUFFER, GL.COLOR_ATTACHMENT0, GL.TEXTURE_2D, texture, 0);
|
|
79
|
+
const status = gl.checkFramebufferStatus(GL.FRAMEBUFFER) === GL.FRAMEBUFFER_COMPLETE;
|
|
80
|
+
return status;
|
|
81
|
+
} finally {
|
|
82
|
+
gl.deleteTexture(texture);
|
|
83
|
+
gl.deleteFramebuffer(framebuffer);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const WEBGL_FEATURES = {
|
|
88
|
+
[FEATURES.WEBGL2]: [false, true],
|
|
89
|
+
[FEATURES.VERTEX_ARRAY_OBJECT]: ['OES_vertex_array_object', true],
|
|
90
|
+
[FEATURES.TIMER_QUERY]: ['EXT_disjoint_timer_query', 'EXT_disjoint_timer_query_webgl2'],
|
|
91
|
+
[FEATURES.INSTANCED_RENDERING]: ['ANGLE_instanced_arrays', true],
|
|
92
|
+
[FEATURES.MULTIPLE_RENDER_TARGETS]: ['WEBGL_draw_buffers', true],
|
|
93
|
+
[FEATURES.ELEMENT_INDEX_UINT32]: ['OES_element_index_uint', true],
|
|
94
|
+
[FEATURES.BLEND_EQUATION_MINMAX]: ['EXT_blend_minmax', true],
|
|
95
|
+
[FEATURES.FLOAT_BLEND]: ['EXT_float_blend', 'EXT_float_blend'],
|
|
96
|
+
[FEATURES.COLOR_ENCODING_SRGB]: ['EXT_sRGB', true],
|
|
97
|
+
[FEATURES.TEXTURE_DEPTH]: ['WEBGL_depth_texture', true],
|
|
98
|
+
[FEATURES.TEXTURE_FLOAT]: ['OES_texture_float', true],
|
|
99
|
+
[FEATURES.TEXTURE_HALF_FLOAT]: ['OES_texture_half_float', true],
|
|
100
|
+
[FEATURES.TEXTURE_FILTER_LINEAR_FLOAT]: ['OES_texture_float_linear', 'OES_texture_float_linear'],
|
|
101
|
+
[FEATURES.TEXTURE_FILTER_LINEAR_HALF_FLOAT]: ['OES_texture_half_float_linear', 'OES_texture_half_float_linear'],
|
|
102
|
+
[FEATURES.TEXTURE_FILTER_ANISOTROPIC]: ['EXT_texture_filter_anisotropic', 'EXT_texture_filter_anisotropic'],
|
|
103
|
+
[FEATURES.COLOR_ATTACHMENT_RGBA32F]: [false, 'EXT_color_buffer_float'],
|
|
104
|
+
[FEATURES.COLOR_ATTACHMENT_FLOAT]: [false, 'EXT_color_buffer_float'],
|
|
105
|
+
[FEATURES.COLOR_ATTACHMENT_HALF_FLOAT]: ['EXT_color_buffer_half_float', 'EXT_color_buffer_half_float'],
|
|
106
|
+
[FEATURES.GLSL_FRAG_DATA]: ['WEBGL_draw_buffers', true],
|
|
107
|
+
[FEATURES.GLSL_FRAG_DEPTH]: ['EXT_frag_depth', true],
|
|
108
|
+
[FEATURES.GLSL_DERIVATIVES]: ['OES_standard_derivatives', true],
|
|
109
|
+
[FEATURES.GLSL_TEXTURE_LOD]: ['EXT_shader_texture_lod', true]
|
|
110
|
+
};
|
|
111
|
+
//# sourceMappingURL=features.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/_deprecated/features.ts"],"names":["GL","isWebGL2","assert","FEATURES","WEBGL2","VERTEX_ARRAY_OBJECT","TIMER_QUERY","INSTANCED_RENDERING","MULTIPLE_RENDER_TARGETS","ELEMENT_INDEX_UINT32","BLEND_EQUATION_MINMAX","FLOAT_BLEND","COLOR_ENCODING_SRGB","TEXTURE_DEPTH","TEXTURE_FLOAT","TEXTURE_HALF_FLOAT","TEXTURE_FILTER_LINEAR_FLOAT","TEXTURE_FILTER_LINEAR_HALF_FLOAT","TEXTURE_FILTER_ANISOTROPIC","COLOR_ATTACHMENT_RGBA32F","COLOR_ATTACHMENT_FLOAT","COLOR_ATTACHMENT_HALF_FLOAT","GLSL_FRAG_DATA","GLSL_FRAG_DEPTH","GLSL_DERIVATIVES","GLSL_TEXTURE_LOD","getWebGLFeatures","gl","getExtension","features","Set","feature","WEBGL_FEATURES","isFeatureSupported","add","cap","webgl1Feature","webgl2Feature","featureDefinition","checkFloat32ColorAttachment","Boolean","texture","framebuffer","createTexture","bindTexture","TEXTURE_2D","level","internalFormat","RGBA","width","height","border","srcFormat","srcType","UNSIGNED_BYTE","pixel","Uint8Array","texImage2D","createFramebuffer","bindFramebuffer","FRAMEBUFFER","framebufferTexture2D","COLOR_ATTACHMENT0","status","checkFramebufferStatus","FRAMEBUFFER_COMPLETE","deleteTexture","deleteFramebuffer"],"mappings":"AAIA,OAAOA,EAAP,MAAe,oBAAf;AACA,SAAQC,QAAR,QAAuB,gBAAvB;AACA,SAAQC,MAAR,QAAqB,cAArB;AAGA,OAAO,MAAMC,QAAQ,GAAG;AACtBC,EAAAA,MAAM,EAAE,QADc;AAItBC,EAAAA,mBAAmB,EAAE,qBAJC;AAKtBC,EAAAA,WAAW,EAAE,aALS;AAMtBC,EAAAA,mBAAmB,EAAE,qBANC;AAOtBC,EAAAA,uBAAuB,EAAE,yBAPH;AAUtBC,EAAAA,oBAAoB,EAAE,sBAVA;AAatBC,EAAAA,qBAAqB,EAAE,uBAbD;AActBC,EAAAA,WAAW,EAAE,aAdS;AAiBtBC,EAAAA,mBAAmB,EAAE,qBAjBC;AAoBtBC,EAAAA,aAAa,EAAE,eApBO;AAqBtBC,EAAAA,aAAa,EAAE,eArBO;AAsBtBC,EAAAA,kBAAkB,EAAE,oBAtBE;AAwBtBC,EAAAA,2BAA2B,EAAE,6BAxBP;AAyBtBC,EAAAA,gCAAgC,EAAE,kCAzBZ;AA0BtBC,EAAAA,0BAA0B,EAAE,4B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GAA6C,CAAC,+BAAD,EAAkC,+BAAlC,CAzB8B;AA0B3E,GAACd,QAAQ,CAACe,0BAAV,GAAuC,CAAC,gCAAD,EAAmC,gCAAnC,CA1BoC;AA6B3E,GAACf,QAAQ,CAACgB,wBAAV,GAAqC,CAAC,KAAD,EAAQ,wBAAR,CA7BsC;AA8B3E,GAAChB,QAAQ,CAACiB,sBAAV,GAAmC,CAAC,KAAD,EAAQ,wBAAR,CA9BwC;AA+B3E,GAACjB,QAAQ,CAACkB,2BAAV,GAAwC,CAAC,6BAAD,EAAgC,6BAAhC,CA/BmC;AAkC3E,GAAClB,QAAQ,CAACmB,cAAV,GAA2B,CAAC,oBAAD,EAAuB,IAAvB,CAlCgD;AAmC3E,GAACnB,QAAQ,CAACoB,eAAV,GAA4B,CAAC,gBAAD,EAAmB,IAAnB,CAnC+C;AAoC3E,GAACpB,QAAQ,CAACqB,gBAAV,GAA6B,CAAC,0BAAD,EAA6B,IAA7B,CApC8C;AAqC3E,GAACrB,QAAQ,CAACsB,gBAAV,GAA6B,CAAC,wBAAD,EAA2B,IAA3B;AArC8C,CAA7E","sourcesContent":["// Feature detection for WebGL\n// Provides a function that enables simple checking of which WebGL features are\n// available in an WebGL1 or WebGL2 environment.\n\nimport GL from '@luma.gl/constants';\nimport {isWebGL2} from '@luma.gl/webgl';\nimport {assert} from '@luma.gl/api';\n\n// TODO - this should be the default export, test cases need updating\nexport const FEATURES = {\n WEBGL2: 'WEBGL2',\n\n // API SUPPORT\n VERTEX_ARRAY_OBJECT: 'VERTEX_ARRAY_OBJECT',\n TIMER_QUERY: 'TIMER_QUERY',\n INSTANCED_RENDERING: 'INSTANCED_RENDERING',\n MULTIPLE_RENDER_TARGETS: 'MULTIPLE_RENDER_TARGETS',\n\n // FEATURES\n ELEMENT_INDEX_UINT32: 'ELEMENT_INDEX_UINT32',\n\n // BLENDING\n BLEND_EQUATION_MINMAX: 'BLEND_EQUATION_MINMAX',\n FLOAT_BLEND: 'FLOAT_BLEND',\n\n // TEXTURES: '// TEXTURES', RENDERBUFFERS\n COLOR_ENCODING_SRGB: 'COLOR_ENCODING_SRGB',\n\n // TEXTURES\n TEXTURE_DEPTH: 'TEXTURE_DEPTH',\n TEXTURE_FLOAT: 'TEXTURE_FLOAT',\n TEXTURE_HALF_FLOAT: 'TEXTURE_HALF_FLOAT',\n\n TEXTURE_FILTER_LINEAR_FLOAT: 'TEXTURE_FILTER_LINEAR_FLOAT',\n TEXTURE_FILTER_LINEAR_HALF_FLOAT: 'TEXTURE_FILTER_LINEAR_HALF_FLOAT',\n TEXTURE_FILTER_ANISOTROPIC: 'TEXTURE_FILTER_ANISOTROPIC',\n\n // FRAMEBUFFERS: '// FRAMEBUFFERS', TEXTURES AND RENDERBUFFERS\n COLOR_ATTACHMENT_RGBA32F: 'COLOR_ATTACHMENT_RGBA32F',\n COLOR_ATTACHMENT_FLOAT: 'COLOR_ATTACHMENT_FLOAT',\n COLOR_ATTACHMENT_HALF_FLOAT: 'COLOR_ATTACHMENT_HALF_FLOAT',\n\n // GLSL extensions\n GLSL_FRAG_DATA: 'GLSL_FRAG_DATA',\n GLSL_FRAG_DEPTH: 'GLSL_FRAG_DEPTH',\n GLSL_DERIVATIVES: 'GLSL_DERIVATIVES',\n GLSL_TEXTURE_LOD: 'GLSL_TEXTURE_LOD'\n};\n\n/** Extract all WebGL features */\nexport function getWebGLFeatures(gl: WebGLRenderingContext): Set<string> {\n // Enable EXT_float_blend first: https://developer.mozilla.org/en-US/docs/Web/API/EXT_float_blend\n gl.getExtension('EXT_color_buffer_float');\n gl.getExtension('WEBGL_color_buffer_float');\n gl.getExtension('EXT_float_blend');\n\n const features = new Set<string>();\n for (const feature in WEBGL_FEATURES) {\n if (isFeatureSupported(gl, feature)) {\n features.add(feature);\n }\n }\n return features;\n}\n\nfunction isFeatureSupported(gl: WebGLRenderingContext, cap: string): boolean {\n const feature = WEBGL_FEATURES[cap];\n assert(feature, cap);\n\n const [webgl1Feature, webgl2Feature] = feature;\n\n // Get extension name from table\n const featureDefinition = isWebGL2(gl) ? webgl2Feature : webgl1Feature;\n\n if (cap === FEATURES.COLOR_ATTACHMENT_RGBA32F && !isWebGL2(gl)) {\n return checkFloat32ColorAttachment(gl);\n }\n\n // Check if the value is dependent on checking one or more extensions\n if (typeof featureDefinition === 'string') {\n return Boolean(gl.getExtension(featureDefinition));\n }\n\n return featureDefinition;\n}\n\n\n// function to test if Float 32 bit format texture can be bound as color attachment\nfunction checkFloat32ColorAttachment(gl: WebGLRenderingContext) {\n let texture: WebGLTexture;\n let framebuffer: WebGLFramebuffer;\n try {\n const texture = gl.createTexture();\n gl.bindTexture(GL.TEXTURE_2D, texture);\n\n const level = 0;\n const internalFormat = gl.RGBA;\n const width = 1;\n const height = 1;\n const border = 0;\n const srcFormat = gl.RGBA;\n const srcType = gl.UNSIGNED_BYTE;\n const pixel = new Uint8Array([0, 0, 255, 255]); // opaque blue\n gl.texImage2D(gl.TEXTURE_2D, level, internalFormat,\n width, height, border, srcFormat, srcType,\n pixel);\n\n const framebuffer = gl.createFramebuffer();\n gl.bindFramebuffer(GL.FRAMEBUFFER, framebuffer);\n gl.framebufferTexture2D(GL.FRAMEBUFFER, GL.COLOR_ATTACHMENT0, GL.TEXTURE_2D, texture, 0);\n const status = gl.checkFramebufferStatus(GL.FRAMEBUFFER) === GL.FRAMEBUFFER_COMPLETE;\n return status;\n } finally {\n gl.deleteTexture(texture);\n gl.deleteFramebuffer(framebuffer);\n }\n}\n\n// Defines luma.gl \"feature\" names and semantics\n// Format: 'feature-name: [WebGL1 support, WebGL2 support] / [WebGL1 and WebGL2 support]', when support is 'string' it is the name of the extension\nconst WEBGL_FEATURES: Record<string, [boolean | string, boolean | string]> = {\n [FEATURES.WEBGL2]: [false, true],\n\n // API SUPPORT\n [FEATURES.VERTEX_ARRAY_OBJECT]: ['OES_vertex_array_object', true],\n [FEATURES.TIMER_QUERY]: ['EXT_disjoint_timer_query', 'EXT_disjoint_timer_query_webgl2'],\n [FEATURES.INSTANCED_RENDERING]: ['ANGLE_instanced_arrays', true],\n [FEATURES.MULTIPLE_RENDER_TARGETS]: ['WEBGL_draw_buffers', true],\n\n // FEATURES\n [FEATURES.ELEMENT_INDEX_UINT32]: ['OES_element_index_uint', true],\n\n // BLENDING\n [FEATURES.BLEND_EQUATION_MINMAX]: ['EXT_blend_minmax', true],\n [FEATURES.FLOAT_BLEND]: ['EXT_float_blend', 'EXT_float_blend'],\n\n // TEXTURES, RENDERBUFFERS\n [FEATURES.COLOR_ENCODING_SRGB]: ['EXT_sRGB', true],\n\n // TEXTURES\n [FEATURES.TEXTURE_DEPTH]: ['WEBGL_depth_texture', true],\n [FEATURES.TEXTURE_FLOAT]: ['OES_texture_float', true],\n [FEATURES.TEXTURE_HALF_FLOAT]: ['OES_texture_half_float', true],\n\n [FEATURES.TEXTURE_FILTER_LINEAR_FLOAT]: ['OES_texture_float_linear', 'OES_texture_float_linear'],\n [FEATURES.TEXTURE_FILTER_LINEAR_HALF_FLOAT]: ['OES_texture_half_float_linear', 'OES_texture_half_float_linear'],\n [FEATURES.TEXTURE_FILTER_ANISOTROPIC]: ['EXT_texture_filter_anisotropic', 'EXT_texture_filter_anisotropic'],\n\n // FRAMEBUFFERS, TEXTURES AND RENDERBUFFERS\n [FEATURES.COLOR_ATTACHMENT_RGBA32F]: [false, 'EXT_color_buffer_float'], // Note override check\n [FEATURES.COLOR_ATTACHMENT_FLOAT]: [false, 'EXT_color_buffer_float'],\n [FEATURES.COLOR_ATTACHMENT_HALF_FLOAT]: ['EXT_color_buffer_half_float', 'EXT_color_buffer_half_float'],\n\n // GLSL extensions\n [FEATURES.GLSL_FRAG_DATA]: ['WEBGL_draw_buffers', true],\n [FEATURES.GLSL_FRAG_DEPTH]: ['EXT_frag_depth', true],\n [FEATURES.GLSL_DERIVATIVES]: ['OES_standard_derivatives', true],\n [FEATURES.GLSL_TEXTURE_LOD]: ['EXT_shader_texture_lod', true]\n};\n"],"file":"features.js"}
|
package/dist/esm/index.js
CHANGED
|
@@ -30,8 +30,10 @@ export { parseUniformName, getUniformSetter } from './classes/uniforms';
|
|
|
30
30
|
export { getDebugTableForUniforms } from './debug/debug-uniforms';
|
|
31
31
|
export { getDebugTableForVertexArray } from './debug/debug-vertex-array';
|
|
32
32
|
export { getDebugTableForProgramConfiguration } from './debug/debug-program-configuration';
|
|
33
|
+
export { getProgramBindings } from './helpers/get-program-bindings';
|
|
33
34
|
export { lumaStats } from './init';
|
|
34
35
|
export { log, assert, uid, isObjectEmpty } from '@luma.gl/api';
|
|
35
36
|
export { setPathPrefix, loadFile, loadImage } from '@luma.gl/api';
|
|
36
|
-
export {
|
|
37
|
+
export { createGLContext, instrumentGLContext, resizeGLContext, hasFeature, hasFeatures, getFeatures, getContextInfo, getGLContextInfo, getContextLimits, getContextDebugInfo } from './_deprecated/context-api';
|
|
38
|
+
export { FEATURES } from './_deprecated/features';
|
|
37
39
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"names":["default","WebGLDevice","getWebGLDevice","requestAnimationFrame","cancelAnimationFrame","cloneTextureFrom","getKeyValue","getKey","Accessor","Buffer","Texture2D","TextureCube","Program","Framebuffer","Renderbuffer","Shader","VertexShader","FragmentShader","clear","clearBuffer","readPixelsToArray","readPixelsToBuffer","copyToDataUrl","copyToImage","copyToTexture","blit","Query","Texture3D","TransformFeedback","VertexArrayObject","VertexArray","UniformBufferLayout","setDeviceParameters","isWebGL","isWebGL2","getWebGL2Context","assertWebGLContext","assertWebGL2Context","cssToDeviceRatio","cssToDevicePixels","getParameters","setParameters","resetParameters","withParameters","trackContextState","pushContextState","popContextState","polyfillContext","parseUniformName","getUniformSetter","getDebugTableForUniforms","getDebugTableForVertexArray","getDebugTableForProgramConfiguration","lumaStats","log","assert","uid","isObjectEmpty","setPathPrefix","loadFile","loadImage","
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"names":["default","WebGLDevice","getWebGLDevice","requestAnimationFrame","cancelAnimationFrame","cloneTextureFrom","getKeyValue","getKey","Accessor","Buffer","Texture2D","TextureCube","Program","Framebuffer","Renderbuffer","Shader","VertexShader","FragmentShader","clear","clearBuffer","readPixelsToArray","readPixelsToBuffer","copyToDataUrl","copyToImage","copyToTexture","blit","Query","Texture3D","TransformFeedback","VertexArrayObject","VertexArray","UniformBufferLayout","setDeviceParameters","isWebGL","isWebGL2","getWebGL2Context","assertWebGLContext","assertWebGL2Context","cssToDeviceRatio","cssToDevicePixels","getParameters","setParameters","resetParameters","withParameters","trackContextState","pushContextState","popContextState","polyfillContext","parseUniformName","getUniformSetter","getDebugTableForUniforms","getDebugTableForVertexArray","getDebugTableForProgramConfiguration","getProgramBindings","lumaStats","log","assert","uid","isObjectEmpty","setPathPrefix","loadFile","loadImage","createGLContext","instrumentGLContext","resizeGLContext","hasFeature","hasFeatures","getFeatures","getContextInfo","getGLContextInfo","getContextLimits","getContextDebugInfo","FEATURES"],"mappings":"AAOA,OAAO,QAAP;AAIA,SAAQA,OAAO,IAAIC,WAAnB,EAAgCC,cAAhC,QAAqD,wBAArD;AAGA,SAAQC,qBAAR,EAA+BC,oBAA/B,QAA0D,uCAA1D;AAGA,SAAQC,gBAAR,QAA+B,6BAA/B;AACA,SAAQC,WAAR,EAAqBC,MAArB,QAAkC,iCAAlC;AAGA,SAAQP,OAAO,IAAIQ,QAAnB,QAAkC,oBAAlC;AAIA,SAAQR,OAAO,IAAIS,MAAnB,QAAgC,wBAAhC;AAEA,SAAQT,OAAO,IAAIU,SAAnB,QAAmC,sBAAnC;AAEA,SAAQV,OAAO,IAAIW,WAAnB,QAAqC,wBAArC;AAGA,SAAQX,OAAO,IAAIY,OAAnB,QAAiC,mBAAjC;AAEA,SAAQZ,OAAO,IAAIa,WAAnB,QAAqC,uBAArC;AAEA,SAAQb,OAAO,IAAIc,YAAnB,QAAsC,wBAAtC;AAIA,SAAQC,MAAR,EAAgBC,YAAhB,EAA8BC,cA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,EAGEC,eAHF,EAIEC,UAJF,EAKEC,WALF,EAMEC,WANF,EAOEC,cAPF,EAQEC,gBARF,EASEC,gBATF,EAUEC,mBAVF,QAWO,2BAXP;AAcA,SAAQC,QAAR,QAAuB,wBAAvB","sourcesContent":["// luma.gl Base WebGL wrapper library\n// Provides simple class/function wrappers around the low level webgl objects\n// These classes are intentionally close to the WebGL API\n// but make it easier to use.\n// Higher level abstractions can be built on these classes\n\n// Initialize any global state\nimport './init';\n\n// export type {WebGLDeviceProps, WebGLDeviceInfo, WebGPUDeviceLimits} from './lib/webgl-device';\nexport type {WebGLDeviceProps} from './adapter/webgl-device';\nexport {default as WebGLDevice, getWebGLDevice} from './adapter/webgl-device';\n\n// UTILS\nexport {requestAnimationFrame, cancelAnimationFrame} from './webgl-utils/request-animation-frame';\n\n// WebGL Functions\nexport {cloneTextureFrom} from './webgl-utils/texture-utils';\nexport {getKeyValue, getKey} from './webgl-utils/constants-to-keys';\n\n// WebGL Helper Classes\nexport {default as Accessor} from './classes/accessor';\n\n// WebGL1 classes\nexport type {BufferProps} from '@luma.gl/api';\nexport {default as Buffer} from './classes/webgl-buffer';\nexport type {Texture2DProps} from './classes/texture-2d';\nexport {default as Texture2D} from './classes/texture-2d';\nexport type {TextureCubeProps} from './classes/texture-cube';\nexport {default as TextureCube} from './classes/texture-cube';\n\nexport type {ProgramProps} from './classes/program';\nexport {default as Program} from './classes/program';\nexport type {FramebufferProps} from './classes/framebuffer';\nexport {default as Framebuffer} from './classes/framebuffer';\nexport type {RenderbufferProps} from './classes/renderbuffer';\nexport {default as Renderbuffer} from './classes/renderbuffer';\n\n// Classic luma.gl classes (For backwards compatibility)\nexport type {ShaderProps} from './classes/shader';\nexport {Shader, VertexShader, FragmentShader} from './classes/shader';\n\nexport {clear, clearBuffer} from './classes/clear';\n\n// Copy and Blit\nexport {\n readPixelsToArray,\n readPixelsToBuffer,\n copyToDataUrl,\n copyToImage,\n copyToTexture,\n blit\n} from './classes/copy-and-blit';\n\n// WebGL2 classes & Extensions\nexport type {QueryProps} from './classes/query';\nexport {default as Query} from './classes/query';\nexport type {Texture3DProps} from './classes/texture-3d';\nexport {default as Texture3D} from './classes/texture-3d';\nexport type {TransformFeedbackProps} from './classes/transform-feedback';\nexport {default as TransformFeedback} from './classes/transform-feedback';\nexport type {VertexArrayObjectProps} from './classes/vertex-array-object';\nexport {default as VertexArrayObject} from './classes/vertex-array-object';\nexport type {VertexArrayProps} from './classes/vertex-array';\nexport {default as VertexArray} from './classes/vertex-array';\nexport {default as UniformBufferLayout} from './classes/uniform-buffer-layout';\n\nexport {setDeviceParameters} from './adapter/converters/set-device-parameters';\n\n// experimental WebGL exports\n\n// UTILS\nexport {\n isWebGL,\n isWebGL2,\n getWebGL2Context,\n assertWebGLContext,\n assertWebGL2Context\n} from './context/context/webgl-checks';\n\n// Device ratio\nexport {cssToDeviceRatio, cssToDevicePixels} from './context/context/device-pixels';\n\n// Unified parameter API\n\nexport type {GLParameters} from './context/parameters/webgl-parameters';\nexport {\n getParameters,\n setParameters,\n resetParameters\n} from './context/parameters/unified-parameter-api';\n\nexport {\n withParameters\n} from './context/state-tracker/with-parameters';\n\n// State tracking\nexport {\n trackContextState,\n pushContextState,\n popContextState\n} from './context/state-tracker/track-context-state';\n\n// Polyfills (supports a subset of WebGL2 APIs on WebGL1 contexts)\nexport {polyfillContext} from './context/polyfill/polyfill-context';\n\n// INTERNAL\nexport {parseUniformName, getUniformSetter} from './classes/uniforms';\nexport {getDebugTableForUniforms} from './debug/debug-uniforms';\nexport {getDebugTableForVertexArray} from './debug/debug-vertex-array';\nexport {getDebugTableForProgramConfiguration} from './debug/debug-program-configuration';\n\n// HELPERS - EXPERIMENTAL\nexport {getProgramBindings} from './helpers/get-program-bindings';\n\n// DEPRECATED\n\n// Deprecated re-exports\nexport {lumaStats} from './init';\nexport {log, assert, uid, isObjectEmpty} from '@luma.gl/api';\nexport {setPathPrefix, loadFile, loadImage} from '@luma.gl/api';\n\n// GLTOOLS\nexport type {GLContextOptions} from './_deprecated/context-api';\nexport {\n createGLContext,\n instrumentGLContext,\n resizeGLContext,\n hasFeature,\n hasFeatures,\n getFeatures,\n getContextInfo,\n getGLContextInfo,\n getContextLimits,\n getContextDebugInfo\n} from './_deprecated/context-api';\n\n// Features\nexport {FEATURES} from './_deprecated/features';\n\n// REMOVED in v8.7\n// getShaderInfo,\n// getShaderName\n// getShaderVersion\n"],"file":"index.js"}
|
package/dist/index.d.ts
CHANGED
|
@@ -44,8 +44,11 @@ export { parseUniformName, getUniformSetter } from './classes/uniforms';
|
|
|
44
44
|
export { getDebugTableForUniforms } from './debug/debug-uniforms';
|
|
45
45
|
export { getDebugTableForVertexArray } from './debug/debug-vertex-array';
|
|
46
46
|
export { getDebugTableForProgramConfiguration } from './debug/debug-program-configuration';
|
|
47
|
+
export { getProgramBindings } from './helpers/get-program-bindings';
|
|
47
48
|
export { lumaStats } from './init';
|
|
48
49
|
export { log, assert, uid, isObjectEmpty } from '@luma.gl/api';
|
|
49
50
|
export { setPathPrefix, loadFile, loadImage } from '@luma.gl/api';
|
|
50
|
-
export {
|
|
51
|
+
export type { GLContextOptions } from './_deprecated/context-api';
|
|
52
|
+
export { createGLContext, instrumentGLContext, resizeGLContext, hasFeature, hasFeatures, getFeatures, getContextInfo, getGLContextInfo, getContextLimits, getContextDebugInfo } from './_deprecated/context-api';
|
|
53
|
+
export { FEATURES } from './_deprecated/features';
|
|
51
54
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,QAAQ,CAAC;AAGhB,YAAY,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAC,OAAO,IAAI,WAAW,EAAE,cAAc,EAAC,MAAM,wBAAwB,CAAC;AAG9E,OAAO,EAAC,qBAAqB,EAAE,oBAAoB,EAAC,M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B,EAAC,MAAM,iCAAiC,CAAC;AAIpF,YAAY,EAAC,YAAY,EAAC,MAAM,uCAAuC,CAAC;AACxE,OAAO,EACL,aAAa,EACb,aAAa,EACb,eAAe,EAChB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EACL,cAAc,EACf,MAAM,yCAAyC,CAAC;AAGjD,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EAChB,MAAM,6CAA6C,CAAC;AAGrD,OAAO,EAAC,eAAe,EAAC,MAAM,qCAAqC,CAAC;AAGpE,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAC,wBAAwB,EAAC,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAC,2BAA2B,EAAC,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAC,oCAAoC,EAAC,MAAM,qCAAqC,CAAC;AAGzF,OAAO,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAKlE,OAAO,EAAC,SAAS,EAAC,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,aAAa,EAAC,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAC,MAAM,cAAc,CAAC;AAGhE,YAAY,EAAC,gBAAgB,EAAC,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,WAAW,EACX,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -30,8 +30,10 @@ export { parseUniformName, getUniformSetter } from './classes/uniforms';
|
|
|
30
30
|
export { getDebugTableForUniforms } from './debug/debug-uniforms';
|
|
31
31
|
export { getDebugTableForVertexArray } from './debug/debug-vertex-array';
|
|
32
32
|
export { getDebugTableForProgramConfiguration } from './debug/debug-program-configuration';
|
|
33
|
+
export { getProgramBindings } from './helpers/get-program-bindings';
|
|
33
34
|
export { lumaStats } from './init';
|
|
34
35
|
export { log, assert, uid, isObjectEmpty } from '@luma.gl/api';
|
|
35
36
|
export { setPathPrefix, loadFile, loadImage } from '@luma.gl/api';
|
|
36
|
-
export {
|
|
37
|
+
export { createGLContext, instrumentGLContext, resizeGLContext, hasFeature, hasFeatures, getFeatures, getContextInfo, getGLContextInfo, getContextLimits, getContextDebugInfo } from './_deprecated/context-api';
|
|
38
|
+
export { FEATURES } from './_deprecated/features';
|
|
37
39
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":["default","WebGLDevice","getWebGLDevice","requestAnimationFrame","cancelAnimationFrame","cloneTextureFrom","getKeyValue","getKey","Accessor","Buffer","Texture2D","TextureCube","Program","Framebuffer","Renderbuffer","Shader","VertexShader","FragmentShader","clear","clearBuffer","readPixelsToArray","readPixelsToBuffer","copyToDataUrl","copyToImage","copyToTexture","blit","Query","Texture3D","TransformFeedback","VertexArrayObject","VertexArray","UniformBufferLayout","setDeviceParameters","isWebGL","isWebGL2","getWebGL2Context","assertWebGLContext","assertWebGL2Context","cssToDeviceRatio","cssToDevicePixels","getParameters","setParameters","resetParameters","withParameters","trackContextState","pushContextState","popContextState","polyfillContext","parseUniformName","getUniformSetter","getDebugTableForUniforms","getDebugTableForVertexArray","getDebugTableForProgramConfiguration","lumaStats","log","assert","uid","isObjectEmpty","setPathPrefix","loadFile","loadImage","
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":["default","WebGLDevice","getWebGLDevice","requestAnimationFrame","cancelAnimationFrame","cloneTextureFrom","getKeyValue","getKey","Accessor","Buffer","Texture2D","TextureCube","Program","Framebuffer","Renderbuffer","Shader","VertexShader","FragmentShader","clear","clearBuffer","readPixelsToArray","readPixelsToBuffer","copyToDataUrl","copyToImage","copyToTexture","blit","Query","Texture3D","TransformFeedback","VertexArrayObject","VertexArray","UniformBufferLayout","setDeviceParameters","isWebGL","isWebGL2","getWebGL2Context","assertWebGLContext","assertWebGL2Context","cssToDeviceRatio","cssToDevicePixels","getParameters","setParameters","resetParameters","withParameters","trackContextState","pushContextState","popContextState","polyfillContext","parseUniformName","getUniformSetter","getDebugTableForUniforms","getDebugTableForVertexArray","getDebugTableForProgramConfiguration","getProgramBindings","lumaStats","log","assert","uid","isObjectEmpty","setPathPrefix","loadFile","loadImage","createGLContext","instrumentGLContext","resizeGLContext","hasFeature","hasFeatures","getFeatures","getContextInfo","getGLContextInfo","getContextLimits","getContextDebugInfo","FEATURES"],"mappings":"AAOA,OAAO,QAAP;AAIA,SAAQA,OAAO,IAAIC,WAAnB,EAAgCC,cAAhC,QAAqD,wBAArD;AAGA,SAAQC,qBAAR,EAA+BC,oBAA/B,QAA0D,uCAA1D;AAGA,SAAQC,gBAAR,QAA+B,6BAA/B;AACA,SAAQC,WAAR,EAAqBC,MAArB,QAAkC,iCAAlC;AAGA,SAAQP,OAAO,IAAIQ,QAAnB,QAAkC,oBAAlC;AAIA,SAAQR,OAAO,IAAIS,MAAnB,QAAgC,wBAAhC;AAEA,SAAQT,OAAO,IAAIU,SAAnB,QAAmC,sBAAnC;AAEA,SAAQV,OAAO,IAAIW,WAAnB,QAAqC,wBAArC;AAGA,SAAQX,OAAO,IAAIY,OAAnB,QAAiC,mBAAjC;AAEA,SAAQZ,OAAO,IAAIa,WAAnB,QAAqC,uBAArC;AAEA,SAAQb,OAAO,IAAIc,YAAnB,QAAsC,wBAAtC;AAIA,SAAQC,MAAR,EAAgBC,YAAhB,EAA8BC,cAA9B,QAAmD,kBAAnD;AAEA,SAAQC,KAAR,EAAeC,WAAf,QAAiC,iBAAjC;AAGA,SACEC,iBADF,EAEEC,kBAFF,EAGEC,aAHF,EAIEC,WAJF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AQC,QAAR,QAAuB,wBAAvB","sourcesContent":["// luma.gl Base WebGL wrapper library\n// Provides simple class/function wrappers around the low level webgl objects\n// These classes are intentionally close to the WebGL API\n// but make it easier to use.\n// Higher level abstractions can be built on these classes\n\n// Initialize any global state\nimport './init';\n\n// export type {WebGLDeviceProps, WebGLDeviceInfo, WebGPUDeviceLimits} from './lib/webgl-device';\nexport type {WebGLDeviceProps} from './adapter/webgl-device';\nexport {default as WebGLDevice, getWebGLDevice} from './adapter/webgl-device';\n\n// UTILS\nexport {requestAnimationFrame, cancelAnimationFrame} from './webgl-utils/request-animation-frame';\n\n// WebGL Functions\nexport {cloneTextureFrom} from './webgl-utils/texture-utils';\nexport {getKeyValue, getKey} from './webgl-utils/constants-to-keys';\n\n// WebGL Helper Classes\nexport {default as Accessor} from './classes/accessor';\n\n// WebGL1 classes\nexport type {BufferProps} from '@luma.gl/api';\nexport {default as Buffer} from './classes/webgl-buffer';\nexport type {Texture2DProps} from './classes/texture-2d';\nexport {default as Texture2D} from './classes/texture-2d';\nexport type {TextureCubeProps} from './classes/texture-cube';\nexport {default as TextureCube} from './classes/texture-cube';\n\nexport type {ProgramProps} from './classes/program';\nexport {default as Program} from './classes/program';\nexport type {FramebufferProps} from './classes/framebuffer';\nexport {default as Framebuffer} from './classes/framebuffer';\nexport type {RenderbufferProps} from './classes/renderbuffer';\nexport {default as Renderbuffer} from './classes/renderbuffer';\n\n// Classic luma.gl classes (For backwards compatibility)\nexport type {ShaderProps} from './classes/shader';\nexport {Shader, VertexShader, FragmentShader} from './classes/shader';\n\nexport {clear, clearBuffer} from './classes/clear';\n\n// Copy and Blit\nexport {\n readPixelsToArray,\n readPixelsToBuffer,\n copyToDataUrl,\n copyToImage,\n copyToTexture,\n blit\n} from './classes/copy-and-blit';\n\n// WebGL2 classes & Extensions\nexport type {QueryProps} from './classes/query';\nexport {default as Query} from './classes/query';\nexport type {Texture3DProps} from './classes/texture-3d';\nexport {default as Texture3D} from './classes/texture-3d';\nexport type {TransformFeedbackProps} from './classes/transform-feedback';\nexport {default as TransformFeedback} from './classes/transform-feedback';\nexport type {VertexArrayObjectProps} from './classes/vertex-array-object';\nexport {default as VertexArrayObject} from './classes/vertex-array-object';\nexport type {VertexArrayProps} from './classes/vertex-array';\nexport {default as VertexArray} from './classes/vertex-array';\nexport {default as UniformBufferLayout} from './classes/uniform-buffer-layout';\n\nexport {setDeviceParameters} from './adapter/converters/set-device-parameters';\n\n// experimental WebGL exports\n\n// UTILS\nexport {\n isWebGL,\n isWebGL2,\n getWebGL2Context,\n assertWebGLContext,\n assertWebGL2Context\n} from './context/context/webgl-checks';\n\n// Device ratio\nexport {cssToDeviceRatio, cssToDevicePixels} from './context/context/device-pixels';\n\n// Unified parameter API\n\nexport type {GLParameters} from './context/parameters/webgl-parameters';\nexport {\n getParameters,\n setParameters,\n resetParameters\n} from './context/parameters/unified-parameter-api';\n\nexport {\n withParameters\n} from './context/state-tracker/with-parameters';\n\n// State tracking\nexport {\n trackContextState,\n pushContextState,\n popContextState\n} from './context/state-tracker/track-context-state';\n\n// Polyfills (supports a subset of WebGL2 APIs on WebGL1 contexts)\nexport {polyfillContext} from './context/polyfill/polyfill-context';\n\n// INTERNAL\nexport {parseUniformName, getUniformSetter} from './classes/uniforms';\nexport {getDebugTableForUniforms} from './debug/debug-uniforms';\nexport {getDebugTableForVertexArray} from './debug/debug-vertex-array';\nexport {getDebugTableForProgramConfiguration} from './debug/debug-program-configuration';\n\n// HELPERS - EXPERIMENTAL\nexport {getProgramBindings} from './helpers/get-program-bindings';\n\n// DEPRECATED\n\n// Deprecated re-exports\nexport {lumaStats} from './init';\nexport {log, assert, uid, isObjectEmpty} from '@luma.gl/api';\nexport {setPathPrefix, loadFile, loadImage} from '@luma.gl/api';\n\n// GLTOOLS\nexport type {GLContextOptions} from './_deprecated/context-api';\nexport {\n createGLContext,\n instrumentGLContext,\n resizeGLContext,\n hasFeature,\n hasFeatures,\n getFeatures,\n getContextInfo,\n getGLContextInfo,\n getContextLimits,\n getContextDebugInfo\n} from './_deprecated/context-api';\n\n// Features\nexport {FEATURES} from './_deprecated/features';\n\n// REMOVED in v8.7\n// getShaderInfo,\n// getShaderName\n// getShaderVersion\n"],"file":"index.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luma.gl/webgl",
|
|
3
|
-
"version": "8.6.0-alpha.
|
|
3
|
+
"version": "8.6.0-alpha.4",
|
|
4
4
|
"description": "WebGL2 Classes",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|
|
38
|
-
"@luma.gl/api": "8.6.0-alpha.
|
|
39
|
-
"@luma.gl/constants": "8.6.0-alpha.
|
|
38
|
+
"@luma.gl/api": "8.6.0-alpha.4",
|
|
39
|
+
"@luma.gl/constants": "8.6.0-alpha.4",
|
|
40
40
|
"@probe.gl/env": "^3.5.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "c1c84f1bcaa6e6ff4f1e96f5d294baf8ce39846c"
|
|
43
43
|
}
|