@luma.gl/webgl 9.0.9 → 9.0.10
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/adapter/resources/webgl-render-pipeline.d.ts +1 -0
- package/dist/adapter/resources/webgl-render-pipeline.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-render-pipeline.js +3 -3
- package/dist/dist.dev.js +27 -19
- package/dist/dist.min.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +2 -2
- package/package.json +3 -3
- package/src/adapter/resources/webgl-render-pipeline.ts +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luma.gl/webgl",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.10",
|
|
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.
|
|
46
|
+
"@luma.gl/constants": "9.0.10",
|
|
47
47
|
"@probe.gl/env": "^4.0.2"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "aa5e354fd9502a84e43c9e312ad33d9c155fed01"
|
|
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
|
-
|
|
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.
|
|
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)}`);
|