Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    ComputeNode Class

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

    Base interface for all computer color nodes.

    System.Object → ComputeNode
    Derived from ComputeNode: ComputeBinaryBase<T> ComputeKeyedBase ComputeShaderClassBase<T> ComputeVertexStreamBase

    [DataContract(Inherited = true)]
    public abstract class ComputeNode : IComputeNode
    Name Description
    Constructors
    ComputeNode()

    Initializes a new instance of the ComputeNode class.

    Methods
    GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys)

    Generates the shader source equivalent for this node

    GetChildren(Object)

    Gets the children.

    | Improve this Doc View Source

    Constructors


    ComputeNode()

    Initializes a new instance of the ComputeNode class.

    protected ComputeNode()
    | Improve this Doc View Source

    Methods


    GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys)

    Generates the shader source equivalent for this node

    public abstract ShaderSource GenerateShaderSource(ShaderGeneratorContext context, MaterialComputeColorKeys baseKeys)
    Parameters
    Type Name Description
    ShaderGeneratorContext context
    MaterialComputeColorKeys baseKeys
    Returns
    Type Description
    ShaderSource

    ShaderSource.


    GetChildren(Object)

    Gets the children.

    public virtual 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.


    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