@luma.gl/webgl 9.0.0-beta.8 → 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.
@@ -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(0, `RenderPipeline ${this.id} - shaderLayout introspection`)();
55
+ log.time(1, `RenderPipeline ${this.id} - shaderLayout introspection`)();
56
56
  this.introspectedLayout = getShaderLayout(this.device.gl, this.handle);
57
- log.timeEnd(0, `RenderPipeline ${this.id} - shaderLayout introspection`)();
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 WEBGLTexture) {
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
@@ -4773,9 +4773,9 @@ ${source2}`;
4773
4773
  this.device.gl.transformFeedbackVaryings(this.handle, varyings, bufferMode);
4774
4774
  }
4775
4775
  this._linkShaders();
4776
- import_core17.log.time(0, `RenderPipeline ${this.id} - shaderLayout introspection`)();
4776
+ import_core17.log.time(1, `RenderPipeline ${this.id} - shaderLayout introspection`)();
4777
4777
  this.introspectedLayout = getShaderLayout(this.device.gl, this.handle);
4778
- import_core17.log.timeEnd(0, `RenderPipeline ${this.id} - shaderLayout introspection`)();
4778
+ import_core17.log.timeEnd(1, `RenderPipeline ${this.id} - shaderLayout introspection`)();
4779
4779
  this.shaderLayout = (0, import_core18.mergeShaderLayout)(this.introspectedLayout, props.shaderLayout);
4780
4780
  switch (this.props.topology) {
4781
4781
  case "triangle-fan-webgl":
@@ -5057,11 +5057,11 @@ ${source2}`;
5057
5057
  texture = value.texture;
5058
5058
  } else if (value instanceof WEBGLTexture) {
5059
5059
  texture = value;
5060
- } else if (value instanceof WEBGLFramebuffer && value.colorAttachments[0] instanceof WEBGLTexture) {
5060
+ } else if (value instanceof WEBGLFramebuffer && value.colorAttachments[0] instanceof WEBGLTextureView) {
5061
5061
  import_core17.log.warn(
5062
5062
  "Passing framebuffer in texture binding may be deprecated. Use fbo.colorAttachments[0] instead"
5063
5063
  )();
5064
- texture = value.colorAttachments[0];
5064
+ texture = value.colorAttachments[0].texture;
5065
5065
  } else {
5066
5066
  throw new Error("No texture");
5067
5067
  }