@luma.gl/webgl 9.1.0-alpha.13 → 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.
- package/dist/adapter/resources/webgl-framebuffer.d.ts +32 -33
- package/dist/adapter/resources/webgl-framebuffer.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-framebuffer.js +40 -41
- package/dist/adapter/resources/webgl-texture.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-texture.js +1 -0
- package/dist/adapter/webgl-device.d.ts +2 -1
- package/dist/adapter/webgl-device.d.ts.map +1 -1
- package/dist/adapter/webgl-device.js +1 -2
- package/dist/dist.dev.js +1653 -1682
- package/dist/dist.min.js +2 -2
- package/dist/index.cjs +1565 -1594
- package/dist/index.cjs.map +4 -4
- package/package.json +4 -4
- package/src/adapter/resources/webgl-framebuffer.ts +43 -43
- package/src/adapter/resources/webgl-texture.ts +2 -0
- package/src/adapter/webgl-device.ts +1 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FramebufferProps
|
|
2
|
-
import { Framebuffer
|
|
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,37 +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
|
-
/**
|
|
22
|
-
* Attachment resize is expected to be a noop if size is same
|
|
23
|
-
*
|
|
24
|
-
protected override resizeAttachments(width: number, height: number): this {
|
|
25
|
-
// for default framebuffer, just update the stored size
|
|
26
|
-
if (this.handle === null) {
|
|
27
|
-
// assert(width === undefined && height === undefined);
|
|
28
|
-
this.width = this.gl.drawingBufferWidth;
|
|
29
|
-
this.height = this.gl.drawingBufferHeight;
|
|
30
|
-
return this;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
if (width === undefined) {
|
|
34
|
-
width = this.gl.drawingBufferWidth;
|
|
35
|
-
}
|
|
36
|
-
if (height === undefined) {
|
|
37
|
-
height = this.gl.drawingBufferHeight;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// TODO Not clear that this is better than default destroy/create implementation
|
|
41
|
-
|
|
42
|
-
for (const colorAttachment of this.colorAttachments) {
|
|
43
|
-
colorAttachment.texture.clone({width, height});
|
|
44
|
-
}
|
|
45
|
-
if (this.depthStencilAttachment) {
|
|
46
|
-
this.depthStencilAttachment.texture.resize({width, height});
|
|
47
|
-
}
|
|
48
|
-
return this;
|
|
49
|
-
}
|
|
50
|
-
*/
|
|
51
20
|
/**
|
|
52
21
|
* @param attachment
|
|
53
22
|
* @param texture
|
|
@@ -56,4 +25,34 @@ export declare class WEBGLFramebuffer extends Framebuffer {
|
|
|
56
25
|
*/
|
|
57
26
|
protected _attachTextureView(attachment: GL, textureView: WEBGLTextureView): void;
|
|
58
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Attachment resize is expected to be a noop if size is same
|
|
30
|
+
*
|
|
31
|
+
protected override resizeAttachments(width: number, height: number): this {
|
|
32
|
+
// for default framebuffer, just update the stored size
|
|
33
|
+
if (this.handle === null) {
|
|
34
|
+
// assert(width === undefined && height === undefined);
|
|
35
|
+
this.width = this.gl.drawingBufferWidth;
|
|
36
|
+
this.height = this.gl.drawingBufferHeight;
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (width === undefined) {
|
|
41
|
+
width = this.gl.drawingBufferWidth;
|
|
42
|
+
}
|
|
43
|
+
if (height === undefined) {
|
|
44
|
+
height = this.gl.drawingBufferHeight;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// TODO Not clear that this is better than default destroy/create implementation
|
|
48
|
+
|
|
49
|
+
for (const colorAttachment of this.colorAttachments) {
|
|
50
|
+
colorAttachment.texture.clone({width, height});
|
|
51
|
+
}
|
|
52
|
+
if (this.depthStencilAttachment) {
|
|
53
|
+
this.depthStencilAttachment.texture.resize({width, height});
|
|
54
|
+
}
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
*/
|
|
59
58
|
//# sourceMappingURL=webgl-framebuffer.d.ts.map
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"webgl-framebuffer.d.ts","sourceRoot":"","sources":["../../../src/adapter/resources/webgl-framebuffer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AACpD,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,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,EAAE,CAAM;IAC1C,sBAAsB,EAAE,gBAAgB,GAAG,IAAI,CAAQ;gBAE3C,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB;IAsBxD,+CAA+C;IACtC,OAAO,IAAI,IAAI;IAQxB,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAsCnC,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,46 +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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Attachment resize is expected to be a noop if size is same
|
|
79
|
-
*
|
|
80
|
-
protected override resizeAttachments(width: number, height: number): this {
|
|
81
|
-
// for default framebuffer, just update the stored size
|
|
82
|
-
if (this.handle === null) {
|
|
83
|
-
// assert(width === undefined && height === undefined);
|
|
84
|
-
this.width = this.gl.drawingBufferWidth;
|
|
85
|
-
this.height = this.gl.drawingBufferHeight;
|
|
86
|
-
return this;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
if (width === undefined) {
|
|
90
|
-
width = this.gl.drawingBufferWidth;
|
|
91
|
-
}
|
|
92
|
-
if (height === undefined) {
|
|
93
|
-
height = this.gl.drawingBufferHeight;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// TODO Not clear that this is better than default destroy/create implementation
|
|
97
|
-
|
|
98
|
-
for (const colorAttachment of this.colorAttachments) {
|
|
99
|
-
colorAttachment.texture.clone({width, height});
|
|
100
|
-
}
|
|
101
|
-
if (this.depthStencilAttachment) {
|
|
102
|
-
this.depthStencilAttachment.texture.resize({width, height});
|
|
103
|
-
}
|
|
104
|
-
return this;
|
|
105
|
-
}
|
|
106
|
-
*/
|
|
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
|
+
// }
|
|
107
76
|
/**
|
|
108
77
|
* @param attachment
|
|
109
78
|
* @param texture
|
|
@@ -167,3 +136,33 @@ function _getFrameBufferStatus(status) {
|
|
|
167
136
|
return `${status}`;
|
|
168
137
|
}
|
|
169
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* Attachment resize is expected to be a noop if size is same
|
|
141
|
+
*
|
|
142
|
+
protected override resizeAttachments(width: number, height: number): this {
|
|
143
|
+
// for default framebuffer, just update the stored size
|
|
144
|
+
if (this.handle === null) {
|
|
145
|
+
// assert(width === undefined && height === undefined);
|
|
146
|
+
this.width = this.gl.drawingBufferWidth;
|
|
147
|
+
this.height = this.gl.drawingBufferHeight;
|
|
148
|
+
return this;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (width === undefined) {
|
|
152
|
+
width = this.gl.drawingBufferWidth;
|
|
153
|
+
}
|
|
154
|
+
if (height === undefined) {
|
|
155
|
+
height = this.gl.drawingBufferHeight;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// TODO Not clear that this is better than default destroy/create implementation
|
|
159
|
+
|
|
160
|
+
for (const colorAttachment of this.colorAttachments) {
|
|
161
|
+
colorAttachment.texture.clone({width, height});
|
|
162
|
+
}
|
|
163
|
+
if (this.depthStencilAttachment) {
|
|
164
|
+
this.depthStencilAttachment.texture.resize({width, height});
|
|
165
|
+
}
|
|
166
|
+
return this;
|
|
167
|
+
}
|
|
168
|
+
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webgl-texture.d.ts","sourceRoot":"","sources":["../../../src/adapter/resources/webgl-texture.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,MAAM,EACN,YAAY,EACZ,gBAAgB,EAChB,OAAO,EACP,YAAY,EAGZ,eAAe,EACf,aAAa,EAEb,aAAa,EACb,aAAa,EACb,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAC,OAAO,EAAM,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,EAAE,EACF,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAM5B,OAAO,EAAC,WAAW,EAAC,2BAAwB;AAE5C,OAAO,EAAC,YAAY,EAAC,2BAAwB;AAC7C,OAAO,EAAC,gBAAgB,EAAC,gCAA6B;AA2CtD;;GAEG;AACH,qBAAa,YAAa,SAAQ,OAAO;IACvC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,EAAE,EAAE,sBAAsB,CAAC;IACpC,MAAM,EAAE,YAAY,CAAC;IAErB,OAAO,EAAE,YAAY,CAAa;IAClC,IAAI,EAAE,gBAAgB,CAAa;IAEnC,OAAO,EAAE,OAAO,CAAS;IAEzB;;;;;;;OAOG;IACH,QAAQ,EAAE,eAAe,CAAC;IAI1B,uDAAuD;IACvD,QAAQ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AC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;CAWjD"}
|
|
@@ -89,6 +89,7 @@ export class WEBGLTexture extends Texture {
|
|
|
89
89
|
/** For automatically updating video */
|
|
90
90
|
_video = null;
|
|
91
91
|
constructor(device, props) {
|
|
92
|
+
props = Texture._fixProps(props);
|
|
92
93
|
// Note: Clear out `props.data` so that we don't hold a reference to any big memory chunks
|
|
93
94
|
super(device, { ...Texture.defaultProps, ...props, data: undefined });
|
|
94
95
|
this.device = device;
|
|
@@ -10,6 +10,7 @@ import type { BufferProps, ShaderProps, SamplerProps, TextureProps, ExternalText
|
|
|
10
10
|
import { WEBGLBuffer } from "./resources/webgl-buffer.js";
|
|
11
11
|
import { WEBGLShader } from "./resources/webgl-shader.js";
|
|
12
12
|
import { WEBGLSampler } from "./resources/webgl-sampler.js";
|
|
13
|
+
import { WEBGLTexture } from "./resources/webgl-texture.js";
|
|
13
14
|
import { WEBGLFramebuffer } from "./resources/webgl-framebuffer.js";
|
|
14
15
|
import { WEBGLRenderPass } from "./resources/webgl-render-pass.js";
|
|
15
16
|
import { WEBGLRenderPipeline } from "./resources/webgl-render-pipeline.js";
|
|
@@ -57,7 +58,7 @@ export declare class WebGLDevice extends Device {
|
|
|
57
58
|
isTextureFormatRenderable(format: TextureFormat): boolean;
|
|
58
59
|
createCanvasContext(props?: CanvasContextProps): CanvasContext;
|
|
59
60
|
createBuffer(props: BufferProps | ArrayBuffer | ArrayBufferView): WEBGLBuffer;
|
|
60
|
-
|
|
61
|
+
createTexture(props: TextureProps): WEBGLTexture;
|
|
61
62
|
createExternalTexture(props: ExternalTextureProps): ExternalTexture;
|
|
62
63
|
createSampler(props: SamplerProps): WEBGLSampler;
|
|
63
64
|
createShader(props: ShaderProps): WEBGLShader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webgl-device.d.ts","sourceRoot":"","sources":["../../src/adapter/webgl-device.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,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AAG,GAAG;IAIxC,mBAAmB,CAAC,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,GAAG;IAIpD,UAAU,CAAC,OAAO,CAAC,EAAE;QAC5B,WAAW,CAAC,EAAE,WAAW,CAAC;QAC1B,KAAK,CAAC,EAAE,GAAG,CAAC;QACZ,KAAK,CAAC,EAAE,GAAG,CAAC;QACZ,OAAO,CAAC,EAAE,GAAG,CAAC;KACf,GAAG,IAAI;IAIC,UAAU,IAAI,IAAI;IAS3B;;;OAGG;IACM,UAAU,IAAI,OAAO;IAgB9B,8DAA8D;IAC9D,SAAS,IAAI,IAAI;IAKjB,8CAA8C;IAC9C,QAAQ,IAAI,IAAI;IAKhB;;;OAGG;IACH,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAMlE;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,sBAAsB,GAAG,MAAM;IAc7D,sBAAsB;IACtB,UAAU,EAAE,CAAC,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC;IAElC;;;;;OAKG;IACH,yBAAyB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,GAAG,IAAI;IA2BvE,gDAAgD;IAChD,YAAY,CAAC,IAAI,EAAE,MAAM,YAAY,GAAG,YAAY;CAIrD"}
|
|
@@ -134,8 +134,7 @@ export class WebGLDevice extends Device {
|
|
|
134
134
|
const newProps = this._getBufferProps(props);
|
|
135
135
|
return new WEBGLBuffer(this, newProps);
|
|
136
136
|
}
|
|
137
|
-
|
|
138
|
-
_createTexture(props) {
|
|
137
|
+
createTexture(props) {
|
|
139
138
|
return new WEBGLTexture(this, props);
|
|
140
139
|
}
|
|
141
140
|
createExternalTexture(props) {
|