Table of Contents

Class ComputeShaderClassBase<T>

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

Base class for shader class node.

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

Type Parameters

T

Type of the node (scalar or color)

Inheritance
ComputeShaderClassBase<T>
Implements
Derived

Constructors

ComputeShaderClassBase()

protected ComputeShaderClassBase()

Properties

CompositionNodes

The compositions of this class.

[DataMember(40)]
public Dictionary<string, T> CompositionNodes { get; set; }

Property Value

Dictionary<string, T>

Generics

The generics of this class.

[DataMember(30)]
public ComputeColorParameters Generics { get; set; }

Property Value

ComputeColorParameters

Members

The members of this class.

public Dictionary<ParameterKey, object> Members { get; set; }

Property Value

Dictionary<ParameterKey, object>

MixinReference

The shader.

[DataMember(10)]
public string MixinReference { get; set; }

Property Value

string

Methods

GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys)

Generates the shader source equivalent for this node

public override ShaderSource GenerateShaderSource(ShaderGeneratorContext context, MaterialComputeColorKeys baseKeys)

Parameters

context ShaderGeneratorContext
baseKeys MaterialComputeColorKeys

Returns

ShaderSource

ShaderSource.

GetChildren(object)

Gets the children.

public override IEnumerable<IComputeNode> GetChildren(object context = null)

Parameters

context object

The context to get the children.

Returns

IEnumerable<IComputeNode>

The list of children.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.