@predy-js/render-interface 0.1.78 → 0.1.80
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/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -7
- package/dist/index.mjs.map +1 -1
- package/dist/src/render/MarsRenderer.d.ts +1 -0
- package/dist/statistic.js +1 -1
- package/dist/types/Renderer.d.ts +4 -0
- package/dist/types/native/PredyNativeInternal.d.ts +24 -16
- package/package.json +2 -2
- package/types/Renderer.ts +5 -0
- package/types/native/PredyNativeInternal.ts +27 -17
package/dist/index.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Name: @predy-js/render-interface
|
3
3
|
* Description: undefined
|
4
4
|
* Author: undefined
|
5
|
-
* Version: v0.1.
|
5
|
+
* Version: v0.1.80
|
6
6
|
*/
|
7
7
|
|
8
8
|
'use strict';
|
@@ -2946,7 +2946,12 @@ var GLGPURenderer = /** @class */ (function () {
|
|
2946
2946
|
GLGPURenderer.prototype.deleteGPUBuffer = function (buffer) {
|
2947
2947
|
if (buffer && !this._isDestroyed) {
|
2948
2948
|
arrRemove(this._buffers, buffer);
|
2949
|
-
|
2949
|
+
var handle = buffer.glBuffer;
|
2950
|
+
this.gl.deleteBuffer(handle);
|
2951
|
+
if (handle) {
|
2952
|
+
//@ts-expect-error safe to assign
|
2953
|
+
handle._isDestroyed = true;
|
2954
|
+
}
|
2950
2955
|
//@ts-expect-error safe to assign
|
2951
2956
|
delete buffer.glBuffer;
|
2952
2957
|
}
|
@@ -3578,7 +3583,7 @@ var KhronosTextureContainer = /** @class */ (function () {
|
|
3578
3583
|
identifier[11] !== 0x0a) {
|
3579
3584
|
throw Error('texture missing KTX identifier');
|
3580
3585
|
}
|
3581
|
-
// load the reset of the header in native 32 bit uint
|
3586
|
+
// load the reset of the header in native-ri 32 bit uint
|
3582
3587
|
var dataSize = Uint32Array.BYTES_PER_ELEMENT;
|
3583
3588
|
var headerDataView = new DataView(this.arrayBuffer, this.baseOffset + 12, 13 * dataSize);
|
3584
3589
|
var endianness = headerDataView.getUint32(0, true);
|
@@ -4611,9 +4616,7 @@ var MarsMaterialDataBlock = /** @class */ (function () {
|
|
4611
4616
|
});
|
4612
4617
|
}
|
4613
4618
|
forEach(this.uboBufferMap, function (ubo) {
|
4614
|
-
|
4615
|
-
ubo.destroy();
|
4616
|
-
}
|
4619
|
+
ubo === null || ubo === void 0 ? void 0 : ubo.destroy();
|
4617
4620
|
});
|
4618
4621
|
// @ts-expect-error safe to assign
|
4619
4622
|
this.uboBufferMap = {};
|
@@ -5772,6 +5775,8 @@ var MarsRenderer = /** @class */ (function () {
|
|
5772
5775
|
}
|
5773
5776
|
return [];
|
5774
5777
|
};
|
5778
|
+
MarsRenderer.prototype.invalid = function () {
|
5779
|
+
};
|
5775
5780
|
MarsRenderer.prototype.requestAnimationFrame = function (cb) {
|
5776
5781
|
return window.requestAnimationFrame(cb);
|
5777
5782
|
};
|
@@ -5842,7 +5847,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5842
5847
|
return MarsSharedGeometry;
|
5843
5848
|
}(MarsGeometry));
|
5844
5849
|
|
5845
|
-
consoleLog('version: ' + "0.1.
|
5850
|
+
consoleLog('version: ' + "0.1.80");
|
5846
5851
|
var ModuleMsg = 'RI Package: @predy-js/render-interface';
|
5847
5852
|
|
5848
5853
|
var RI = /*#__PURE__*/Object.freeze({
|