ComputeBinaryBase<T> Class
Namespace: Stride.Rendering.Materials.ComputeColorsAssembly: Stride.Rendering.dll
A node that describe a binary operation between two IComputeNode
Derived from ComputeBinaryBase<T>: ComputeBinaryColor ComputeBinaryScalar
[DataContract(Inherited = true)]
[Display("Binary Operator", null)]
public abstract class ComputeBinaryBase<T> : ComputeNode, IComputeNode where T : class, IComputeNode
Type Parameters
| Name | Description |
|---|---|
| T |
| Name | Description | |
|---|---|---|
| Constructors | ||
| ComputeBinaryBase() | Initializes a new instance of the ComputeBinaryBase<T> class. |
|
| ComputeBinaryBase(T, T, BinaryOperator) | Initializes a new instance of the ComputeBinaryBase<T> class. |
|
| Properties | ||
| LeftChild | The left (background) child node. |
|
| Operator | The operation to blend the nodes. |
|
| RightChild | The right (foreground) child node. |
|
| Methods | ||
| GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys) | ||
| GetChildren(Object) | Gets the children. |
|
| ToString() | ||
Constructors
ComputeBinaryBase()
Initializes a new instance of the ComputeBinaryBase<T> class.
protected ComputeBinaryBase()
ComputeBinaryBase(T, T, BinaryOperator)
Initializes a new instance of the ComputeBinaryBase<T> class.
protected ComputeBinaryBase(T leftChild, T rightChild, BinaryOperator binaryOperator)
Parameters
| Type | Name | Description |
|---|---|---|
| T | leftChild | The left child. |
| T | rightChild | The right child. |
| BinaryOperator | binaryOperator | The material binary operand. |
Properties
LeftChild
The left (background) child node.
[DataMember(20)]
[Display("Left", null)]
public T LeftChild { get; set; }
Property Value
| Type | Description |
|---|---|
| T |
Operator
The operation to blend the nodes.
[DataMember(10)]
public BinaryOperator Operator { get; set; }
Property Value
| Type | Description |
|---|---|
| BinaryOperator |
RightChild
The right (foreground) child node.
[DataMember(30)]
[Display("Right", null)]
public T RightChild { get; set; }
Property Value
| Type | Description |
|---|---|
| T |
Methods
GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys)
public override ShaderSource GenerateShaderSource(ShaderGeneratorContext context, MaterialComputeColorKeys baseKeys)
Parameters
| Type | Name | Description |
|---|---|---|
| ShaderGeneratorContext | context | |
| MaterialComputeColorKeys | baseKeys |
Returns
| Type | Description |
|---|---|
| ShaderSource |
Overrides
GetChildren(Object)
Gets the children.
public override IEnumerable<IComputeNode> GetChildren(object context = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | context | The context to get the children. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<IComputeNode> | The list of children. |
Overrides
ToString()
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()