Tutorial Node: Attributes With CPU/GPU Data
This is a tutorial node. It illustrates how to access data whose memory location, CPU or GPU, is determined at runtime in the compute method. The data types are the same as for the purely CPU and purely GPU tutorials, it is only the access method that changes. The input ‘is_gpu’ determines where the data of the other attributes can be accessed.
Installation
To use this Node, you must enable omni.graph.tutorials
in the Extension Manager.
Inputs
Name |
Type |
Description |
Default |
---|---|---|---|
is_gpu |
|
Runtime switch determining where the data for the other attributes lives. |
False |
a |
|
First value to be added in algorithm 1 |
0.0 |
b |
|
Second value to be added in algorithm 1 |
0.0 |
points |
|
Points to be moved by algorithm 2 |
[] |
multiplier |
|
Amplitude of the expansion for the input points in algorithm 2 |
[1.0, 1.0, 1.0] |
Outputs
Name |
Type |
Description |
Default |
---|---|---|---|
sum |
|
Sum of the two inputs from algorithm 1 |
|
points |
|
Final positions of points from algorithm 2 |