@predy-js/render-interface 0.1.61-beta.1 → 0.1.61-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/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.61-beta.1
5
+ * Version: v0.1.61-beta.2
6
6
  */
7
7
 
8
8
  // https://github.com/greggman/webgl-memory/blob/main/src/texture-utils.js
@@ -1,7 +1,7 @@
1
1
  export type Shader = ShaderWithSource | ShaderUseCacheId;
2
2
  export type ShaderWithSource = InstancedShaderWithSource | SharedShaderWithSource;
3
3
  export interface MetaShaderSpec {
4
- mtlBinary?: ArrayBuffer | string;
4
+ mtlBinary?: ArrayBuffer;
5
5
  mtlSource?: string;
6
6
  mtlVertex?: string;
7
7
  mtlFragment?: string;
@@ -51,9 +51,9 @@ export interface ShaderLibrary {
51
51
  readonly cacheIds: string[];
52
52
  getShaderResult(cacheId: string): ShaderCompileResult | undefined;
53
53
  /**
54
- * 添加shader
55
- * @param shader
56
- */
54
+ * 添加shader
55
+ * @param shader
56
+ */
57
57
  addShader(shader: Shader): string;
58
58
  /**
59
59
  * @param cacheId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@predy-js/render-interface",
3
- "version": "0.1.61-beta.1",
3
+ "version": "0.1.61-beta.2",
4
4
  "license": "MIT",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -2,7 +2,7 @@ export type Shader = ShaderWithSource | ShaderUseCacheId;
2
2
  export type ShaderWithSource = InstancedShaderWithSource | SharedShaderWithSource;
3
3
 
4
4
  export interface MetaShaderSpec {
5
- mtlBinary?: ArrayBuffer | string,
5
+ mtlBinary?: ArrayBuffer,
6
6
  mtlSource?: string,
7
7
 
8
8
  mtlVertex?: string,
@@ -72,9 +72,9 @@ export interface ShaderLibrary {
72
72
  getShaderResult(cacheId: string): ShaderCompileResult | undefined,
73
73
 
74
74
  /**
75
- * 添加shader
76
- * @param shader
77
- */
75
+ * 添加shader
76
+ * @param shader
77
+ */
78
78
  addShader(shader: Shader): string,
79
79
 
80
80
  /**