Table of Contents

Class ComputeFloat

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

A float compute color.

[DataContract("ComputeFloat")]
[Display("Float", null)]
public class ComputeFloat : ComputeValueBase<float>, IComputeScalar, IComputeNode
Inheritance
ComputeFloat
Implements
Inherited Members

Constructors

ComputeFloat()

Initializes a new instance of the ComputeFloat class.

public ComputeFloat()

ComputeFloat(float)

Initializes a new instance of the ComputeFloat class.

public ComputeFloat(float value)

Parameters

value float

The value.

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.