@antv/l7-renderer 2.21.11-beta.0 → 2.21.11-beta.1

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.
@@ -104,7 +104,7 @@ var DeviceModel = class {
104
104
  if (elements) {
105
105
  this.indexBuffer = elements.get();
106
106
  }
107
- const inputLayout = device.createInputLayout({
107
+ const inputLayout = service.renderCache.createInputLayout({
108
108
  vertexBufferDescriptors,
109
109
  indexBufferFormat: elements ? Format.U32_R : null,
110
110
  program: this.program
@@ -284,7 +284,6 @@ var DeviceModel = class {
284
284
  (_a = this.vertexBuffers) == null ? void 0 : _a.forEach((buffer) => buffer.destroy());
285
285
  (_b = this.indexBuffer) == null ? void 0 : _b.destroy();
286
286
  (_c = this.bindings) == null ? void 0 : _c.destroy();
287
- this.inputLayout.destroy();
288
287
  this.pipeline.destroy();
289
288
  this.destroyed = true;
290
289
  }
@@ -114,7 +114,7 @@ var DeviceModel = class {
114
114
  if (elements) {
115
115
  this.indexBuffer = elements.get();
116
116
  }
117
- const inputLayout = device.createInputLayout({
117
+ const inputLayout = service.renderCache.createInputLayout({
118
118
  vertexBufferDescriptors,
119
119
  indexBufferFormat: elements ? import_g_device_api.Format.U32_R : null,
120
120
  program: this.program
@@ -294,7 +294,6 @@ var DeviceModel = class {
294
294
  (_a = this.vertexBuffers) == null ? void 0 : _a.forEach((buffer) => buffer.destroy());
295
295
  (_b = this.indexBuffer) == null ? void 0 : _b.destroy();
296
296
  (_c = this.bindings) == null ? void 0 : _c.destroy();
297
- this.inputLayout.destroy();
298
297
  this.pipeline.destroy();
299
298
  this.destroyed = true;
300
299
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-renderer",
3
- "version": "2.21.11-beta.0",
3
+ "version": "2.21.11-beta.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "https://github.com/orgs/antvis/people",
@@ -16,11 +16,11 @@
16
16
  "@antv/g-device-api": "^1.6.4",
17
17
  "@babel/runtime": "^7.7.7",
18
18
  "regl": "1.6.1",
19
- "@antv/l7-core": "2.21.11-beta.0",
20
- "@antv/l7-utils": "2.21.11-beta.0"
19
+ "@antv/l7-core": "2.21.11-beta.1",
20
+ "@antv/l7-utils": "2.21.11-beta.1"
21
21
  },
22
22
  "devDependencies": {
23
- "@antv/l7-test-utils": "^2.21.11-beta.0"
23
+ "@antv/l7-test-utils": "^2.21.11-beta.1"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public",