ComputeFloat4 Class
Namespace: Stride.Rendering.Materials.ComputeColorsAssembly: Stride.Rendering.dll
Derived from ComputeFloat4:
[DataContract("ComputeFloat4")]
[Display("Float4", null)]
public class ComputeFloat4 : ComputeValueBase<Vector4>, IComputeColor, IComputeNode
Name | Description | |
---|---|---|
Constructors | ||
ComputeFloat4() | Initializes a new instance of the ComputeFloat4 class. |
|
ComputeFloat4(Vector4) | Initializes a new instance of the ComputeFloat4 class. |
|
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. |
|
Methods | ||
GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys) | ||
ToString() |
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
Type | Name | Description |
---|---|---|
Vector4 | value | 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
Type | Description |
---|---|
System.Boolean |
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
ToString()
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()