Table of Contents

Class ComputeFloat4

Namespace
Stride.Rendering.Materials.ComputeColors
Assembly
Stride.Rendering.dll
[DataContract("ComputeFloat4")]
[Display("Float4", null)]
public class ComputeFloat4 : ComputeValueBase<Vector4>, IComputeColor, IComputeNode
Inheritance
ComputeFloat4
Implements
Inherited Members

Constructors

ComputeFloat4()

Initializes a new instance of the ComputeFloat4 class.

public ComputeFloat4()

ComputeFloat4(Vector4)

Initializes a new instance of the ComputeFloat4 class.

public ComputeFloat4(Vector4 value)

Parameters

value Vector4

The value.

Properties

HasChanged

Indicates if the IComputeColor has changed since the last time it was checked, which might require recompilation of the shader mixins. Once polled, it will reset all cached states and revert to false until other changes have been triggered.

public bool HasChanged { get; }

Property Value

bool

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.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.