study/first_study/Library/PackageCache/com.unity.burst@973857688024/Runtime/NoAliasAttribute.cs
jh04010421 739d49f1a0 Unity | 2026.01.20
수업 실습 파일
2026-01-20 11:01:57 +09:00

24 lines
835 B
C#

using System;
namespace Unity.Burst
{
/// <summary>
/// Can be used to specify that a parameter to a function, a field of a struct, a struct, or a function return will not alias. (Advanced - see User Manual for a description of Aliasing).
/// </summary>
[AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Field | AttributeTargets.Struct | AttributeTargets.ReturnValue)]
public class NoAliasAttribute : Attribute
{
}
#if UNITY_BURST_EXPERIMENTAL_ALIAS_ATTRIBUTE
/// <summary>
/// The opposite of [NoAlias], used for job structs whose fields do not conform to the default alias rules.
/// This only works for structs and fields.
/// </summary>
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Struct)]
public class AliasAttribute : Attribute
{
}
#endif
}