@predy-js/render-interface 0.1.62-beta.1 → 0.1.62-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 CHANGED
@@ -2,7 +2,7 @@
2
2
  * Name: @predy-js/render-interface
3
3
  * Description: undefined
4
4
  * Author: undefined
5
- * Version: v0.1.62-beta.1
5
+ * Version: v0.1.62-beta.2
6
6
  */
7
7
 
8
8
  'use strict';
@@ -5825,7 +5825,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5825
5825
  return MarsSharedGeometry;
5826
5826
  }(MarsGeometry));
5827
5827
 
5828
- consoleLog('version: ' + "0.1.62-beta.1");
5828
+ consoleLog('version: ' + "0.1.62-beta.2");
5829
5829
 
5830
5830
  exports.GPUBufferOptionsMemoryShared = GPUBufferOptionsMemoryShared;
5831
5831
  exports.Geometry = MarsGeometry;
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.62-beta.1
5
+ * Version: v0.1.62-beta.2
6
6
  */
7
7
 
8
8
  /******************************************************************************
@@ -5821,7 +5821,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5821
5821
  return MarsSharedGeometry;
5822
5822
  }(MarsGeometry));
5823
5823
 
5824
- consoleLog('version: ' + "0.1.62-beta.1");
5824
+ consoleLog('version: ' + "0.1.62-beta.2");
5825
5825
 
5826
5826
  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 };
5827
5827
  //# sourceMappingURL=index.mjs.map
package/dist/statistic.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.62-beta.1
5
+ * Version: v0.1.62-beta.2
6
6
  */
7
7
 
8
8
  // https://github.com/greggman/webgl-memory/blob/main/src/texture-utils.js
@@ -4,7 +4,6 @@ import type { RenderPassLoadAction, RenderPassStoreAction } from '../RenderPass'
4
4
  import type { TextureInternal } from './TextureInternal';
5
5
  import type { RenderPassStorageObject } from '../RenderPass';
6
6
  import type { RenderPassAttachmentStorageType } from '../RenderPass';
7
- import type { AndGLContext } from './AndGLContext';
8
7
  export interface RenderPassColorAttachmentInternal {
9
8
  readonly storageType: RenderPassAttachmentStorageType.color;
10
9
  readonly texture: TextureInternal;
@@ -48,7 +47,6 @@ export declare abstract class RenderPassInternal implements ResourceInternal {
48
47
  readonly attachments: RenderPassColorAttachmentInternal[];
49
48
  readonly width: number;
50
49
  readonly height: number;
51
- readonly gl?: AndGLContext;
52
50
  /**
53
51
  * 增删改查的操作,在warp层对Mesh进行后,得到的数据全部覆盖当前数据
54
52
  */
@@ -10,6 +10,7 @@ import type { RenderFrameInternal, RenderFrameInternalOptions } from './RenderFr
10
10
  import type { GPUCapability } from '../GPUCapability';
11
11
  import type { TextureInternal, TextureInternalConstructOptions } from './TextureInternal';
12
12
  import type { ImageBitmapCallback, ImageBitmapConstructor } from './ImageBitmapInternal';
13
+ import type { AndGLContext } from './AndGLContext';
13
14
  /**
14
15
  * renderer 内部创建的对象,用来统计信息,排查资源泄漏的问题
15
16
  */
@@ -30,6 +31,7 @@ export declare abstract class RendererInternal implements ResourceInternal {
30
31
  readonly shaderLibrary: ShaderLibraryInternal;
31
32
  readonly width: number;
32
33
  readonly height: number;
34
+ readonly gl?: AndGLContext;
33
35
  abstract destroy(): void;
34
36
  /**
35
37
  * 需要进行重新渲染
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@predy-js/render-interface",
3
- "version": "0.1.62-beta.1",
3
+ "version": "0.1.62-beta.2",
4
4
  "license": "MIT",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -4,7 +4,6 @@ import type { RenderPassLoadAction, RenderPassStoreAction } from '../RenderPass'
4
4
  import type { TextureInternal } from './TextureInternal';
5
5
  import type { RenderPassStorageObject } from '../RenderPass';
6
6
  import type { RenderPassAttachmentStorageType } from '../RenderPass';
7
- import type { AndGLContext } from './AndGLContext';
8
7
 
9
8
  //--- color ---
10
9
  export interface RenderPassColorAttachmentInternal {
@@ -55,7 +54,6 @@ export abstract class RenderPassInternal implements ResourceInternal {
55
54
  readonly attachments: RenderPassColorAttachmentInternal[];
56
55
  readonly width: number;
57
56
  readonly height: number;
58
- readonly gl?: AndGLContext;
59
57
  /**
60
58
  * 增删改查的操作,在warp层对Mesh进行后,得到的数据全部覆盖当前数据
61
59
  */
@@ -10,6 +10,7 @@ import type { RenderFrameInternal, RenderFrameInternalOptions } from './RenderFr
10
10
  import type { GPUCapability } from '../GPUCapability';
11
11
  import type { TextureInternal, TextureInternalConstructOptions } from './TextureInternal';
12
12
  import type { ImageBitmapCallback, ImageBitmapConstructor } from './ImageBitmapInternal';
13
+ import type { AndGLContext } from './AndGLContext';
13
14
 
14
15
  /**
15
16
  * renderer 内部创建的对象,用来统计信息,排查资源泄漏的问题
@@ -32,6 +33,7 @@ export abstract class RendererInternal implements ResourceInternal {
32
33
  readonly shaderLibrary: ShaderLibraryInternal;
33
34
  readonly width: number;
34
35
  readonly height: number;
36
+ readonly gl?: AndGLContext;
35
37
 
36
38
  abstract destroy (): void;
37
39