@predy-js/render-interface 0.1.61-beta.1 → 0.1.61-beta.2
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/ShaderLibrary.d.ts +4 -4
- package/package.json +1 -1
- package/types/ShaderLibrary.ts +4 -4
package/dist/statistic.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
export type Shader = ShaderWithSource | ShaderUseCacheId;
|
2
2
|
export type ShaderWithSource = InstancedShaderWithSource | SharedShaderWithSource;
|
3
3
|
export interface MetaShaderSpec {
|
4
|
-
mtlBinary?: ArrayBuffer
|
4
|
+
mtlBinary?: ArrayBuffer;
|
5
5
|
mtlSource?: string;
|
6
6
|
mtlVertex?: string;
|
7
7
|
mtlFragment?: string;
|
@@ -51,9 +51,9 @@ export interface ShaderLibrary {
|
|
51
51
|
readonly cacheIds: string[];
|
52
52
|
getShaderResult(cacheId: string): ShaderCompileResult | undefined;
|
53
53
|
/**
|
54
|
-
|
55
|
-
|
56
|
-
|
54
|
+
* 添加shader
|
55
|
+
* @param shader
|
56
|
+
*/
|
57
57
|
addShader(shader: Shader): string;
|
58
58
|
/**
|
59
59
|
* @param cacheId
|
package/package.json
CHANGED
package/types/ShaderLibrary.ts
CHANGED
@@ -2,7 +2,7 @@ export type Shader = ShaderWithSource | ShaderUseCacheId;
|
|
2
2
|
export type ShaderWithSource = InstancedShaderWithSource | SharedShaderWithSource;
|
3
3
|
|
4
4
|
export interface MetaShaderSpec {
|
5
|
-
mtlBinary?: ArrayBuffer
|
5
|
+
mtlBinary?: ArrayBuffer,
|
6
6
|
mtlSource?: string,
|
7
7
|
|
8
8
|
mtlVertex?: string,
|
@@ -72,9 +72,9 @@ export interface ShaderLibrary {
|
|
72
72
|
getShaderResult(cacheId: string): ShaderCompileResult | undefined,
|
73
73
|
|
74
74
|
/**
|
75
|
-
|
76
|
-
|
77
|
-
|
75
|
+
* 添加shader
|
76
|
+
* @param shader
|
77
|
+
*/
|
78
78
|
addShader(shader: Shader): string,
|
79
79
|
|
80
80
|
/**
|