@predy-js/render-interface 0.3.0-beta.167 → 0.3.0-beta.169

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.3.0-beta.167
5
+ * Version: v0.3.0-beta.169
6
6
  */
7
7
 
8
8
  // https://github.com/greggman/webgl-memory/blob/main/src/texture-utils.js
@@ -11,6 +11,7 @@ import type { GPUCapability } from '../GPUCapability';
11
11
  import type { TextureInternal, TextureInternalConstructOptions } from './TextureInternal';
12
12
  import type { AndGLContext } from './AndGLContext';
13
13
  import type { MetalInternal } from './MetalInternal';
14
+ import type { vec2 } from '../type';
14
15
  /**
15
16
  * renderer 内部创建的对象,用来统计信息,排查资源泄漏的问题
16
17
  */
@@ -83,5 +84,9 @@ export declare abstract class RendererInternal implements ResourceInternal {
83
84
  * 每次调用此函数后,清空错误队列
84
85
  */
85
86
  abstract getErrors(): string[];
86
- abstract resize(width: number, height: number): void;
87
+ /**
88
+ * resize predy view,并且相关的fbo和render pass都需要设为相应的尺寸
89
+ * @param size 如果不提供size,则使用当前predy view parent的尺寸
90
+ */
91
+ abstract resize(size?: vec2): void;
87
92
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@predy-js/render-interface",
3
- "version": "0.3.0-beta.167",
3
+ "version": "0.3.0-beta.169",
4
4
  "license": "MIT",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -11,6 +11,7 @@ import type { GPUCapability } from '../GPUCapability';
11
11
  import type { TextureInternal, TextureInternalConstructOptions } from './TextureInternal';
12
12
  import type { AndGLContext } from './AndGLContext';
13
13
  import type { MetalInternal } from './MetalInternal';
14
+ import type { vec2 } from '../type';
14
15
 
15
16
  /**
16
17
  * renderer 内部创建的对象,用来统计信息,排查资源泄漏的问题
@@ -109,6 +110,10 @@ export abstract class RendererInternal implements ResourceInternal {
109
110
  */
110
111
  abstract getErrors (): string[];
111
112
 
112
- abstract resize (width: number, height: number): void;
113
+ /**
114
+ * resize predy view,并且相关的fbo和render pass都需要设为相应的尺寸
115
+ * @param size 如果不提供size,则使用当前predy view parent的尺寸
116
+ */
117
+ abstract resize (size?: vec2): void;
113
118
  }
114
119