This enum contains the possible cook types that can be passed to the pdg.GraphContext.cook method in order to cook a PDG graph.
Values ¶
pdg.cookType.Full
Performs a full cook of all nodes in the graph.
pdg.cookType.GenerateFull
Generates static items for all nodes in the graph. No work items are cooked, which means that dynamic nodes will not generate any work items.
pdg.cookType.GenerateNode
Generates the graph down to a particular node. If the specified node is dynamic, then work items in upstream nodes will cook as needed in order to generate the dynamic node.
pdg.cookType.GenerateStatic
Generates the graph down to a particular node. No work items are cooked, so if the specified node is dynamic then it won’t generate any work items. Instead, the graph will generate until the nearest upstream static node.
pdg.cookType.Node
Cooks the graph for a particular node. Upstream work items will only cook if necessary.
pdg.cookType.StaticDepsFull
Does a static cook of the whole graph. This consists of doing a GenerateFull
, and then calling the onScheduleStatic
implementation of the user’s custom scheduler.
Note that this is a fairly obscure cook mode, and will not work out of the box with stock schedulers.
pdg.cookType.StaticDepsGen
Generates static items for all nodes in the graph. This is provided for backward compatibility, and is the same as using GenerateFull
.
pdg.cookType.StaticDepsNode
The same as StaticDepsFull
, but for a particular node.