docs.unity.cn
    Show / Hide Table of Contents

    Enum FloatMode

    Represents the floating point optimization mode for compilation.

    Namespace: Unity.Burst
    Syntax
    public enum FloatMode

    Fields

    Name Description Value
    Default

    Use the default target floating point mode - Strict.


    0
    Strict

    No floating point optimizations are performed.


    1
    Deterministic

    Reserved for future.


    2
    Fast

    Allows algebraically equivalent optimizations (which can alter the results of calculations), it implies :

    optimizations can assume results and arguments contain no NaNs or +/- Infinity and treat sign of zero as insignificant.

    optimizations can use reciprocals - 1/x * y , instead of y/x.

    optimizations can use fused instructions, e.g. madd.


    3
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, June 12, 2023