@luma.gl/webgl 9.0.9 → 9.0.11

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/webgl",
3
- "version": "9.0.9",
3
+ "version": "9.0.11",
4
4
  "description": "WebGL2 adapter for the luma.gl core API",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -43,8 +43,8 @@
43
43
  "@luma.gl/core": "^9.0.0"
44
44
  },
45
45
  "dependencies": {
46
- "@luma.gl/constants": "9.0.9",
46
+ "@luma.gl/constants": "9.0.11",
47
47
  "@probe.gl/env": "^4.0.2"
48
48
  },
49
- "gitHead": "1715a33d52c6d23227cd3f62e163a40ea9acec9e"
49
+ "gitHead": "82c56392f73c3f7b258e2928d687a4beca2e2838"
50
50
  }
@@ -169,6 +169,7 @@ export class WEBGLRenderPipeline extends RenderPipeline {
169
169
  parameters?: RenderPipelineParameters;
170
170
  topology?: PrimitiveTopology;
171
171
  vertexArray: VertexArray;
172
+ isInstanced?: boolean;
172
173
  vertexCount?: number;
173
174
  indexCount?: number;
174
175
  instanceCount?: number;
@@ -186,6 +187,7 @@ export class WEBGLRenderPipeline extends RenderPipeline {
186
187
  vertexCount,
187
188
  // indexCount,
188
189
  instanceCount,
190
+ isInstanced = false,
189
191
  firstVertex = 0,
190
192
  // firstIndex,
191
193
  // firstInstance,
@@ -196,7 +198,7 @@ export class WEBGLRenderPipeline extends RenderPipeline {
196
198
  const glDrawMode = getGLDrawMode(topology);
197
199
  const isIndexed: boolean = Boolean(vertexArray.indexBuffer);
198
200
  const glIndexType = (vertexArray.indexBuffer as WEBGLBuffer)?.glIndexType;
199
- const isInstanced: boolean = Number(instanceCount) > 0;
201
+ // Note that we sometimes get called with 0 instances
200
202
 
201
203
  // If we are using async linking, we need to wait until linking completes
202
204
  if (this.linkStatus !== 'success') {
@@ -328,7 +330,7 @@ export class WEBGLRenderPipeline extends RenderPipeline {
328
330
  throw new Error(`Error during compilation of shader ${this.vs.id}`);
329
331
  }
330
332
  if (this.fs?.compilationStatus === 'error') {
331
- this.vs.debugShader();
333
+ this.fs.debugShader();
332
334
  throw new Error(`Error during compilation of shader ${this.fs.id}`);
333
335
  }
334
336
  throw new Error(`Error during ${status}: ${this.device.gl.getProgramInfoLog(this.handle)}`);
package/LICENSE DELETED
@@ -1,34 +0,0 @@
1
- luma.gl is provided under the MIT license
2
-
3
- Copyright (c) 2020 vis.gl contributors
4
-
5
- This software includes parts initially developed by Uber and open sourced under MIT license.
6
- Copyright (c) 2015 Uber Technologies, Inc.
7
-
8
- This software includes parts of PhiloGL (https://github.com/philogb/philogl)
9
- under MIT license. PhiloGL parts Copyright © 2013 Sencha Labs.
10
-
11
- This software includes adaptations of some postprocessing code from
12
- THREE.js (https://github.com/mrdoob/three.js/) under MIT license.
13
- THREE.js parts Copyright © 2010-2018 three.js authors.
14
-
15
- Additional attribution given in specific source files.
16
-
17
- Permission is hereby granted, free of charge, to any person obtaining a copy
18
- of this software and associated documentation files (the "Software"), to deal
19
- in the Software without restriction, including without limitation the rights
20
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21
- copies of the Software, and to permit persons to whom the Software is
22
- furnished to do so, subject to the following conditions:
23
-
24
- The above copyright notice and this permission notice shall be included in
25
- all copies or substantial portions of the Software.
26
-
27
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
33
- THE SOFTWARE.
34
-
package/src/.DS_Store DELETED
Binary file
Binary file
Binary file