@predy-js/render-interface 0.1.64-beta.7 → 0.1.64-beta.8

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.64-beta.7
5
+ * Version: v0.1.64-beta.8
6
6
  */
7
7
 
8
8
  'use strict';
@@ -5827,7 +5827,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5827
5827
  return MarsSharedGeometry;
5828
5828
  }(MarsGeometry));
5829
5829
 
5830
- consoleLog('version: ' + "0.1.64-beta.7");
5830
+ consoleLog('version: ' + "0.1.64-beta.8");
5831
5831
 
5832
5832
  exports.GPUBufferOptionsMemoryShared = GPUBufferOptionsMemoryShared;
5833
5833
  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.64-beta.7
5
+ * Version: v0.1.64-beta.8
6
6
  */
7
7
 
8
8
  /******************************************************************************
@@ -5823,7 +5823,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5823
5823
  return MarsSharedGeometry;
5824
5824
  }(MarsGeometry));
5825
5825
 
5826
- consoleLog('version: ' + "0.1.64-beta.7");
5826
+ consoleLog('version: ' + "0.1.64-beta.8");
5827
5827
 
5828
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 };
5829
5829
  //# 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.64-beta.7
5
+ * Version: v0.1.64-beta.8
6
6
  */
7
7
 
8
8
  // https://github.com/greggman/webgl-memory/blob/main/src/texture-utils.js
@@ -1,3 +1,4 @@
1
+ import type { MaterialInternal } from './MaterialInternal';
1
2
  export declare abstract class AndGLContext {
2
3
  abstract isEnabled(param: GLenum): boolean;
3
4
  /**
@@ -17,4 +18,10 @@ export declare abstract class AndGLContext {
17
18
  abstract getParameter_i1(param: GLenum): number;
18
19
  abstract getParameter_f4(param: GLenum): [number, number, number, number];
19
20
  abstract getParameter_f2(param: GLenum): [number, number];
21
+ /**
22
+ * 将Material的状态设置到GPU
23
+ * 这个方法会在Native端调用, 在RI中不会调用
24
+ * 为了Android 测试,会主动调用设置状态到GPU, IOS 暂不调用
25
+ */
26
+ abstract setupStates(mtl: MaterialInternal): void;
20
27
  }
@@ -13,11 +13,5 @@ export declare abstract class MaterialInternal implements ResourceInternal {
13
13
  readonly shaderCacheId: string;
14
14
  dataBlocks: DataBlockInternal[];
15
15
  protected constructor(options: MaterialInternalOptions);
16
- /**
17
- * 将Material的状态设置到GPU
18
- * 这个方法会在Native端调用, 在RI中不会调用
19
- * 为了Android 测试,会主动调用设置状态到GPU, IOS 暂不调用
20
- */
21
- abstract setupStates(): void;
22
16
  abstract destroy(): void;
23
17
  }
@@ -1,3 +1,3 @@
1
1
  declare abstract class PredyNativeModule {
2
- static install(): void;
2
+ static install(callBack: (success: boolean, msg?: string) => void): void;
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@predy-js/render-interface",
3
- "version": "0.1.64-beta.7",
3
+ "version": "0.1.64-beta.8",
4
4
  "license": "MIT",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -1,3 +1,4 @@
1
+ import type { MaterialInternal } from './MaterialInternal';
1
2
 
2
3
  export abstract class AndGLContext {
3
4
  abstract isEnabled (param: GLenum): boolean;
@@ -24,4 +25,10 @@ export abstract class AndGLContext {
24
25
 
25
26
  abstract getParameter_f2 (param: GLenum): [number, number];
26
27
 
28
+ /**
29
+ * 将Material的状态设置到GPU
30
+ * 这个方法会在Native端调用, 在RI中不会调用
31
+ * 为了Android 测试,会主动调用设置状态到GPU, IOS 暂不调用
32
+ */
33
+ abstract setupStates (mtl: MaterialInternal): void;
27
34
  }
@@ -17,11 +17,5 @@ export abstract class MaterialInternal implements ResourceInternal {
17
17
  protected constructor (options: MaterialInternalOptions) {
18
18
  }
19
19
 
20
- /**
21
- * 将Material的状态设置到GPU
22
- * 这个方法会在Native端调用, 在RI中不会调用
23
- * 为了Android 测试,会主动调用设置状态到GPU, IOS 暂不调用
24
- */
25
- abstract setupStates (): void;
26
20
  abstract destroy (): void;
27
21
  }
@@ -1,4 +1,4 @@
1
1
 
2
2
  declare abstract class PredyNativeModule {
3
- static install (): void;
3
+ static install (callBack: (success: boolean, msg?: string) => void): void;
4
4
  }