Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    ComputeFloat Class

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

    A float compute color.

    System.Object → ComputeNode → ComputeKeyedBase → ComputeValueBase<System.Single> → ComputeFloat
    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)
    | Improve this Doc View Source

    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.

    | 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)

    Inherited Members

    ComputeValueBase<Single>.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