@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.mjs
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
|
/******************************************************************************
|
@@ -2942,7 +2942,12 @@ var GLGPURenderer = /** @class */ (function () {
|
|
2942
2942
|
GLGPURenderer.prototype.deleteGPUBuffer = function (buffer) {
|
2943
2943
|
if (buffer && !this._isDestroyed) {
|
2944
2944
|
arrRemove(this._buffers, buffer);
|
2945
|
-
|
2945
|
+
var handle = buffer.glBuffer;
|
2946
|
+
this.gl.deleteBuffer(handle);
|
2947
|
+
if (handle) {
|
2948
|
+
//@ts-expect-error safe to assign
|
2949
|
+
handle._isDestroyed = true;
|
2950
|
+
}
|
2946
2951
|
//@ts-expect-error safe to assign
|
2947
2952
|
delete buffer.glBuffer;
|
2948
2953
|
}
|
@@ -3574,7 +3579,7 @@ var KhronosTextureContainer = /** @class */ (function () {
|
|
3574
3579
|
identifier[11] !== 0x0a) {
|
3575
3580
|
throw Error('texture missing KTX identifier');
|
3576
3581
|
}
|
3577
|
-
// load the reset of the header in native 32 bit uint
|
3582
|
+
// load the reset of the header in native-ri 32 bit uint
|
3578
3583
|
var dataSize = Uint32Array.BYTES_PER_ELEMENT;
|
3579
3584
|
var headerDataView = new DataView(this.arrayBuffer, this.baseOffset + 12, 13 * dataSize);
|
3580
3585
|
var endianness = headerDataView.getUint32(0, true);
|
@@ -4607,9 +4612,7 @@ var MarsMaterialDataBlock = /** @class */ (function () {
|
|
4607
4612
|
});
|
4608
4613
|
}
|
4609
4614
|
forEach(this.uboBufferMap, function (ubo) {
|
4610
|
-
|
4611
|
-
ubo.destroy();
|
4612
|
-
}
|
4615
|
+
ubo === null || ubo === void 0 ? void 0 : ubo.destroy();
|
4613
4616
|
});
|
4614
4617
|
// @ts-expect-error safe to assign
|
4615
4618
|
this.uboBufferMap = {};
|
@@ -5768,6 +5771,8 @@ var MarsRenderer = /** @class */ (function () {
|
|
5768
5771
|
}
|
5769
5772
|
return [];
|
5770
5773
|
};
|
5774
|
+
MarsRenderer.prototype.invalid = function () {
|
5775
|
+
};
|
5771
5776
|
MarsRenderer.prototype.requestAnimationFrame = function (cb) {
|
5772
5777
|
return window.requestAnimationFrame(cb);
|
5773
5778
|
};
|
@@ -5838,7 +5843,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5838
5843
|
return MarsSharedGeometry;
|
5839
5844
|
}(MarsGeometry));
|
5840
5845
|
|
5841
|
-
consoleLog('version: ' + "0.1.
|
5846
|
+
consoleLog('version: ' + "0.1.80");
|
5842
5847
|
var ModuleMsg = 'RI Package: @predy-js/render-interface';
|
5843
5848
|
|
5844
5849
|
var RI = /*#__PURE__*/Object.freeze({
|