@predy-js/render-interface 0.1.61-beta.10 → 0.1.61-beta.12

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.
@@ -19,16 +19,8 @@ export abstract class RenderFrameInternal implements ResourceInternal {
19
19
  protected constructor (options: RenderFrameInternalOptions) {
20
20
  }
21
21
  abstract destroy (): void;
22
- /**
23
- * warp层完成所有数据传输后,通知客户端,可以进行实际渲染,
24
- * 实际渲染根据客户端时机进行,在调用end()之前,客户端会根据实际刷新进行绘制
25
- */
26
- abstract begin (): void;
27
22
 
28
- /**
29
- * 将RenderFrame移除渲染队列
30
- */
31
- abstract end (): void;
23
+ abstract render (): void;
32
24
 
33
25
  abstract updateLoadAction (action: RenderPassLoadAction): void;
34
26
  }
@@ -35,6 +35,11 @@ export abstract class RendererInternal implements ResourceInternal {
35
35
 
36
36
  abstract destroy (): void;
37
37
 
38
+ /**
39
+ * 需要进行重新渲染
40
+ */
41
+ abstract invalid (): void;
42
+
38
43
  abstract createBuffer (options: GPUBufferInternalOptions): GPUBufferInternal;
39
44
 
40
45
  abstract createGeometry (options: GeometryInternalOptions): GeometryInternal;
@@ -57,6 +62,14 @@ export abstract class RendererInternal implements ResourceInternal {
57
62
 
58
63
  abstract cancelAnimationFrame (id: number): void;
59
64
 
65
+ /**
66
+ * 获取错误信息,目前支持最大获取5条,
67
+ * 每次调用此函数后,清空错误队列
68
+ */
69
+ abstract getErrors (): string[];
70
+
71
+ abstract resize (width: number, height: number): void;
72
+
60
73
  abstract createImageBitmap (
61
74
  data: ArrayBuffer | string, //图片文件的数据
62
75
  options: ImageBitmapConstructor,