BundleContainer
- class omni.graph.core.BundleContainer(context: omni.graph.core._omni_graph_core.GraphContext, node: omni.graph.core._omni_graph_core.Node, attributes, gpu_bundles: List[str], read_only: bool = False, gpu_ptr_kinds: Optional[Dict[str, omni.graph.core._omni_graph_core.PtrToPtrKind]] = None)
Bases:
object
——– FOR GENERATED CODE USE ONLY ——–
Simple container to manage the set of bundle objects used during a compute function by a node. This is initialized alongside attribute data in order to minimize the generated code. It will house a set of BundleContents objects, one per attribute that is a bundle type, with properties named after the attributes they represent
- Parameters
context – Evaluation context for these bundles
node – Owner of these bundles
attributes – Subset of node attributes to check for being bundles
gpu_bundles – Subset of bundle attributes whose memory lives on the GPU
read_only – True if these attributes are read-only
Methods
__init__
(context, node, attributes, gpu_bundles)Set up the list of members based on the list of node attributes.
- __init__(context: omni.graph.core._omni_graph_core.GraphContext, node: omni.graph.core._omni_graph_core.Node, attributes, gpu_bundles: List[str], read_only: bool = False, gpu_ptr_kinds: Optional[Dict[str, omni.graph.core._omni_graph_core.PtrToPtrKind]] = None)
Set up the list of members based on the list of node attributes. These will usually be a subset, e.g. just the inputs, to keep the higher level access simple
- Parameters
context – Evaluation context for which the bundles are valid
node – OmniGraph node owning the bundles
attributes – Object containing the attributes as properties
read_only – If True then the bundles cannot be modified