@woosh/meep-engine 2.117.16 → 2.117.17

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": "Fully featured ECS game engine written in JavaScript",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.117.16",
8
+ "version": "2.117.17",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -1 +1 @@
1
- {"version":3,"file":"RenderGraphBuilder.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/render/frame_graph/RenderGraphBuilder.js"],"names":[],"mappings":"AAEA;IAcI;;;;OAIG;IACH,qDAGC;IAED;;;;;OAKG;IACH,aAJW,MAAM,mCAEJ,MAAM,CASlB;IAED;;;;OAIG;IACH,eAHW,MAAM,GACJ,MAAM,CAMlB;IAED;;;;OAIG;IACH,gBAHW,MAAM,GACJ,MAAM,CAoBlB;;CACJ"}
1
+ {"version":3,"file":"RenderGraphBuilder.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/render/frame_graph/RenderGraphBuilder.js"],"names":[],"mappings":"AAEA;IAcI;;;;OAIG;IACH,qDAGC;IAED;;;;;OAKG;IACH,aAJW,MAAM,mCAEJ,MAAM,CAYlB;IAED;;;;OAIG;IACH,eAHW,MAAM,GACJ,MAAM,CAMlB;IAED;;;;OAIG;IACH,gBAHW,MAAM,GACJ,MAAM,CAsBlB;;CACJ"}
@@ -36,6 +36,9 @@ export class RenderGraphBuilder {
36
36
  // remember resource
37
37
  this.#node.resource_creates.push(node);
38
38
 
39
+ // creation implies writing as well
40
+ this.#node.resource_writes.push(node);
41
+
39
42
  return node;
40
43
  }
41
44
 
@@ -56,6 +59,8 @@ export class RenderGraphBuilder {
56
59
  * @returns {number}
57
60
  */
58
61
  write(resource) {
62
+ assert.isNonNegativeInteger(resource, 'resource');
63
+
59
64
  const graph = this.#graph;
60
65
  const node = this.#node;
61
66
 
@@ -20,12 +20,12 @@ export class RenderPassNode extends GraphNode {
20
20
  */
21
21
  resource_creates: number[];
22
22
  /**
23
- * IDs of created resources
23
+ * IDs of read resources
24
24
  * @type {number[]}
25
25
  */
26
26
  resource_reads: number[];
27
27
  /**
28
- * IDs of created resources
28
+ * IDs of written resources
29
29
  * @type {number[]}
30
30
  */
31
31
  resource_writes: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"RenderPassNode.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/render/frame_graph/RenderPassNode.js"],"names":[],"mappings":"AAGA;IACI;;;OAGG;IACH,MAFU,aAAW,IAAI,CAEb;IAGZ;;;OAGG;IACH,kBAFU,OAAO,CAEQ;IAEzB;;;OAGG;IACH,UAAU;IAEV;;;OAGG;IACH,kBAFU,MAAM,EAAE,CAEI;IACtB;;;OAGG;IACH,gBAFU,MAAM,EAAE,CAEE;IACpB;;;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,0BAOC;IAED;;;OAGG;IACH,eAFW,MAAM,UAUhB;IAED;;;OAGG;IACH,eAFY,OAAO,CAIlB;CACJ;0BArGyB,gBAAgB"}
1
+ {"version":3,"file":"RenderPassNode.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/render/frame_graph/RenderPassNode.js"],"names":[],"mappings":"AAGA;IACI;;;OAGG;IACH,MAFU,aAAW,IAAI,CAEb;IAEZ;;;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,0BAOC;IAED;;;OAGG;IACH,eAFW,MAAM,UAUhB;IAED;;;OAGG;IACH,eAFY,OAAO,CAIlB;CACJ;0BAtGyB,gBAAgB"}
@@ -8,7 +8,6 @@ export class RenderPassNode extends GraphNode {
8
8
  */
9
9
  pass = null;
10
10
 
11
-
12
11
  /**
13
12
  *
14
13
  * @type {boolean}
@@ -26,13 +25,15 @@ export class RenderPassNode extends GraphNode {
26
25
  * @type {number[]}
27
26
  */
28
27
  resource_creates = [];
28
+
29
29
  /**
30
- * IDs of created resources
30
+ * IDs of read resources
31
31
  * @type {number[]}
32
32
  */
33
33
  resource_reads = [];
34
+
34
35
  /**
35
- * IDs of created resources
36
+ * IDs of written resources
36
37
  * @type {number[]}
37
38
  */
38
39
  resource_writes = [];