docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Aliasing

    Compile-time aliasing intrinsics.

    Inheritance
    object
    Aliasing
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Burst.CompilerServices
    Assembly: Unity.Burst.dll
    Syntax
    public static class Aliasing

    Methods

    Name Description
    ExpectAliased(void*, void*)

    Will cause a compiler error in Burst-compiled code if a and b do not alias.

    ExpectAliased<B>(void*, in B)

    Will cause a compiler error in Burst-compiled code if a and b do not alias.

    ExpectAliased<A>(in A, void*)

    Will cause a compiler error in Burst-compiled code if a and b do not alias.

    ExpectAliased<A, B>(in A, in B)

    Will cause a compiler error in Burst-compiled code if a and b do not alias.

    ExpectNotAliased(void*, void*)

    Will cause a compiler error in Burst-compiled code if a and b can alias.

    ExpectNotAliased<B>(void*, in B)

    Will cause a compiler error in Burst-compiled code if a and b can alias.

    ExpectNotAliased<A>(in A, void*)

    Will cause a compiler error in Burst-compiled code if a and b can alias.

    ExpectNotAliased<A, B>(in A, in B)

    Will cause a compiler error in Burst-compiled code if a and b can alias.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)