@luma.gl/engine 9.0.0-alpha.39 → 9.0.0-alpha.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luma.gl/engine",
3
- "version": "9.0.0-alpha.39",
3
+ "version": "9.0.0-alpha.40",
4
4
  "description": "WebGL2 Components for High Performance Rendering and Computation",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -40,12 +40,12 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@babel/runtime": "^7.0.0",
43
- "@luma.gl/constants": "9.0.0-alpha.39",
44
- "@luma.gl/core": "9.0.0-alpha.39",
45
- "@luma.gl/shadertools": "9.0.0-alpha.39",
43
+ "@luma.gl/constants": "9.0.0-alpha.40",
44
+ "@luma.gl/core": "9.0.0-alpha.40",
45
+ "@luma.gl/shadertools": "9.0.0-alpha.40",
46
46
  "@math.gl/core": "^4.0.0",
47
47
  "@probe.gl/log": "^4.0.2",
48
48
  "@probe.gl/stats": "^4.0.2"
49
49
  },
50
- "gitHead": "23bf413d42ebbc224e4f7afac135c4cf805af85f"
50
+ "gitHead": "5a6f2bc7a4d24a65b74ae905844ad5bfc36c5645"
51
51
  }
@@ -1,4 +1,5 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  /**
4
5
  * Timeline channel properties
@@ -1,4 +1,5 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  import {luma, Device} from '@luma.gl/core';
4
5
  import {requestAnimationFrame, cancelAnimationFrame} from '@luma.gl/core';
@@ -1,4 +1,5 @@
1
1
  // luma.gl, MIT license
2
+ // Copyright (c) vis.gl contributors
2
3
 
3
4
  import type {
4
5
  TypedArray,
@@ -344,7 +345,18 @@ export class Model {
344
345
  */
345
346
  setShaderModuleProps(props: Record<string, any>): void {
346
347
  const uniforms = this._getModuleUniforms(props);
348
+
349
+ // Extract textures & framebuffers set by the modules
350
+ // TODO better way to extract bindings
351
+ const keys = Object.keys(uniforms).filter(k => uniforms[k].constructor.name.includes('WEBGL'));
352
+ const bindings: Record<string, Binding> = {};
353
+ for (const k of keys) {
354
+ bindings[k] = uniforms[k];
355
+ delete uniforms[k];
356
+ }
357
+
347
358
  Object.assign(this.uniforms, uniforms);
359
+ Object.assign(this.bindings, bindings);
348
360
  }
349
361
 
350
362
  /**
@@ -1,5 +1,6 @@
1
1
 
2
2
  // luma.gl, MIT license
3
+ // Copyright (c) vis.gl contributors
3
4
 
4
5
  import {Device, Buffer, Texture, Framebuffer} from '@luma.gl/core';
5
6
  import {GLParameters} from '@luma.gl/constants';