@predy-js/render-interface 0.3.0-beta.3 → 0.3.0-beta.30
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/statistic.js +1 -1
- package/dist/types/native/DataBlockInternal.d.ts +11 -0
- package/package.json +1 -1
- package/types/native/DataBlockInternal.ts +12 -0
package/dist/statistic.js
CHANGED
@@ -4,6 +4,9 @@ import type { TextureInternal } from './TextureInternal';
|
|
4
4
|
export interface DataBlockInternalOptions {
|
5
5
|
name: string;
|
6
6
|
}
|
7
|
+
export interface NativeUniformStruct {
|
8
|
+
[key: string]: TypedArray;
|
9
|
+
}
|
7
10
|
export declare abstract class DataBlockInternal implements ResourceInternal {
|
8
11
|
readonly isDestroyed: boolean;
|
9
12
|
/**
|
@@ -27,6 +30,14 @@ export declare abstract class DataBlockInternal implements ResourceInternal {
|
|
27
30
|
* @param value
|
28
31
|
*/
|
29
32
|
abstract getUniformValue(name: string, value: TypedArray): boolean;
|
33
|
+
/**
|
34
|
+
* 设置uniform的结构体数据
|
35
|
+
*/
|
36
|
+
abstract setUniformStructValue(name: string, value: NativeUniformStruct[]): boolean;
|
37
|
+
/**
|
38
|
+
* 获取uniform的结构体数据
|
39
|
+
*/
|
40
|
+
abstract getUniformStructValue(name: string, idx: number, value: NativeUniformStruct): boolean;
|
30
41
|
abstract setUniformTextures(uniformName: string, texture: TextureInternal[] | undefined): void;
|
31
42
|
abstract getUniformTextures(uniformName: string): TextureInternal[] | undefined;
|
32
43
|
}
|
package/package.json
CHANGED
@@ -5,6 +5,8 @@ import type { TextureInternal } from './TextureInternal';
|
|
5
5
|
export interface DataBlockInternalOptions {
|
6
6
|
name: string,
|
7
7
|
}
|
8
|
+
export interface NativeUniformStruct { [key: string]: TypedArray }
|
9
|
+
|
8
10
|
export abstract class DataBlockInternal implements ResourceInternal {
|
9
11
|
readonly isDestroyed: boolean;
|
10
12
|
/**
|
@@ -33,6 +35,16 @@ export abstract class DataBlockInternal implements ResourceInternal {
|
|
33
35
|
*/
|
34
36
|
abstract getUniformValue (name: string, value: TypedArray): boolean;
|
35
37
|
|
38
|
+
/**
|
39
|
+
* 设置uniform的结构体数据
|
40
|
+
*/
|
41
|
+
abstract setUniformStructValue (name: string, value: NativeUniformStruct[]): boolean;
|
42
|
+
|
43
|
+
/**
|
44
|
+
* 获取uniform的结构体数据
|
45
|
+
*/
|
46
|
+
abstract getUniformStructValue (name: string, idx: number, value: NativeUniformStruct): boolean;
|
47
|
+
|
36
48
|
abstract setUniformTextures (uniformName: string, texture: TextureInternal[] | undefined): void;
|
37
49
|
|
38
50
|
abstract getUniformTextures (uniformName: string): TextureInternal[] | undefined;
|