@predy-js/render-interface 0.3.0-beta.36 → 0.3.0-beta.38

Sign up to get free protection for your applications and to get access to all the features.
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.36
5
+ * Version: v0.3.0-beta.38
6
6
  */
7
7
 
8
8
  // https://github.com/greggman/webgl-memory/blob/main/src/texture-utils.js
@@ -33,11 +33,11 @@ export declare abstract class DataBlockInternal implements ResourceInternal {
33
33
  /**
34
34
  * 设置uniform的结构体数据
35
35
  */
36
- abstract setUniformStructValue(name: string, value: NativeUniformStruct[]): boolean;
36
+ abstract setUniformStructValues(name: string, values: NativeUniformStruct[]): boolean;
37
37
  /**
38
- * 获取uniform的结构体数据
38
+ * 获取uniform的结构体数据,获取的数据进行深拷贝
39
39
  */
40
- abstract getUniformStructValue(name: string, idx: number, value: NativeUniformStruct): boolean;
40
+ abstract getUniformStructValue(name: string, idx: number): NativeUniformStruct | undefined;
41
41
  abstract setUniformTextures(uniformName: string, texture: TextureInternal[] | undefined): void;
42
42
  abstract getUniformTextures(uniformName: string): TextureInternal[] | undefined;
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@predy-js/render-interface",
3
- "version": "0.3.0-beta.36",
3
+ "version": "0.3.0-beta.38",
4
4
  "license": "MIT",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -38,12 +38,12 @@ export abstract class DataBlockInternal implements ResourceInternal {
38
38
  /**
39
39
  * 设置uniform的结构体数据
40
40
  */
41
- abstract setUniformStructValue (name: string, value: NativeUniformStruct[]): boolean;
41
+ abstract setUniformStructValues (name: string, values: NativeUniformStruct[]): boolean;
42
42
 
43
43
  /**
44
- * 获取uniform的结构体数据
44
+ * 获取uniform的结构体数据,获取的数据进行深拷贝
45
45
  */
46
- abstract getUniformStructValue (name: string, idx: number, value: NativeUniformStruct): boolean;
46
+ abstract getUniformStructValue (name: string, idx: number): NativeUniformStruct | undefined;
47
47
 
48
48
  abstract setUniformTextures (uniformName: string, texture: TextureInternal[] | undefined): void;
49
49