@luma.gl/webgl 9.0.0-beta.9 → 9.0.0
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.js +4 -4
- package/dist/dist.dev.js +7 -12
- package/dist/dist.min.js +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +2 -2
- package/package.json +3 -3
- package/src/adapter/resources/webgl-render-pipeline.ts +4 -4
- package/dist.min.js +0 -19
|
@@ -52,9 +52,9 @@ export class WEBGLRenderPipeline extends RenderPipeline {
|
|
|
52
52
|
this.device.gl.transformFeedbackVaryings(this.handle, varyings, bufferMode);
|
|
53
53
|
}
|
|
54
54
|
this._linkShaders();
|
|
55
|
-
log.time(
|
|
55
|
+
log.time(1, `RenderPipeline ${this.id} - shaderLayout introspection`)();
|
|
56
56
|
this.introspectedLayout = getShaderLayout(this.device.gl, this.handle);
|
|
57
|
-
log.timeEnd(
|
|
57
|
+
log.timeEnd(1, `RenderPipeline ${this.id} - shaderLayout introspection`)();
|
|
58
58
|
// Merge provided layout with introspected layout
|
|
59
59
|
this.shaderLayout = mergeShaderLayout(this.introspectedLayout, props.shaderLayout);
|
|
60
60
|
// WebGPU has more restrictive topology support than WebGL
|
|
@@ -349,9 +349,9 @@ export class WEBGLRenderPipeline extends RenderPipeline {
|
|
|
349
349
|
texture = value;
|
|
350
350
|
}
|
|
351
351
|
else if (value instanceof WEBGLFramebuffer &&
|
|
352
|
-
value.colorAttachments[0] instanceof
|
|
352
|
+
value.colorAttachments[0] instanceof WEBGLTextureView) {
|
|
353
353
|
log.warn('Passing framebuffer in texture binding may be deprecated. Use fbo.colorAttachments[0] instead')();
|
|
354
|
-
texture = value.colorAttachments[0];
|
|
354
|
+
texture = value.colorAttachments[0].texture;
|
|
355
355
|
}
|
|
356
356
|
else {
|
|
357
357
|
throw new Error('No texture');
|
package/dist/dist.dev.js
CHANGED
|
@@ -3701,12 +3701,10 @@ var __exports__ = (() => {
|
|
|
3701
3701
|
|
|
3702
3702
|
// ../../node_modules/@probe.gl/env/dist/lib/is-electron.js
|
|
3703
3703
|
function isElectron(mockUserAgent) {
|
|
3704
|
-
if (typeof window !== "undefined" && typeof window.process === "object" &&
|
|
3705
|
-
window.process.type === "renderer") {
|
|
3704
|
+
if (typeof window !== "undefined" && typeof window.process === "object" && window.process.type === "renderer") {
|
|
3706
3705
|
return true;
|
|
3707
3706
|
}
|
|
3708
|
-
if (typeof process !== "undefined" && typeof process.versions === "object" &&
|
|
3709
|
-
Boolean(process.versions["electron"])) {
|
|
3707
|
+
if (typeof process !== "undefined" && typeof process.versions === "object" && Boolean(process.versions["electron"])) {
|
|
3710
3708
|
return true;
|
|
3711
3709
|
}
|
|
3712
3710
|
const realUserAgent = typeof navigator === "object" && typeof navigator.userAgent === "string" && navigator.userAgent;
|
|
@@ -3719,10 +3717,7 @@ var __exports__ = (() => {
|
|
|
3719
3717
|
|
|
3720
3718
|
// ../../node_modules/@probe.gl/env/dist/lib/is-browser.js
|
|
3721
3719
|
function isBrowser() {
|
|
3722
|
-
const isNode = (
|
|
3723
|
-
// @ts-expect-error
|
|
3724
|
-
typeof process === "object" && String(process) === "[object process]" && !process.browser
|
|
3725
|
-
);
|
|
3720
|
+
const isNode = typeof process === "object" && String(process) === "[object process]" && !process.browser;
|
|
3726
3721
|
return !isNode || isElectron();
|
|
3727
3722
|
}
|
|
3728
3723
|
|
|
@@ -4778,9 +4773,9 @@ ${source2}`;
|
|
|
4778
4773
|
this.device.gl.transformFeedbackVaryings(this.handle, varyings, bufferMode);
|
|
4779
4774
|
}
|
|
4780
4775
|
this._linkShaders();
|
|
4781
|
-
import_core17.log.time(
|
|
4776
|
+
import_core17.log.time(1, `RenderPipeline ${this.id} - shaderLayout introspection`)();
|
|
4782
4777
|
this.introspectedLayout = getShaderLayout(this.device.gl, this.handle);
|
|
4783
|
-
import_core17.log.timeEnd(
|
|
4778
|
+
import_core17.log.timeEnd(1, `RenderPipeline ${this.id} - shaderLayout introspection`)();
|
|
4784
4779
|
this.shaderLayout = (0, import_core18.mergeShaderLayout)(this.introspectedLayout, props.shaderLayout);
|
|
4785
4780
|
switch (this.props.topology) {
|
|
4786
4781
|
case "triangle-fan-webgl":
|
|
@@ -5062,11 +5057,11 @@ ${source2}`;
|
|
|
5062
5057
|
texture = value.texture;
|
|
5063
5058
|
} else if (value instanceof WEBGLTexture) {
|
|
5064
5059
|
texture = value;
|
|
5065
|
-
} else if (value instanceof WEBGLFramebuffer && value.colorAttachments[0] instanceof
|
|
5060
|
+
} else if (value instanceof WEBGLFramebuffer && value.colorAttachments[0] instanceof WEBGLTextureView) {
|
|
5066
5061
|
import_core17.log.warn(
|
|
5067
5062
|
"Passing framebuffer in texture binding may be deprecated. Use fbo.colorAttachments[0] instead"
|
|
5068
5063
|
)();
|
|
5069
|
-
texture = value.colorAttachments[0];
|
|
5064
|
+
texture = value.colorAttachments[0].texture;
|
|
5070
5065
|
} else {
|
|
5071
5066
|
throw new Error("No texture");
|
|
5072
5067
|
}
|