@woosh/meep-engine 2.128.7 → 2.128.9
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/package.json +1 -1
- package/src/engine/graphics/render/frame_graph/RenderGraph.d.ts.map +1 -1
- package/src/engine/graphics/render/frame_graph/RenderGraph.js +3 -4
- package/src/engine/graphics/render/frame_graph/ResourceEntry.js +1 -1
- package/src/engine/graphics/render/frame_graph/backend/void/VoidRenderContext.d.ts +1 -1
- package/src/engine/graphics/render/frame_graph/backend/void/VoidRenderContext.js +1 -1
- package/src/engine/graphics/render/frame_graph/resource/ResourceDescriptor.d.ts +6 -0
- package/src/engine/graphics/render/frame_graph/resource/ResourceDescriptor.d.ts.map +1 -1
- package/src/engine/graphics/render/frame_graph/resource/ResourceDescriptor.js +10 -0
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Pure JavaScript game engine. Fully featured and production ready.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"author": "Alexander Goldring",
|
|
8
|
-
"version": "2.128.
|
|
8
|
+
"version": "2.128.9",
|
|
9
9
|
"main": "build/meep.module.js",
|
|
10
10
|
"module": "build/meep.module.js",
|
|
11
11
|
"exports": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderGraph.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/render/frame_graph/RenderGraph.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH;IA6BI;;;OAGG;IACH,mBAFW,MAAM,EAOhB;IArCD;;;;OAIG;IACH,MAFU,MAAM,CAEN;IAEV;;;;OAIG;IACH,qBAAkB;IAElB;;;;OAIG;IACH,yBAAsB;IAEtB;;;;OAIG;IACH,4BAAyB;IAazB;;;;OAIG;IACH,qBAHW,MAAM,sBAahB;IAED;;;;OAIG;IACH,oBAHW,MAAM,qBAmBhB;IAED;;;;OAIG;IACH,qBAHW,MAAM,KAKhB;IAED;;;;;OAKG;IACH,2BAJW,MAAM,oBAEJ,MAAM,CAWlB;IAED;;;;;OAKG;IACH,6BAYC;IAED;;;;;;OAMG;IACH,4BAeC;IAED;;;;OAIG;IACH,wBAHW,MAAM,GACJ,MAAM,CAkBlB;IAED;;;;;;OAMG;IACH,2BALW,MAAM,wDAGJ,MAAM,CAUlB;IAED;;;OAGG;IACH,4BAHa,OAAO,CAQnB;IAED;;;;;;;OAOG;IACH,eALW,MAAM,4BAGJ,iBAAiB,CA2B7B;IAED;;;;;;OAMG;IACH,iEAFa,OAAO,CAQnB;IAED,gBA6FC;IAED;;;OAGG;IACH,uCA2CC;IAED;;;;;;;OAOG;IACH;gBAFqB,EAAE;mBAAa,EAAE;MA2DrC;IAED;;;;;OAKG;IACH,eAFY,MAAM,
|
|
1
|
+
{"version":3,"file":"RenderGraph.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/render/frame_graph/RenderGraph.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH;IA6BI;;;OAGG;IACH,mBAFW,MAAM,EAOhB;IArCD;;;;OAIG;IACH,MAFU,MAAM,CAEN;IAEV;;;;OAIG;IACH,qBAAkB;IAElB;;;;OAIG;IACH,yBAAsB;IAEtB;;;;OAIG;IACH,4BAAyB;IAazB;;;;OAIG;IACH,qBAHW,MAAM,sBAahB;IAED;;;;OAIG;IACH,oBAHW,MAAM,qBAmBhB;IAED;;;;OAIG;IACH,qBAHW,MAAM,KAKhB;IAED;;;;;OAKG;IACH,2BAJW,MAAM,oBAEJ,MAAM,CAWlB;IAED;;;;;OAKG;IACH,6BAYC;IAED;;;;;;OAMG;IACH,4BAeC;IAED;;;;OAIG;IACH,wBAHW,MAAM,GACJ,MAAM,CAkBlB;IAED;;;;;;OAMG;IACH,2BALW,MAAM,wDAGJ,MAAM,CAUlB;IAED;;;OAGG;IACH,4BAHa,OAAO,CAQnB;IAED;;;;;;;OAOG;IACH,eALW,MAAM,4BAGJ,iBAAiB,CA2B7B;IAED;;;;;;OAMG;IACH,iEAFa,OAAO,CAQnB;IAED,gBA6FC;IAED;;;OAGG;IACH,uCA2CC;IAED;;;;;;;OAOG;IACH;gBAFqB,EAAE;mBAAa,EAAE;MA2DrC;IAED;;;;;OAKG;IACH,eAFY,MAAM,CAgEjB;IAGL;;;OAGG;IACH,wBAFU,OAAO,CAEkB;CANlC;8BAtjB6B,oBAAoB;6BACrB,mBAAmB;kCAJd,wBAAwB"}
|
|
@@ -529,10 +529,10 @@ export class RenderGraph {
|
|
|
529
529
|
out.add("# Resource Nodes");
|
|
530
530
|
for (const node of this.__resource_nodes) {
|
|
531
531
|
const entry = this.__resource_registry[node.resource_id];
|
|
532
|
-
out.add(`R${entry.resource_id}_${node.version} [label=<{ {<B>${node.name}</B>${node.version > 0 ? `<
|
|
532
|
+
out.add(`R${entry.resource_id}_${node.version} [label=<{ {<B>${node.name}</B>${node.version > 0 ? `<sup>v${node.version}</sup>` : ""}<BR/>${entry.toString()}} | {Index: ${entry.resource_id}<BR/> Refs : ${node.ref_count} } }> style=filled, fillcolor=${entry.isImported() ? "lightsteelblue" : "skyblue"}]`);
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
-
// -- Each pass node points to resource that it writes
|
|
535
|
+
// -- Each pass node points to the resource that it writes
|
|
536
536
|
|
|
537
537
|
out.add("");
|
|
538
538
|
out.add("# Resource Writes");
|
|
@@ -547,7 +547,7 @@ export class RenderGraph {
|
|
|
547
547
|
out.add("} [color=orangered]");
|
|
548
548
|
}
|
|
549
549
|
|
|
550
|
-
// -- Each resource node points to pass where it's consumed
|
|
550
|
+
// -- Each resource node points to the pass where it's consumed
|
|
551
551
|
|
|
552
552
|
out.add("");
|
|
553
553
|
out.add("# Resource Reads");
|
|
@@ -565,7 +565,6 @@ export class RenderGraph {
|
|
|
565
565
|
out.dedent();
|
|
566
566
|
out.add("} [color=olivedrab3]");
|
|
567
567
|
}
|
|
568
|
-
// -- Clusters:
|
|
569
568
|
out.dedent();
|
|
570
569
|
out.add("}");
|
|
571
570
|
return out.build();
|
|
@@ -2,7 +2,7 @@ import { IRenderContext } from "../../IRenderContext.js";
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Doesn't actually do anything, but works as a valid rendering context
|
|
5
|
-
* Mainly
|
|
5
|
+
* Mainly useful for testing
|
|
6
6
|
*/
|
|
7
7
|
export class VoidRenderContext extends IRenderContext {
|
|
8
8
|
createResource(descriptor) {
|
|
@@ -20,6 +20,12 @@ export class ResourceDescriptor {
|
|
|
20
20
|
* @returns {boolean}
|
|
21
21
|
*/
|
|
22
22
|
equals<T>(other: T): boolean;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @param {ResourceDescriptor} other
|
|
26
|
+
* @return {number}
|
|
27
|
+
*/
|
|
28
|
+
compare(other: ResourceDescriptor): number;
|
|
23
29
|
toString(): string;
|
|
24
30
|
}
|
|
25
31
|
//# sourceMappingURL=ResourceDescriptor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceDescriptor.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/render/frame_graph/resource/ResourceDescriptor.js"],"names":[],"mappings":"AAAA;;GAEG;AACH;IAEI;;;;OAIG;IACH,mBAEC;IAED;;;OAGG;IACH,oCAEC;IAGD,eAEC;IAED;;;;OAIG;IACH,qBAFa,OAAO,CAInB;IAED,mBAEC;CACJ"}
|
|
1
|
+
{"version":3,"file":"ResourceDescriptor.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/render/frame_graph/resource/ResourceDescriptor.js"],"names":[],"mappings":"AAAA;;GAEG;AACH;IAEI;;;;OAIG;IACH,mBAEC;IAED;;;OAGG;IACH,oCAEC;IAGD,eAEC;IAED;;;;OAIG;IACH,qBAFa,OAAO,CAInB;IAGD;;;;OAIG;IACH,eAHW,kBAAkB,GACjB,MAAM,CAIjB;IAED,mBAEC;CACJ"}
|
|
@@ -34,6 +34,16 @@ export class ResourceDescriptor {
|
|
|
34
34
|
return this.type === other.type;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @param {ResourceDescriptor} other
|
|
41
|
+
* @return {number}
|
|
42
|
+
*/
|
|
43
|
+
compare(other) {
|
|
44
|
+
return this.type.localeCompare(other.type);
|
|
45
|
+
}
|
|
46
|
+
|
|
37
47
|
toString(){
|
|
38
48
|
return this.type;
|
|
39
49
|
}
|