You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1.0 KiB
23 lines
1.0 KiB
namespace Unity.Burst.CompilerServices |
|
{ |
|
/// <summary> |
|
/// Compile-time queries intrinsics. |
|
/// </summary> |
|
public static class Constant |
|
{ |
|
/// <summary> |
|
/// Performs a compile-time check on whether the provided argument is known to be constant by Burst. |
|
/// </summary> |
|
/// <typeparam name="T"></typeparam> |
|
/// <param name="t">The value to check whether it is constant.</param> |
|
/// <returns>True if Burst knows at compile-time that it is a constant, false otherwise.</returns> |
|
public static bool IsConstantExpression<T>(T t) where T : unmanaged => false; |
|
|
|
/// <summary> |
|
/// Performs a compile-time check on whether the provided argument is known to be constant by Burst. |
|
/// </summary> |
|
/// <param name="t">The value to check whether it is constant.</param> |
|
/// <returns>True if Burst knows at compile-time that it is a constant, false otherwise.</returns> |
|
public static unsafe bool IsConstantExpression(void* t) => false; |
|
} |
|
}
|
|
|