@predy-js/render-interface 0.1.61-beta.13 → 0.1.61-beta.15
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 +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/dist/src/render/MarsSemanticMap.d.ts +2 -2
- package/dist/src/webgl/GLProgram.d.ts +1 -1
- package/dist/statistic.js +1 -1
- package/dist/types/RenderPass.d.ts +1 -1
- package/dist/types/native/RenderFrameInternal.d.ts +0 -4
- package/package.json +1 -1
- package/types/RenderPass.ts +1 -1
- package/types/native/RenderFrameInternal.ts +0 -4
@@ -1,10 +1,10 @@
|
|
1
|
-
import type { GPUBuffer, RenderState, UniformValue, SemanticMap, SemanticGetter } from '../../types';
|
1
|
+
import type { GPUBuffer, RenderState, UniformValue, SemanticMap, SemanticGetter, Texture } from '../../types';
|
2
2
|
export declare class MarsSemanticMap implements SemanticMap {
|
3
3
|
readonly semantics: Record<string, SemanticGetter>;
|
4
4
|
constructor(semantics?: Record<string, SemanticGetter>);
|
5
5
|
toObject(): Record<string, SemanticGetter>;
|
6
6
|
setSemantic(name: string, value: SemanticGetter | undefined): void;
|
7
|
-
getSemanticValue(name: string, state: RenderState): UniformValue | GPUBuffer | null | undefined;
|
7
|
+
getSemanticValue(name: string, state: RenderState): UniformValue | GPUBuffer | Texture | Texture[] | null | undefined;
|
8
8
|
hasSemanticValue(name: string): boolean;
|
9
9
|
destroy(): void;
|
10
10
|
}
|
@@ -36,7 +36,7 @@ export declare class GLProgram {
|
|
36
36
|
constructor(renderer: GLGPURenderer, program: WebGLProgram, shared: boolean, id: string);
|
37
37
|
init(renderer: GLGPURenderer, program: WebGLProgram): void;
|
38
38
|
bind(): void;
|
39
|
-
getSemanticValue(state: RenderState, semanticName: string): UniformValue | import("../../types").GPUBuffer | null | undefined;
|
39
|
+
getSemanticValue(state: RenderState, semanticName: string): UniformValue | import("../../types").Texture | import("../../types").Texture[] | import("../../types").GPUBuffer | null | undefined;
|
40
40
|
setupUniforms(state: RenderState): void;
|
41
41
|
setGLUniformValue(name: string, value: any, info: ProgramUniformInfo, gl: WebGL2RenderingContext | WebGLRenderingContext): void;
|
42
42
|
setupAttributes(geometry: GLGeometry): GLVertexArrayObject;
|
package/dist/statistic.js
CHANGED
@@ -110,7 +110,7 @@ export declare class SemanticMap {
|
|
110
110
|
[key: string]: SemanticGetter;
|
111
111
|
});
|
112
112
|
setSemantic(name: string, value: SemanticGetter | undefined): void;
|
113
|
-
getSemanticValue(name: string, state: RenderState): UniformValue | GPUBuffer | null | undefined;
|
113
|
+
getSemanticValue(name: string, state: RenderState): UniformValue | GPUBuffer | Texture | Texture[] | null | undefined;
|
114
114
|
hasSemanticValue(name: string): boolean;
|
115
115
|
toObject(): Record<string, SemanticGetter>;
|
116
116
|
destroy(): void;
|
@@ -16,10 +16,6 @@ export declare abstract class RenderFrameInternal implements ResourceInternal {
|
|
16
16
|
renderPasses: RenderPassInternal[];
|
17
17
|
protected constructor(options: RenderFrameInternalOptions);
|
18
18
|
abstract destroy(): void;
|
19
|
-
/**
|
20
|
-
* 代表此帧会在渲染队列的下一帧被渲染,调用此函数,也会调用renderer.invalid方法
|
21
|
-
* 由于渲染是异步的,此函数在Metal/Vulkan实现中,并不会直接绘制
|
22
|
-
*/
|
23
19
|
abstract render(): void;
|
24
20
|
abstract updateLoadAction(action: RenderPassLoadAction): void;
|
25
21
|
}
|
package/package.json
CHANGED
package/types/RenderPass.ts
CHANGED
@@ -149,7 +149,7 @@ export declare class SemanticMap {
|
|
149
149
|
|
150
150
|
setSemantic (name: string, value: SemanticGetter | undefined): void;
|
151
151
|
|
152
|
-
getSemanticValue (name: string, state: RenderState): UniformValue | GPUBuffer | null | undefined;
|
152
|
+
getSemanticValue (name: string, state: RenderState): UniformValue | GPUBuffer | Texture | Texture[] | null | undefined;
|
153
153
|
|
154
154
|
hasSemanticValue (name: string): boolean;
|
155
155
|
|
@@ -20,10 +20,6 @@ export abstract class RenderFrameInternal implements ResourceInternal {
|
|
20
20
|
}
|
21
21
|
abstract destroy (): void;
|
22
22
|
|
23
|
-
/**
|
24
|
-
* 代表此帧会在渲染队列的下一帧被渲染,调用此函数,也会调用renderer.invalid方法
|
25
|
-
* 由于渲染是异步的,此函数在Metal/Vulkan实现中,并不会直接绘制
|
26
|
-
*/
|
27
23
|
abstract render (): void;
|
28
24
|
|
29
25
|
abstract updateLoadAction (action: RenderPassLoadAction): void;
|