@predy-js/render-interface 0.1.61-beta.17 → 0.1.61-beta.18
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.mjs +2 -2
- package/dist/statistic.js +1 -1
- package/dist/types/native/DataBlockInternal.d.ts +3 -0
- package/dist/types/native/MaterialInternal.d.ts +0 -9
- package/package.json +1 -1
- package/types/native/DataBlockInternal.ts +5 -0
- package/types/native/MaterialInternal.ts +0 -11
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.1.61-beta.
|
5
|
+
* Version: v0.1.61-beta.18
|
6
6
|
*/
|
7
7
|
|
8
8
|
'use strict';
|
@@ -5810,7 +5810,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5810
5810
|
return MarsSharedGeometry;
|
5811
5811
|
}(MarsGeometry));
|
5812
5812
|
|
5813
|
-
consoleLog('version: ' + "0.1.61-beta.
|
5813
|
+
consoleLog('version: ' + "0.1.61-beta.18");
|
5814
5814
|
|
5815
5815
|
exports.Geometry = MarsGeometry;
|
5816
5816
|
exports.InstancedMesh = MarsInstancedMesh;
|
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.1.61-beta.
|
5
|
+
* Version: v0.1.61-beta.18
|
6
6
|
*/
|
7
7
|
|
8
8
|
/******************************************************************************
|
@@ -5806,7 +5806,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5806
5806
|
return MarsSharedGeometry;
|
5807
5807
|
}(MarsGeometry));
|
5808
5808
|
|
5809
|
-
consoleLog('version: ' + "0.1.61-beta.
|
5809
|
+
consoleLog('version: ' + "0.1.61-beta.18");
|
5810
5810
|
|
5811
5811
|
export { DestroyOptions, MarsGeometry as Geometry, MarsInstancedMesh as InstancedMesh, MarsTextureFactory, MarsMaterial as Material, MarsMaterialDataBlock as MaterialDataBlock, MarsMesh as Mesh, MarsRenderFrame as RenderFrame, MarsRenderPass as RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassMeshOrder, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, MarsRenderer as Renderer, ShaderCompileResultStatus, ShaderLibraryEmpty, MarsSharedGeometry as SharedGeometry, MarsTexture as Texture, TextureLoadAction, TextureSourceType, TextureStoreAction, constants, getDefaultGPUCapability, getDefaultTextureFactory, setDefaultTextureFactory };
|
5812
5812
|
//# sourceMappingURL=index.mjs.map
|
package/dist/statistic.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { ResourceInternal } from './ResourceInternal';
|
2
2
|
import type { TypedArray } from '../type';
|
3
|
+
import type { TextureInternal } from './TextureInternal';
|
3
4
|
export interface DataBlockInternalOptions {
|
4
5
|
name: string;
|
5
6
|
}
|
@@ -26,4 +27,6 @@ export declare abstract class DataBlockInternal implements ResourceInternal {
|
|
26
27
|
* @param value
|
27
28
|
*/
|
28
29
|
abstract getUniformValue(name: string, value: TypedArray): boolean;
|
30
|
+
abstract setUniformTexture(uniformName: string, texture: TextureInternal[] | undefined): void;
|
31
|
+
abstract getUniformTexture(uniformName: string): TextureInternal[] | undefined;
|
29
32
|
}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import type { ResourceInternal } from './ResourceInternal';
|
2
2
|
import type { MaterialRenderStates } from '../Material';
|
3
3
|
import type { DataBlockInternal } from './DataBlockInternal';
|
4
|
-
import type { TextureInternal } from './TextureInternal';
|
5
4
|
export interface MaterialInternalOptions {
|
6
5
|
states: MaterialRenderStates;
|
7
6
|
dataBlocks: DataBlockInternal[];
|
@@ -15,12 +14,4 @@ export declare abstract class MaterialInternal implements ResourceInternal {
|
|
15
14
|
dataBlocks: DataBlockInternal[];
|
16
15
|
protected constructor(options: MaterialInternalOptions);
|
17
16
|
abstract destroy(): void;
|
18
|
-
/**
|
19
|
-
* 对于 uniform sampler2D uTex
|
20
|
-
* 和 uniform sampler2D uTextures[4] 都使用此函数
|
21
|
-
* @param name
|
22
|
-
* @param value
|
23
|
-
*/
|
24
|
-
abstract setUniformTextures(name: string, value: TextureInternal[]): void;
|
25
|
-
abstract getUniformTextures(name: string): TextureInternal[];
|
26
17
|
}
|
package/package.json
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { ResourceInternal } from './ResourceInternal';
|
2
2
|
import type { TypedArray } from '../type';
|
3
|
+
import type { TextureInternal } from './TextureInternal';
|
3
4
|
|
4
5
|
export interface DataBlockInternalOptions {
|
5
6
|
name: string,
|
@@ -32,4 +33,8 @@ export abstract class DataBlockInternal implements ResourceInternal {
|
|
32
33
|
*/
|
33
34
|
abstract getUniformValue (name: string, value: TypedArray): boolean;
|
34
35
|
|
36
|
+
abstract setUniformTexture (uniformName: string, texture: TextureInternal[] | undefined): void;
|
37
|
+
|
38
|
+
abstract getUniformTexture (uniformName: string): TextureInternal[] | undefined;
|
39
|
+
|
35
40
|
}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import type { ResourceInternal } from './ResourceInternal';
|
2
2
|
import type { MaterialRenderStates } from '../Material';
|
3
3
|
import type { DataBlockInternal } from './DataBlockInternal';
|
4
|
-
import type { TextureInternal } from './TextureInternal';
|
5
4
|
export interface MaterialInternalOptions {
|
6
5
|
states: MaterialRenderStates,
|
7
6
|
dataBlocks: DataBlockInternal[],
|
@@ -18,14 +17,4 @@ export abstract class MaterialInternal implements ResourceInternal {
|
|
18
17
|
protected constructor (options: MaterialInternalOptions) {
|
19
18
|
}
|
20
19
|
abstract destroy (): void;
|
21
|
-
|
22
|
-
/**
|
23
|
-
* 对于 uniform sampler2D uTex
|
24
|
-
* 和 uniform sampler2D uTextures[4] 都使用此函数
|
25
|
-
* @param name
|
26
|
-
* @param value
|
27
|
-
*/
|
28
|
-
abstract setUniformTextures (name: string, value: TextureInternal[]): void;
|
29
|
-
|
30
|
-
abstract getUniformTextures (name: string): TextureInternal[];
|
31
20
|
}
|