ComputeShaderClassBase<T> Class
Namespace: Stride.Rendering.Materials.ComputeColorsAssembly: Stride.Rendering.dll
Base class for shader class node.
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() |
Constructors
ComputeShaderClassBase()
protected ComputeShaderClassBase()
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 |
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()