Class GraphInputContainer
Collects external textures and buffers that should be exposed to a graph execution by name.
public class GraphInputContainer
- Inheritance
-
GraphInputContainer
- Inherited Members
Remarks
This is the staging object passed into TerrainGraph.ExecuteImmediate(string[], TerrainGenerationConfigs, GraphInputContainer, FillArgumentsHandler) or TerrainGraph.Execute(string[], TerrainGenerationConfigs, GraphInputContainer, FillArgumentsHandler). During binding, the container copies its named resources into GraphContext so input nodes and externally bound slots can resolve them by input name.
Constructors
- GraphInputContainer()
Creates an empty container for external graph inputs.
Methods
- AddBuffer(string, ComputeBuffer)
Registers a compute buffer input under the name graph input nodes will request.
- AddTexture(string, RenderTexture)
Registers a texture input under the name graph input nodes will request.