Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ComputeBinaryBase<T> Class

    Namespace: Stride.Rendering.Materials.ComputeColors
    Assembly: Stride.Rendering.dll

    A node that describe a binary operation between two IComputeNode

    System.Object → ComputeNode → ComputeBinaryBase<T>
    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()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    ComputeNode.GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys)

    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
    ComputeNode.GetChildren(Object)

    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation