docs.unity3d.com
    Show / Hide Table of Contents

    Method IsConstantExpression

    IsConstantExpression<T>(T)

    Performs a compile-time check on whether the provided argument is known to be constant by Burst.

    Declaration
    public static bool IsConstantExpression<T>(T t)
        where T : struct
    Parameters
    Type Name Description
    T t

    The value to check whether it is constant.

    Returns
    Type Description
    Boolean

    True if Burst knows at compile-time that it is a constant, false otherwise.

    Type Parameters
    Name Description
    T

    IsConstantExpression(Void*)

    Performs a compile-time check on whether the provided argument is known to be constant by Burst.

    Declaration
    public static bool IsConstantExpression(void *t)
    Parameters
    Type Name Description
    Void* t

    The value to check whether it is constant.

    Returns
    Type Description
    Boolean

    True if Burst knows at compile-time that it is a constant, false otherwise.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023