@antv/l7-renderer 2.21.11-beta.5 → 2.21.11-beta.7
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/es/device/DeviceModel.js
CHANGED
|
@@ -124,7 +124,6 @@ var DeviceModel = class {
|
|
|
124
124
|
const stencilParams = this.getStencilDrawParams({ stencil });
|
|
125
125
|
const stencilEnabled = !!(stencilParams && stencilParams.enable);
|
|
126
126
|
const pipeline = this.device.createRenderPipeline({
|
|
127
|
-
// return this.service.renderCache.createRenderPipeline({
|
|
128
127
|
inputLayout: this.inputLayout,
|
|
129
128
|
program: this.program,
|
|
130
129
|
topology: primitiveMap[primitive],
|
|
@@ -213,7 +212,7 @@ var DeviceModel = class {
|
|
|
213
212
|
textures
|
|
214
213
|
} = mergedOptions;
|
|
215
214
|
this.uniforms = __spreadValues(__spreadValues({}, this.uniforms), this.extractUniforms(uniforms));
|
|
216
|
-
const { renderPass, currentFramebuffer, width, height
|
|
215
|
+
const { renderPass, currentFramebuffer, width, height } = this.service;
|
|
217
216
|
this.pipeline = this.createPipeline(mergedOptions, pick);
|
|
218
217
|
const device = this.service["device"];
|
|
219
218
|
const tmpHeight = device["swapChainHeight"];
|
|
@@ -240,7 +239,7 @@ var DeviceModel = class {
|
|
|
240
239
|
} : null
|
|
241
240
|
);
|
|
242
241
|
if (uniformBuffers) {
|
|
243
|
-
this.bindings =
|
|
242
|
+
this.bindings = device.createBindings({
|
|
244
243
|
pipeline: this.pipeline,
|
|
245
244
|
uniformBufferBindings: uniformBuffers.map((uniformBuffer, i) => {
|
|
246
245
|
const buffer = uniformBuffer;
|
|
@@ -134,7 +134,6 @@ var DeviceModel = class {
|
|
|
134
134
|
const stencilParams = this.getStencilDrawParams({ stencil });
|
|
135
135
|
const stencilEnabled = !!(stencilParams && stencilParams.enable);
|
|
136
136
|
const pipeline = this.device.createRenderPipeline({
|
|
137
|
-
// return this.service.renderCache.createRenderPipeline({
|
|
138
137
|
inputLayout: this.inputLayout,
|
|
139
138
|
program: this.program,
|
|
140
139
|
topology: import_constants.primitiveMap[primitive],
|
|
@@ -223,7 +222,7 @@ var DeviceModel = class {
|
|
|
223
222
|
textures
|
|
224
223
|
} = mergedOptions;
|
|
225
224
|
this.uniforms = __spreadValues(__spreadValues({}, this.uniforms), this.extractUniforms(uniforms));
|
|
226
|
-
const { renderPass, currentFramebuffer, width, height
|
|
225
|
+
const { renderPass, currentFramebuffer, width, height } = this.service;
|
|
227
226
|
this.pipeline = this.createPipeline(mergedOptions, pick);
|
|
228
227
|
const device = this.service["device"];
|
|
229
228
|
const tmpHeight = device["swapChainHeight"];
|
|
@@ -250,7 +249,7 @@ var DeviceModel = class {
|
|
|
250
249
|
} : null
|
|
251
250
|
);
|
|
252
251
|
if (uniformBuffers) {
|
|
253
|
-
this.bindings =
|
|
252
|
+
this.bindings = device.createBindings({
|
|
254
253
|
pipeline: this.pipeline,
|
|
255
254
|
uniformBufferBindings: uniformBuffers.map((uniformBuffer, i) => {
|
|
256
255
|
const buffer = uniformBuffer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-renderer",
|
|
3
|
-
"version": "2.21.11-beta.
|
|
3
|
+
"version": "2.21.11-beta.7",
|
|
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.
|
|
20
|
-
"@antv/l7-utils": "2.21.11-beta.
|
|
19
|
+
"@antv/l7-core": "2.21.11-beta.7",
|
|
20
|
+
"@antv/l7-utils": "2.21.11-beta.7"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@antv/l7-test-utils": "^2.21.11-beta.
|
|
23
|
+
"@antv/l7-test-utils": "^2.21.11-beta.7"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public",
|