Class BinaryMathNodeBase
Base class for binary math operations, such as addition, multiplication etc.
Implements
Inherited Members
Namespace: Holoride.ElasticSDK.Graph.Maps
Assembly: Holoride.ElasticSDK.Runtime.dll
Syntax
public abstract class BinaryMathNodeBase : 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) InputNames { get; }
Property Value
Type | Description |
---|---|
(string InputNameA, string InputNameB) |
Methods
Apply(ComputeBuffer, ComputeBuffer, ComputeBuffer)
Applies the binary operation to the specified inputs and write the result into the specified output.
Declaration
protected abstract void Apply(ComputeBuffer a, ComputeBuffer b, ComputeBuffer output)
Parameters
Type | Name | Description |
---|---|---|
ComputeBuffer | a | The first input buffer. |
ComputeBuffer | b | The second input buffer. |
ComputeBuffer | output | The output buffer. |
GeneratePipelineWorker()
Declaration
public override IPipelineWorker GeneratePipelineWorker()
Returns
Type | Description |
---|---|
IPipelineWorker |