@predy-js/render-interface 0.1.61-beta.1 → 0.1.61-beta.11

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.
@@ -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,
@@ -5,6 +5,7 @@ import type { ImageBitmapInternal } from './ImageBitmapInternal';
5
5
 
6
6
  export interface TextureInternalOptions extends TextureFormatOptions, Omit<TextureConfigOptionsBase, 'keepImageSource'> {
7
7
  target: WebGLRenderingContext['TEXTURE_CUBE_MAP'] | WebGLRenderingContext['TEXTURE_2D'],
8
+ generateMipmap?: boolean,
8
9
  }
9
10
 
10
11
  export interface TextureInternalConstructOptions extends TextureInternalOptions {