@predy-js/render-interface 0.1.65-beta.10 → 0.1.65-beta.2
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 +7 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -10
- package/dist/index.mjs.map +1 -1
- package/dist/statistic.js +1 -1
- package/dist/types/Texture.d.ts +8 -8
- package/dist/types/native/AndGLContext.d.ts +0 -9
- package/dist/types/native/ImageBitmapInternal.d.ts +2 -0
- package/dist/types/native/PredyNativeInternal.d.ts +4 -2
- package/dist/types/native/RendererInternal.d.ts +1 -2
- package/dist/types/native/TextureInternal.d.ts +3 -1
- package/package.json +1 -1
- package/types/Texture.ts +8 -8
- package/types/native/AndGLContext.ts +0 -11
- package/types/native/ImageBitmapInternal.ts +2 -0
- package/types/native/PredyNativeInternal.ts +5 -2
- package/types/native/RendererInternal.ts +1 -2
- package/types/native/TextureInternal.ts +4 -1
- package/README.md +0 -4
- package/types/native/declare.d.ts +0 -5
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.65-beta.
|
5
|
+
* Version: v0.1.65-beta.2
|
6
6
|
*/
|
7
7
|
|
8
8
|
/******************************************************************************
|
@@ -2192,7 +2192,7 @@ var GLShaderLibrary = /** @class */ (function () {
|
|
2192
2192
|
this._glFragShaderMap = new Map();
|
2193
2193
|
}
|
2194
2194
|
// @ts-expect-error safe to assign
|
2195
|
-
this
|
2195
|
+
this.renderer = null;
|
2196
2196
|
};
|
2197
2197
|
return GLShaderLibrary;
|
2198
2198
|
}());
|
@@ -3369,10 +3369,7 @@ var GLFrameBuffer = /** @class */ (function () {
|
|
3369
3369
|
gl.framebufferRenderbuffer(gl.FRAMEBUFFER, attachment_1, gl.RENDERBUFFER, renderBuffer.glHandle);
|
3370
3370
|
gl.bindFramebuffer(gl.FRAMEBUFFER, this.fbo);
|
3371
3371
|
}
|
3372
|
-
depthTexture.update({
|
3373
|
-
sourceType: TextureSourceType.framebuffer,
|
3374
|
-
data: { width: viewport[2], height: viewport[3] },
|
3375
|
-
});
|
3372
|
+
depthTexture.update({ data: { width: viewport[2], height: viewport[3], data: new Uint16Array(0) } });
|
3376
3373
|
var attachment = depthTexture && stencilTexture ? gl.DEPTH_STENCIL_ATTACHMENT : gl.DEPTH_ATTACHMENT;
|
3377
3374
|
gl.framebufferTexture2D(FRAMEBUFFER, attachment, gl.TEXTURE_2D, depthTexture.glHandle, 0);
|
3378
3375
|
}
|
@@ -3415,7 +3412,7 @@ var GLFrameBuffer = /** @class */ (function () {
|
|
3415
3412
|
var gl = this.renderer.gl;
|
3416
3413
|
var gpu = this.renderer.gpu;
|
3417
3414
|
var viewport = this.viewport;
|
3418
|
-
var data = { width: viewport[2], height: viewport[3] };
|
3415
|
+
var data = { width: viewport[2], height: viewport[3], data: new Uint8Array(0) };
|
3419
3416
|
var buffers = [];
|
3420
3417
|
if (colors) {
|
3421
3418
|
this.colorTextures = colors.slice();
|
@@ -3423,7 +3420,7 @@ var GLFrameBuffer = /** @class */ (function () {
|
|
3423
3420
|
this.renderer.state.activeTexture(gl.TEXTURE0);
|
3424
3421
|
var multisampleFBO = this.multisampleFbo;
|
3425
3422
|
this.colorTextures.forEach(function (tex, index) {
|
3426
|
-
tex.update({
|
3423
|
+
tex.update({ data: data });
|
3427
3424
|
if (multisampleFBO) {
|
3428
3425
|
gl.bindFramebuffer(gl.FRAMEBUFFER, multisampleFBO);
|
3429
3426
|
var renderBuffer = new GLRenderBuffer(_this.renderer, {
|
@@ -3989,7 +3986,7 @@ var MarsTexture = /** @class */ (function () {
|
|
3989
3986
|
};
|
3990
3987
|
MarsTexture.prototype.uploadCurrentVideoFrame = function () {
|
3991
3988
|
if (this.options.sourceType === TextureSourceType.video && this.options.video && this.internal) {
|
3992
|
-
this.internal.update({
|
3989
|
+
this.internal.update({ video: this.options.video });
|
3993
3990
|
return true;
|
3994
3991
|
}
|
3995
3992
|
return false;
|
@@ -5826,7 +5823,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5826
5823
|
return MarsSharedGeometry;
|
5827
5824
|
}(MarsGeometry));
|
5828
5825
|
|
5829
|
-
consoleLog('version: ' + "0.1.65-beta.
|
5826
|
+
consoleLog('version: ' + "0.1.65-beta.2");
|
5830
5827
|
|
5831
5828
|
export { DestroyOptions, GPUBufferOptionsMemoryShared, MarsGeometry as Geometry, MarsInstancedMesh as InstancedMesh, MarsTextureFactory, MarsMaterial as Material, MarsMaterialDataBlock as MaterialDataBlock, MarsMesh as Mesh, MarsRenderFrame as RenderFrame, MarsRenderPass as RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassMeshOrder, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, MarsRenderer as Renderer, ShaderCompileResultStatus, ShaderLibraryEmpty, MarsSharedGeometry as SharedGeometry, MarsTexture as Texture, TextureLoadAction, TextureSourceType, TextureStoreAction, constants, getDefaultGPUCapability, getDefaultTextureFactory, setDefaultTextureFactory };
|
5832
5829
|
//# sourceMappingURL=index.mjs.map
|