Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    StreamingQuality Struct

    Namespace: Stride.Streaming
    Assembly: Stride.Rendering.dll

    Resources streaming quality level value type.

    public struct StreamingQuality
    Name Description
    Constructors
    StreamingQuality(Single)

    Initializes a new instance of the StreamingQuality struct.

    Fields
    Maximum

    The maximum quality value.

    Mininum

    The mininum quality value.

    Value

    The quality value in range: [0; 1].

    Methods
    Normalize()

    Normalizes this quality value to range [0;1].

    Operators
    Implicit(StreamingQuality to Single)

    Performs an implicit conversion from StreamingQuality to System.Single.

    Implicit(Single to StreamingQuality)

    Performs an implicit conversion from System.Single to StreamingQuality.

    | Improve this Doc View Source

    Constructors


    StreamingQuality(Single)

    Initializes a new instance of the StreamingQuality struct.

    public StreamingQuality(float value)
    Parameters
    Type Name Description
    System.Single value

    The quality value (range [0;1]).

    | Improve this Doc View Source

    Fields


    Maximum

    The maximum quality value.

    public static readonly StreamingQuality Maximum
    Field Value
    Type Description
    StreamingQuality

    Mininum

    The mininum quality value.

    public static readonly StreamingQuality Mininum
    Field Value
    Type Description
    StreamingQuality

    Value

    The quality value in range: [0; 1].

    public float Value
    Field Value
    Type Description
    System.Single
    | Improve this Doc View Source

    Methods


    Normalize()

    Normalizes this quality value to range [0;1].

    public void Normalize()
    | Improve this Doc View Source

    Operators


    Implicit(StreamingQuality to Single)

    Performs an implicit conversion from StreamingQuality to System.Single.

    public static implicit operator float (StreamingQuality value)
    Parameters
    Type Name Description
    StreamingQuality value

    The value.

    Returns
    Type Description
    System.Single

    The result of the conversion.


    Implicit(Single to StreamingQuality)

    Performs an implicit conversion from System.Single to StreamingQuality.

    public static implicit operator StreamingQuality(float value)
    Parameters
    Type Name Description
    System.Single value

    The value.

    Returns
    Type Description
    StreamingQuality

    The result of the conversion.


    Inherited Members

    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()

    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