@luma.gl/webgl 9.1.0-alpha.13 → 9.1.0-alpha.14
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 +30 -30
- package/dist/adapter/resources/webgl-framebuffer.d.ts.map +1 -1
- package/dist/adapter/resources/webgl-framebuffer.js +30 -30
- 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 +2 -32
- package/dist/dist.min.js +2 -2
- package/dist/index.cjs +2 -32
- package/dist/index.cjs.map +2 -2
- package/package.json +3 -3
- package/src/adapter/resources/webgl-framebuffer.ts +31 -31
- package/src/adapter/resources/webgl-texture.ts +2 -0
- package/src/adapter/webgl-device.ts +1 -2
package/dist/index.cjs
CHANGED
|
@@ -2136,6 +2136,7 @@ var WEBGLTexture = class extends import_core8.Texture {
|
|
|
2136
2136
|
/** For automatically updating video */
|
|
2137
2137
|
_video = null;
|
|
2138
2138
|
constructor(device, props) {
|
|
2139
|
+
props = import_core8.Texture._fixProps(props);
|
|
2139
2140
|
super(device, { ...import_core8.Texture.defaultProps, ...props, data: void 0 });
|
|
2140
2141
|
this.device = device;
|
|
2141
2142
|
this.gl = this.device.gl;
|
|
@@ -2602,36 +2603,6 @@ var WEBGLFramebuffer = class extends import_core9.Framebuffer {
|
|
|
2602
2603
|
mipmaps: false
|
|
2603
2604
|
});
|
|
2604
2605
|
}
|
|
2605
|
-
/**
|
|
2606
|
-
* Attachment resize is expected to be a noop if size is same
|
|
2607
|
-
*
|
|
2608
|
-
protected override resizeAttachments(width: number, height: number): this {
|
|
2609
|
-
// for default framebuffer, just update the stored size
|
|
2610
|
-
if (this.handle === null) {
|
|
2611
|
-
// assert(width === undefined && height === undefined);
|
|
2612
|
-
this.width = this.gl.drawingBufferWidth;
|
|
2613
|
-
this.height = this.gl.drawingBufferHeight;
|
|
2614
|
-
return this;
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
|
-
if (width === undefined) {
|
|
2618
|
-
width = this.gl.drawingBufferWidth;
|
|
2619
|
-
}
|
|
2620
|
-
if (height === undefined) {
|
|
2621
|
-
height = this.gl.drawingBufferHeight;
|
|
2622
|
-
}
|
|
2623
|
-
|
|
2624
|
-
// TODO Not clear that this is better than default destroy/create implementation
|
|
2625
|
-
|
|
2626
|
-
for (const colorAttachment of this.colorAttachments) {
|
|
2627
|
-
colorAttachment.texture.clone({width, height});
|
|
2628
|
-
}
|
|
2629
|
-
if (this.depthStencilAttachment) {
|
|
2630
|
-
this.depthStencilAttachment.texture.resize({width, height});
|
|
2631
|
-
}
|
|
2632
|
-
return this;
|
|
2633
|
-
}
|
|
2634
|
-
*/
|
|
2635
2606
|
/**
|
|
2636
2607
|
* @param attachment
|
|
2637
2608
|
* @param texture
|
|
@@ -4963,8 +4934,7 @@ var WebGLDevice = class extends import_core23.Device {
|
|
|
4963
4934
|
const newProps = this._getBufferProps(props);
|
|
4964
4935
|
return new WEBGLBuffer(this, newProps);
|
|
4965
4936
|
}
|
|
4966
|
-
|
|
4967
|
-
_createTexture(props) {
|
|
4937
|
+
createTexture(props) {
|
|
4968
4938
|
return new WEBGLTexture(this, props);
|
|
4969
4939
|
}
|
|
4970
4940
|
createExternalTexture(props) {
|