@galacean/engine-rhi-webgl 0.9.0-beta.82 → 0.9.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.
- package/dist/main.js +41 -58
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +41 -58
- package/dist/module.js +41 -58
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
- package/types/GLBuffer.d.ts +0 -16
- package/types/WebGLGraphicDevice.d.ts +0 -86
package/dist/main.js
CHANGED
|
@@ -64,27 +64,27 @@ var engineCore = require('@galacean/engine-core');
|
|
|
64
64
|
})(exports.GLCompressedTextureInternalFormat || (exports.GLCompressedTextureInternalFormat = {}));
|
|
65
65
|
|
|
66
66
|
function _defineProperties(target, props) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
for (var i = 0; i < props.length; i++) {
|
|
68
|
+
var descriptor = props[i];
|
|
69
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
70
|
+
descriptor.configurable = true;
|
|
71
|
+
|
|
72
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
73
|
+
|
|
74
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
75
|
+
}
|
|
74
76
|
}
|
|
77
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
78
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
79
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
75
80
|
|
|
76
|
-
|
|
77
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
78
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
79
|
-
return Constructor;
|
|
81
|
+
return Constructor;
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
function _instanceof(left, right) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
return left instanceof right;
|
|
87
|
-
}
|
|
85
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
86
|
+
return !!right[Symbol.hasInstance](left);
|
|
87
|
+
} else return left instanceof right;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
/**
|
|
@@ -118,7 +118,7 @@ function _instanceof(left, right) {
|
|
|
118
118
|
this._scale.set(x, y);
|
|
119
119
|
this.scale = this._scale;
|
|
120
120
|
};
|
|
121
|
-
|
|
121
|
+
_create_class(WebCanvas, [
|
|
122
122
|
{
|
|
123
123
|
key: "width",
|
|
124
124
|
get: /**
|
|
@@ -171,54 +171,37 @@ function _instanceof(left, right) {
|
|
|
171
171
|
return WebCanvas;
|
|
172
172
|
}();
|
|
173
173
|
|
|
174
|
-
function
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
return o;
|
|
178
|
-
};
|
|
174
|
+
function _set_prototype_of(o, p) {
|
|
175
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
176
|
+
o.__proto__ = p;
|
|
179
177
|
|
|
180
|
-
|
|
181
|
-
}
|
|
178
|
+
return o;
|
|
179
|
+
};
|
|
182
180
|
|
|
183
|
-
|
|
184
|
-
return setPrototypeOf(o, p);
|
|
181
|
+
return _set_prototype_of(o, p);
|
|
185
182
|
}
|
|
186
183
|
|
|
187
184
|
function _inherits(subClass, superClass) {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
193
|
-
constructor: {
|
|
194
|
-
value: subClass,
|
|
195
|
-
writable: true,
|
|
196
|
-
configurable: true
|
|
185
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
186
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
197
187
|
}
|
|
198
|
-
});
|
|
199
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
200
|
-
}
|
|
201
188
|
|
|
202
|
-
|
|
203
|
-
extends_ = Object.assign || function (target) {
|
|
204
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
205
|
-
var source = arguments[i];
|
|
189
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
206
190
|
|
|
207
|
-
|
|
208
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
209
|
-
target[key] = source[key];
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
return target;
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
return extends_.apply(this, arguments);
|
|
191
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
218
192
|
}
|
|
219
193
|
|
|
220
194
|
function _extends() {
|
|
221
|
-
|
|
195
|
+
_extends = Object.assign || function assign(target) {
|
|
196
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
197
|
+
var source = arguments[i];
|
|
198
|
+
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
return target;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
return _extends.apply(this, arguments);
|
|
222
205
|
}
|
|
223
206
|
|
|
224
207
|
/**
|
|
@@ -357,7 +340,7 @@ function _extends() {
|
|
|
357
340
|
TEXTURE_MAX_ANISOTROPY_EXT: "TEXTURE_MAX_ANISOTROPY_EXT"
|
|
358
341
|
});
|
|
359
342
|
};
|
|
360
|
-
|
|
343
|
+
_create_class(GLCapability, [
|
|
361
344
|
{
|
|
362
345
|
key: "maxTextureSize",
|
|
363
346
|
get: function get() {
|
|
@@ -1111,7 +1094,7 @@ function _extends() {
|
|
|
1111
1094
|
}
|
|
1112
1095
|
return true;
|
|
1113
1096
|
};
|
|
1114
|
-
|
|
1097
|
+
_create_class(GLTexture, [
|
|
1115
1098
|
{
|
|
1116
1099
|
key: "wrapModeU",
|
|
1117
1100
|
set: /**
|
|
@@ -1855,7 +1838,7 @@ exports.WebGLMode = void 0;
|
|
|
1855
1838
|
this._gl.flush();
|
|
1856
1839
|
};
|
|
1857
1840
|
_proto.destroy = function destroy() {};
|
|
1858
|
-
|
|
1841
|
+
_create_class(WebGLRenderer, [
|
|
1859
1842
|
{
|
|
1860
1843
|
key: "isWebGL2",
|
|
1861
1844
|
get: function get() {
|
|
@@ -1908,7 +1891,7 @@ exports.WebGLMode = void 0;
|
|
|
1908
1891
|
var hardwareRenderer = new WebGLRenderer(webGLRendererOptions);
|
|
1909
1892
|
return Engine.call(this, webCanvas, hardwareRenderer);
|
|
1910
1893
|
}
|
|
1911
|
-
|
|
1894
|
+
_create_class(WebGLEngine, [
|
|
1912
1895
|
{
|
|
1913
1896
|
key: "canvas",
|
|
1914
1897
|
get: /**
|