deck.gl 9.2.4 → 9.2.5

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/dist.dev.js CHANGED
@@ -1907,7 +1907,7 @@ or create a device with the 'debug: true' prop.`;
1907
1907
  VERSION = (
1908
1908
  // Version detection using build plugin
1909
1909
  // @ts-expect-error no-undef
1910
- true ? "9.2.2" : "running from source"
1910
+ true ? "9.2.4" : "running from source"
1911
1911
  );
1912
1912
  spector;
1913
1913
  preregisteredAdapters = /* @__PURE__ */ new Map();
@@ -7164,9 +7164,19 @@ ${source4}`;
7164
7164
  const { width, height, depth } = this;
7165
7165
  const { mipLevel = 0, byteOffset = 0, x: x4 = 0, y: y5 = 0, z: z4 = 0 } = options;
7166
7166
  const { glFormat, glType, compressed } = this;
7167
- const glTarget = getWebGLCubeFaceTarget(this.glTarget, this.dimension, depth);
7167
+ const glTarget = getWebGLCubeFaceTarget(this.glTarget, this.dimension, z4);
7168
+ let unpackRowLength;
7169
+ if (!this.compressed) {
7170
+ const { bytesPerPixel } = this.device.getTextureFormatInfo(this.format);
7171
+ if (bytesPerPixel) {
7172
+ if (options.bytesPerRow % bytesPerPixel !== 0) {
7173
+ throw new Error(`bytesPerRow (${options.bytesPerRow}) must be a multiple of bytesPerPixel (${bytesPerPixel}) for ${this.format}`);
7174
+ }
7175
+ unpackRowLength = options.bytesPerRow / bytesPerPixel;
7176
+ }
7177
+ }
7168
7178
  const glParameters = !this.compressed ? {
7169
- [3314]: options.bytesPerRow,
7179
+ ...unpackRowLength !== void 0 ? { [3314]: unpackRowLength } : {},
7170
7180
  [32878]: options.rowsPerImage
7171
7181
  } : {};
7172
7182
  this.gl.bindTexture(glTarget, this.handle);
@@ -43575,7 +43585,12 @@ void main() {
43575
43585
  _createDevice(props) {
43576
43586
  const canvasContextUserProps = this.props.deviceProps?.createCanvasContext;
43577
43587
  const canvasContextProps = typeof canvasContextUserProps === "object" ? canvasContextUserProps : void 0;
43578
- const deviceProps = { adapters: [], ...props.deviceProps };
43588
+ const deviceProps = {
43589
+ adapters: [],
43590
+ _cacheShaders: true,
43591
+ _cachePipelines: true,
43592
+ ...props.deviceProps
43593
+ };
43579
43594
  if (!deviceProps.adapters.includes(webgl2Adapter)) {
43580
43595
  deviceProps.adapters.push(webgl2Adapter);
43581
43596
  }