Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    ComputeShaderClassBase<T> Class

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

    Base class for shader class node.

    System.Object → ComputeNode → ComputeShaderClassBase<T>
    Derived from ComputeShaderClassBase<T>: ComputeShaderClassColor ComputeShaderClassScalar

    [DataContract(Inherited = true)]
    [Display("Shader", null)]
    public abstract class ComputeShaderClassBase<T> : ComputeNode, IComputeNode where T : class, IComputeNode
    Type Parameters
    Name Description
    T

    Type of the node (scalar or color)

    Name Description
    Constructors
    ComputeShaderClassBase()
    Properties
    CompositionNodes

    The compositions of this class.

    Generics

    The generics of this class.

    Members

    The members of this class.

    MixinReference

    The shader.

    Methods
    GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys)
    GetChildren(Object)

    Gets the children.

    ToString()
    | Improve this Doc View Source

    Constructors


    ComputeShaderClassBase()

    protected ComputeShaderClassBase()
    | Improve this Doc View Source

    Properties


    CompositionNodes

    The compositions of this class.

    [DataMember(40)]
    public Dictionary<string, T> CompositionNodes { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.Dictionary<System.String, T>

    Generics

    The generics of this class.

    [DataMember(30)]
    public ComputeColorParameters Generics { get; set; }
    Property Value
    Type Description
    ComputeColorParameters

    Members

    The members of this class.

    public Dictionary<ParameterKey, object> Members { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.Dictionary<ParameterKey, System.Object>

    MixinReference

    The shader.

    [DataMember(10)]
    public string MixinReference { get; set; }
    Property Value
    Type Description
    System.String
    | 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