@woosh/meep-engine 2.132.2 → 2.132.3
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
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.132.
|
|
8
|
+
"version": "2.132.3",
|
|
9
9
|
"main": "build/meep.module.js",
|
|
10
10
|
"module": "build/meep.module.js",
|
|
11
11
|
"exports": {
|
|
@@ -53,13 +53,24 @@ export class RenderPassNode<T> extends GraphNode {
|
|
|
53
53
|
* @return {boolean}
|
|
54
54
|
*/
|
|
55
55
|
writes(id: number): boolean;
|
|
56
|
-
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @param {number} resource
|
|
59
|
+
* @returns {number}
|
|
60
|
+
*/
|
|
61
|
+
write(resource: number): number;
|
|
57
62
|
/**
|
|
58
63
|
*
|
|
59
64
|
* @param {number} resource
|
|
60
65
|
* @returns {number} same as the input
|
|
61
66
|
*/
|
|
62
67
|
read(resource: number): number;
|
|
68
|
+
/**
|
|
69
|
+
* Shortcut for read + write
|
|
70
|
+
* @param {number} resource
|
|
71
|
+
* @returns {number} written resource ID
|
|
72
|
+
*/
|
|
73
|
+
read_write(resource: number): number;
|
|
63
74
|
/**
|
|
64
75
|
*
|
|
65
76
|
* @return {boolean}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderPassNode.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/render/frame_graph/RenderPassNode.js"],"names":[],"mappings":"AAGA;;GAEG;AACH;;IAEI;;;;;OAKG;IACH,cAJW,CAAC,iEAMX;IAED;;;OAGG;IACH,kBAFU,OAAO,CAEQ;IAEzB;;;OAGG;IACH,UAAU;IAEV;;;OAGG;IACH,kBAFU,MAAM,EAAE,CAEI;IAEtB;;;OAGG;IACH,gBAFU,MAAM,EAAE,CAEE;IAEpB;;;OAGG;IACH,iBAFU,MAAM,EAAE,CAEG;IAErB;;;;OAIG;IACH,YAHW,MAAM,GACL,OAAO,CAMlB;IAED;;;;OAIG;IACH,UAHW,MAAM,GACL,OAAO,CAMlB;IAED;;;;OAIG;IACH,WAHW,MAAM,GACL,OAAO,CAMlB;IAED,
|
|
1
|
+
{"version":3,"file":"RenderPassNode.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/render/frame_graph/RenderPassNode.js"],"names":[],"mappings":"AAGA;;GAEG;AACH;;IAEI;;;;;OAKG;IACH,cAJW,CAAC,iEAMX;IAED;;;OAGG;IACH,kBAFU,OAAO,CAEQ;IAEzB;;;OAGG;IACH,UAAU;IAEV;;;OAGG;IACH,kBAFU,MAAM,EAAE,CAEI;IAEtB;;;OAGG;IACH,gBAFU,MAAM,EAAE,CAEE;IAEpB;;;OAGG;IACH,iBAFU,MAAM,EAAE,CAEG;IAErB;;;;OAIG;IACH,YAHW,MAAM,GACL,OAAO,CAMlB;IAED;;;;OAIG;IACH,UAHW,MAAM,GACL,OAAO,CAMlB;IAED;;;;OAIG;IACH,WAHW,MAAM,GACL,OAAO,CAMlB;IAED;;;;OAIG;IACH,gBAHW,MAAM,GACJ,MAAM,CASlB;IAED;;;;OAIG;IACH,eAHW,MAAM,GACJ,MAAM,CAUlB;IAED;;;;OAIG;IACH,qBAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;OAGG;IACH,eAFY,OAAO,CAIlB;CACJ;0BA9HyB,gBAAgB"}
|
|
@@ -79,6 +79,11 @@ export class RenderPassNode extends GraphNode {
|
|
|
79
79
|
return this.resource_writes.includes(id);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @param {number} resource
|
|
85
|
+
* @returns {number}
|
|
86
|
+
*/
|
|
82
87
|
write(resource) {
|
|
83
88
|
if (this.writes(resource)) {
|
|
84
89
|
return resource;
|
|
@@ -103,6 +108,16 @@ export class RenderPassNode extends GraphNode {
|
|
|
103
108
|
return resource;
|
|
104
109
|
}
|
|
105
110
|
|
|
111
|
+
/**
|
|
112
|
+
* Shortcut for read + write
|
|
113
|
+
* @param {number} resource
|
|
114
|
+
* @returns {number} written resource ID
|
|
115
|
+
*/
|
|
116
|
+
read_write(resource) {
|
|
117
|
+
this.reads(resource);
|
|
118
|
+
return this.write(resource);
|
|
119
|
+
}
|
|
120
|
+
|
|
106
121
|
/**
|
|
107
122
|
*
|
|
108
123
|
* @return {boolean}
|