ComputeFloat Class
Namespace: Stride.Rendering.Materials.ComputeColorsAssembly: Stride.Rendering.dll
A float compute color.
Derived from ComputeFloat:
[DataContract("ComputeFloat")]
[Display("Float", null)]
public class ComputeFloat : ComputeValueBase<float>, IComputeScalar, IComputeNode
Name | Description | |
---|---|---|
Constructors | ||
ComputeFloat() | Initializes a new instance of the ComputeFloat class. |
|
ComputeFloat(Single) | Initializes a new instance of the ComputeFloat class. |
|
Methods | ||
GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys) |
Constructors
ComputeFloat()
Initializes a new instance of the ComputeFloat class.
public ComputeFloat()
ComputeFloat(Single)
Initializes a new instance of the ComputeFloat class.
public ComputeFloat(float value)
Parameters
Type | Name | Description |
---|---|---|
System.Single | value | The value. |
Methods
GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys)
public override ShaderSource GenerateShaderSource(ShaderGeneratorContext context, MaterialComputeColorKeys baseKeys)
Parameters
Type | Name | Description |
---|---|---|
ShaderGeneratorContext | context | |
MaterialComputeColorKeys | baseKeys |
Returns
Type | Description |
---|---|
ShaderSource |