@woosh/meep-engine 2.124.3 → 2.124.4
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.124.
|
|
8
|
+
"version": "2.124.4",
|
|
9
9
|
"main": "build/meep.module.js",
|
|
10
10
|
"module": "build/meep.module.js",
|
|
11
11
|
"exports": {
|
|
@@ -14,6 +14,16 @@ export class RenderPassResources {
|
|
|
14
14
|
* @private
|
|
15
15
|
*/
|
|
16
16
|
private __pass;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @return {string}
|
|
20
|
+
*/
|
|
21
|
+
get pass_name(): string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @return {number}
|
|
25
|
+
*/
|
|
26
|
+
get pass_id(): number;
|
|
17
27
|
/**
|
|
18
28
|
*
|
|
19
29
|
* @param {RenderGraph} graph
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderPassResources.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/render/frame_graph/RenderPassResources.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RenderPassResources.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/render/frame_graph/RenderPassResources.js"],"names":[],"mappings":"AAEA;;GAEG;AACH;IACI;;;;OAIG;IACH,gBAAe;IACf;;;;OAIG;IACH,eAAc;IAEd;;;OAGG;IACH,iBAFY,MAAM,CAIjB;IAED;;;OAGG;IACH,eAFY,MAAM,CAIjB;IAED;;;;OAIG;IACH,YAHW,WAAW,QACX,cAAc,QAQxB;IAED;;;;OAIG;IACH,IAJa,CAAC,MACH,MAAM,GACJ,CAAC,CAcb;IAED;;;;OAIG;IACH,cAJa,CAAC,MACH,MAAM,GACJ,CAAC,CAcb;CACJ"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
1
|
import { assert } from "../../../../core/assert.js";
|
|
4
2
|
|
|
5
3
|
/**
|
|
@@ -19,12 +17,31 @@ export class RenderPassResources {
|
|
|
19
17
|
*/
|
|
20
18
|
__pass = null;
|
|
21
19
|
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @return {string}
|
|
23
|
+
*/
|
|
24
|
+
get pass_name() {
|
|
25
|
+
return this.__pass.name;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @return {number}
|
|
31
|
+
*/
|
|
32
|
+
get pass_id() {
|
|
33
|
+
return this.__pass.id;
|
|
34
|
+
}
|
|
35
|
+
|
|
22
36
|
/**
|
|
23
37
|
*
|
|
24
38
|
* @param {RenderGraph} graph
|
|
25
39
|
* @param {RenderPassNode} node
|
|
26
40
|
*/
|
|
27
41
|
init(graph, node) {
|
|
42
|
+
assert.defined(graph, 'graph');
|
|
43
|
+
assert.defined(node, 'node');
|
|
44
|
+
|
|
28
45
|
this.__graph = graph;
|
|
29
46
|
this.__pass = node;
|
|
30
47
|
}
|
|
@@ -35,6 +52,8 @@ export class RenderPassResources {
|
|
|
35
52
|
* @returns {T}
|
|
36
53
|
*/
|
|
37
54
|
get(id) {
|
|
55
|
+
assert.isNonNegativeInteger(id, 'id');
|
|
56
|
+
|
|
38
57
|
assert.ok(
|
|
39
58
|
this.__pass.reads(id)
|
|
40
59
|
|| this.__pass.writes(id)
|
|
@@ -52,6 +71,8 @@ export class RenderPassResources {
|
|
|
52
71
|
* @returns {T}
|
|
53
72
|
*/
|
|
54
73
|
getDescriptor(id) {
|
|
74
|
+
assert.isNonNegativeInteger(id, 'id');
|
|
75
|
+
|
|
55
76
|
assert.ok(
|
|
56
77
|
this.__pass.reads(id)
|
|
57
78
|
|| this.__pass.writes(id)
|