@maptalks/gpu 0.120.0 → 0.121.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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="@webgpu/types" />
2
2
  /*!
3
- * @maptalks/gpu v0.120.0
3
+ * @maptalks/gpu v0.121.0
4
4
  * LICENSE : UNLICENSED
5
5
  * (c) 2016-2026 maptalks.com
6
6
  */
@@ -92,10 +92,10 @@ declare class GraphicsFramebuffer {
92
92
  options: any;
93
93
  width: number;
94
94
  height: number;
95
- _destroyed: boolean;
96
95
  constructor(device: any, options: any);
97
96
  get color(): GraphicsTexture[];
98
97
  resize(width: any, height: any): void;
98
+ getCommandKey(): string;
99
99
  _update(): void;
100
100
  getRenderPassDescriptor(): GPURenderPassDescriptor;
101
101
  setClearOptions(options: any): void;
@@ -153,7 +153,12 @@ declare class GraphicsTexture {
153
153
  resize(width: any, height: any): void;
154
154
  update(config: any): void;
155
155
  _updateTexture(): void;
156
- getMipLevelCount(): any;
156
+ _isDirty(newConfig: any): boolean;
157
+ _getSize(config: any): {
158
+ width: any;
159
+ height: any;
160
+ };
161
+ getMipLevelCount(data?: any): any;
157
162
  fillData(texture: any, width: any, height: any): void;
158
163
  fillImageData(texture: any, data: any, width: any, height: any, origin: any): void;
159
164
  fillArrayData(texture: any, data: any, width: any, height: any, origin: any): void;
@@ -355,7 +360,7 @@ declare class BoundingBox {
355
360
  declare class Geometry {
356
361
  static createElementBuffer(device: any, elements: any): any;
357
362
  static createBuffer(device: any, data: any, name?: string): any;
358
- static padGPUBufferAlignment(array: TypedArray, vertexCount: number): TypedArray;
363
+ static padGPUBufferAlignment(array: TypedArray, vertexCount: number, transient?: boolean): TypedArray;
359
364
  data: Record<string, AttributeData>;
360
365
  elements: any;
361
366
  desc: GeometryDesc;
@@ -1091,7 +1096,7 @@ declare class GLShader {
1091
1096
  _compileSource(): void;
1092
1097
  }
1093
1098
  declare class GPUShader extends GLShader {
1094
- getShaderCommandKey(device: any, mesh: any, renderProps: any): any;
1099
+ getShaderCommandKey(device: any, mesh: any, renderProps: any): string;
1095
1100
  createMeshCommand(device: any, mesh: Mesh$1, commandProps: any, renderProps: any): any;
1096
1101
  _compileWGSLSource(defines: any): {
1097
1102
  vert: any;
@@ -1135,7 +1140,6 @@ declare class PointLineShader extends MeshShader {
1135
1140
  declare class QuadShader extends MeshShader {
1136
1141
  constructor(config: any);
1137
1142
  draw(regl: any): number;
1138
- getMeshCommand(regl: any): any;
1139
1143
  _createQuadMesh(regl: any): void;
1140
1144
  _quadMesh: Mesh$1[];
1141
1145
  }
@@ -1143,7 +1147,6 @@ declare class QuadShader extends MeshShader {
1143
1147
 
1144
1148
  declare class FxaaShader extends QuadShader {
1145
1149
  constructor();
1146
- getMeshCommand(regl: any, mesh: any): any;
1147
1150
  }
1148
1151
  //# sourceMappingURL=FxaaShader.d.ts.map
1149
1152