Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ComputeFloat4 Class

    Namespace: Stride.Rendering.Materials.ComputeColors
    Assembly: Stride.Rendering.dll
    System.Object → ComputeNode → ComputeKeyedBase → ComputeValueBase<Vector4> → ComputeFloat4
    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()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    ComputeNode.GenerateShaderSource(ShaderGeneratorContext, MaterialComputeColorKeys)

    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Inherited Members

    ComputeValueBase<Vector4>.Value
    ComputeKeyedBase.Key
    ComputeKeyedBase.UsedKey
    ComputeNode.GetChildren(Object)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation