@luma.gl/webgl 9.1.0-alpha.14 → 9.1.0-alpha.15

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.
@@ -1,5 +1,5 @@
1
- import type { FramebufferProps, TextureFormat } from '@luma.gl/core';
2
- import { Framebuffer, Texture } from '@luma.gl/core';
1
+ import type { FramebufferProps } from '@luma.gl/core';
2
+ import { Framebuffer } from '@luma.gl/core';
3
3
  import { GL } from '@luma.gl/constants';
4
4
  import { WebGLDevice } from "../webgl-device.js";
5
5
  import { WEBGLTexture } from "./webgl-texture.js";
@@ -17,7 +17,6 @@ export declare class WEBGLFramebuffer extends Framebuffer {
17
17
  destroy(): void;
18
18
  protected updateAttachments(): void;
19
19
  /** In WebGL we must use renderbuffers for depth/stencil attachments (unless we have extensions) */
20
- protected createDepthStencilTexture(format: TextureFormat): Texture;
21
20
  /**
22
21
  * @param attachment
23
22
  * @param texture
@@ -1 +1 @@
1
- {"version":3,"file":"webgl-framebuffer.d.ts","sourceRoot":"","sources":["../../../src/adapter/resources/webgl-framebuffer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,eAAe,CAAC;AACnE,OAAO,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,eAAe,CAAC;AACnD,OAAO,EAAC,EAAE,EAAC,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAC,WAAW,EAAC,2BAAwB;AAC5C,OAAO,EAAC,YAAY,EAAC,2BAAwB;AAC7C,OAAO,EAAC,gBAAgB,EAAC,gCAA6B;AAGtD,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG,YAAY,CAAC;AAEzD,iDAAiD;AACjD,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,EAAE,WAAW,CAAC;IACpB,EAAE,EAAE,sBAAsB,CAAC;IAC3B,MAAM,EAAE,gBAAgB,CAAC;IAEzB,gBAAgB,EAAE,gBAAgB,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sCnC,mGAAmG;IAYnG;;;;;OAKG;IACH,SAAS,CAAC,kBAAkB,CAAC,UAAU,EAAE,EAAE,EAAE,WAAW,EAAE,gBAAgB,GAAG,IAAI;CA8BlF;AAqCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BE"}
@@ -3,7 +3,6 @@
3
3
  // Copyright (c) vis.gl contributors
4
4
  import { Framebuffer } from '@luma.gl/core';
5
5
  import { GL } from '@luma.gl/constants';
6
- import { WEBGLTexture } from "./webgl-texture.js";
7
6
  import { getDepthStencilAttachmentWebGL } from "../converters/texture-formats.js";
8
7
  /** luma.gl Framebuffer, WebGL implementation */
9
8
  export class WEBGLFramebuffer extends Framebuffer {
@@ -64,16 +63,16 @@ export class WEBGLFramebuffer extends Framebuffer {
64
63
  }
65
64
  // PRIVATE
66
65
  /** In WebGL we must use renderbuffers for depth/stencil attachments (unless we have extensions) */
67
- createDepthStencilTexture(format) {
68
- // return new WEBGLRenderbuffer(this.device, {
69
- return new WEBGLTexture(this.device, {
70
- id: `${this.id}-depth-stencil`,
71
- format,
72
- width: this.width,
73
- height: this.height,
74
- mipmaps: false
75
- });
76
- }
66
+ // protected override createDepthStencilTexture(format: TextureFormat): Texture {
67
+ // // return new WEBGLRenderbuffer(this.device, {
68
+ // return new WEBGLTexture(this.device, {
69
+ // id: `${this.id}-depth-stencil`,
70
+ // format,
71
+ // width: this.width,
72
+ // height: this.height,
73
+ // mipmaps: false
74
+ // });
75
+ // }
77
76
  /**
78
77
  * @param attachment
79
78
  * @param texture