Class TernaryMathNodeBase
Base class for ternary math operations, such as clamp.
Inheritance
XNode.Node
TernaryMathNodeBase
Implements
Inherited Members
Namespace: Holoride.ElasticSDK.Graph.Maps
Assembly: Holoride.ElasticSDK.Runtime.dll
Syntax
public abstract class TernaryMathNodeBase : MapNode, IPipelineNode
Properties
InputNames
Gets the names of the node inputs corresponding to the three operation inputs.
These should resolve into MapWorkers defined as inputs with the corresponding names.
Declaration
protected abstract (string InputNameA, string InputNameB, string InputNameC) InputNames { get; }
Property Value
Type | Description |
---|---|
(string InputNameA, string InputNameB, string InputNameC) |
Methods
Apply(ComputeBuffer, ComputeBuffer, ComputeBuffer, ComputeBuffer)
Applies the ternary operation to the specified inputs and write the result into the specified output.
Declaration
protected abstract void Apply(ComputeBuffer a, ComputeBuffer b, ComputeBuffer c, ComputeBuffer output)
Parameters
Type | Name | Description |
---|---|---|
ComputeBuffer | a | The first input buffer. |
ComputeBuffer | b | The second input buffer. |
ComputeBuffer | c | The third input buffer. |
ComputeBuffer | output | The output buffer. |
GeneratePipelineWorker()
Declaration
public override IPipelineWorker GeneratePipelineWorker()
Returns
Type | Description |
---|---|
IPipelineWorker |