@predy-js/render-interface 0.3.0-beta.25 → 0.3.0-beta.27
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
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.
|
5
|
+
* Version: v0.3.0-beta.27
|
6
6
|
*/
|
7
7
|
|
8
8
|
'use strict';
|
@@ -5860,7 +5860,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5860
5860
|
return MarsSharedGeometry;
|
5861
5861
|
}(MarsGeometry));
|
5862
5862
|
|
5863
|
-
consoleLog('version: ' + "0.3.0-beta.
|
5863
|
+
consoleLog('version: ' + "0.3.0-beta.27");
|
5864
5864
|
var ModuleMsg = 'RI Package: @predy-js/render-interface';
|
5865
5865
|
|
5866
5866
|
var RI = /*#__PURE__*/Object.freeze({
|
package/dist/index.mjs
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.
|
5
|
+
* Version: v0.3.0-beta.27
|
6
6
|
*/
|
7
7
|
|
8
8
|
/******************************************************************************
|
@@ -5856,7 +5856,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5856
5856
|
return MarsSharedGeometry;
|
5857
5857
|
}(MarsGeometry));
|
5858
5858
|
|
5859
|
-
consoleLog('version: ' + "0.3.0-beta.
|
5859
|
+
consoleLog('version: ' + "0.3.0-beta.27");
|
5860
5860
|
var ModuleMsg = 'RI Package: @predy-js/render-interface';
|
5861
5861
|
|
5862
5862
|
var RI = /*#__PURE__*/Object.freeze({
|
package/dist/statistic.js
CHANGED
@@ -4,7 +4,9 @@ import type { TextureInternal } from './TextureInternal';
|
|
4
4
|
export interface DataBlockInternalOptions {
|
5
5
|
name: string;
|
6
6
|
}
|
7
|
-
export
|
7
|
+
export interface NativeUniformStruct {
|
8
|
+
[key: string]: TypedArray;
|
9
|
+
}
|
8
10
|
export declare abstract class DataBlockInternal implements ResourceInternal {
|
9
11
|
readonly isDestroyed: boolean;
|
10
12
|
/**
|
@@ -31,11 +33,11 @@ export declare abstract class DataBlockInternal implements ResourceInternal {
|
|
31
33
|
/**
|
32
34
|
* 设置uniform的结构体数据
|
33
35
|
*/
|
34
|
-
abstract setUniformStructValue(name: string, value: NativeUniformStruct):
|
36
|
+
abstract setUniformStructValue(name: string, value: NativeUniformStruct[]): boolean;
|
35
37
|
/**
|
36
|
-
*
|
38
|
+
* 获取uniform的结构体数据
|
37
39
|
*/
|
38
|
-
abstract
|
40
|
+
abstract getUniformStructValue(name: string, idx: number, value: NativeUniformStruct): boolean;
|
39
41
|
abstract setUniformTextures(uniformName: string, texture: TextureInternal[] | undefined): void;
|
40
42
|
abstract getUniformTextures(uniformName: string): TextureInternal[] | undefined;
|
41
43
|
}
|
package/package.json
CHANGED
@@ -5,7 +5,7 @@ import type { TextureInternal } from './TextureInternal';
|
|
5
5
|
export interface DataBlockInternalOptions {
|
6
6
|
name: string,
|
7
7
|
}
|
8
|
-
export
|
8
|
+
export interface NativeUniformStruct { [key: string]: TypedArray }
|
9
9
|
|
10
10
|
export abstract class DataBlockInternal implements ResourceInternal {
|
11
11
|
readonly isDestroyed: boolean;
|
@@ -38,12 +38,12 @@ export abstract class DataBlockInternal implements ResourceInternal {
|
|
38
38
|
/**
|
39
39
|
* 设置uniform的结构体数据
|
40
40
|
*/
|
41
|
-
abstract setUniformStructValue (name: string, value: NativeUniformStruct):
|
41
|
+
abstract setUniformStructValue (name: string, value: NativeUniformStruct[]): boolean;
|
42
42
|
|
43
43
|
/**
|
44
|
-
*
|
44
|
+
* 获取uniform的结构体数据
|
45
45
|
*/
|
46
|
-
abstract
|
46
|
+
abstract getUniformStructValue (name: string, idx: number, value: NativeUniformStruct): boolean;
|
47
47
|
|
48
48
|
abstract setUniformTextures (uniformName: string, texture: TextureInternal[] | undefined): void;
|
49
49
|
|