Skip to content

Commit 2c85ad8

Browse files
committed
Merge variable/set and variable/setMultiple nodes
1 parent 151988b commit 2c85ad8

File tree

1 file changed

+4
-42
lines changed

1 file changed

+4
-42
lines changed

extensions/2.0/Khronos/KHR_interactivity/Specification.adoc

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ Implementations **MAY** restrict the size and complexity of behavior graphs by i
417417
* The number of nodes
418418
* The number of graph-defined output flow sockets in operations like `flow/multiGate` or `flow/sequence`
419419
* The number of configuration-defined output flow sockets in operations like `flow/switch`
420-
* The number of configuration-defined input value sockets in operations like `pointer/get`, `math/switch`, or `variable/setMultiple`
420+
* The number of configuration-defined input value sockets in operations like `pointer/get`, `math/switch`, or `variable/set`
421421

422422
The graph **MUST** be rejected if it exceeds implementation-defined max values for these properties.
423423

@@ -3360,45 +3360,7 @@ This node has no internal state.
33603360

33613361
[cols="1h,1,2"]
33623362
|===
3363-
| Operation | `variable/set` | Set a custom variable value
3364-
| Configuration
3365-
| `int variable` | The custom variable index
3366-
| Input flow sockets
3367-
| `in` | The entry flow into this node
3368-
| Input value sockets
3369-
| `T value` | The new variable value
3370-
| Output flow sockets
3371-
| `out` | The flow to be activated after the value is set
3372-
|===
3373-
3374-
[CAUTION]
3375-
====
3376-
This node does not have a default configuration.
3377-
====
3378-
3379-
[CAUTION]
3380-
====
3381-
The configuration of this node affects its value socket.
3382-
====
3383-
3384-
This node sets a custom variable value using the variable index provided by the `variable` configuration value and the `value` input value.
3385-
3386-
The type `T` is determined by the referenced variable. The variable index **MUST** be a non-negative integer less than the total number of custom variables, otherwise the node is invalid and the graph **MUST** be rejected.
3387-
3388-
This node has no internal state.
3389-
3390-
When the `in` input flow is activated:
3391-
3392-
1. Evaluate the `value` input value.
3393-
2. If the _variable interpolation state dynamic array_ (defined below) contains an entry with the same variable reference, remove it from the array.
3394-
3. Set the custom variable with the `variable` configuration value index to the `value` input value.
3395-
4. Activate the `out` output flow.
3396-
3397-
===== Variable Set Multiple
3398-
3399-
[cols="1h,1,2"]
3400-
|===
3401-
| Operation | `variable/setMultiple` | Set multiple variables
3363+
| Operation | `variable/set` | Set one or more custom variable values
34023364
| Configuration
34033365
| `int[] variables` | The array containing variable indices
34043366
| Input flow sockets
@@ -4936,10 +4898,10 @@ The `variable/set` node sets a custom variable with index `0` when the start eve
49364898
{
49374899
"declaration": 1,
49384900
"configuration": {
4939-
"variable": { "value": [ 0 ] }
4901+
"variables": { "value": [ 0 ] }
49404902
},
49414903
"values": {
4942-
"value": { "type": 0, "value": [ 1.5 ] }
4904+
"0": { "type": 0, "value": [ 1.5 ] }
49434905
}
49444906
}
49454907
]

0 commit comments

Comments
 (0)