Class ComputeBinaryBase<T>
- Namespace
- Stride.Rendering.Materials.Compute
Colors
- Assembly
- Stride.Rendering.dll
A node that describe a binary operation between two ICompute
[DataContract(Inherited = true)]
[Display("Binary Operator", null)]
public abstract class ComputeBinaryBase<T> : ComputeNode, IComputeNode where T : class, IComputeNode
Type Parameters
T
- Inheritance
-
ComputeBinaryBase<T>
- Implements
- Derived
Constructors
ComputeBinaryBase()
Initializes a new instance of the ComputeBinaryBase<T> class.
ComputeBinaryBase(T, T, BinaryOperator)
Initializes a new instance of the ComputeBinaryBase<T> class.
Parameters
leftChild
TThe left child.
rightChild
TThe right child.
binaryOperator
BinaryOperator The material binary operand.
Properties
LeftChild
The left (background) child node.
Property Value
- T
Operator
The operation to blend the nodes.
Property Value
RightChild
The right (foreground) child node.
Property Value
- T
Methods
GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys)
Generates the shader source equivalent for this node
public override ShaderSource GenerateShaderSource(ShaderGeneratorContext context, MaterialComputeColorKeys baseKeys)
Parameters
context
ShaderGenerator Context baseKeys
MaterialCompute Color Keys
Returns
- Shader
Source ShaderSource.
GetChildren(object)
Gets the children.
Parameters
context
objectThe context to get the children.
Returns
- IEnumerable<ICompute
Node > The list of children.
ToString()
Returns a string that represents the current object.
Returns
- string
A string that represents the current object.