No Description
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.

Constant.cs 1.0KB

1234567891011121314151617181920212223
  1. namespace Unity.Burst.CompilerServices
  2. {
  3. /// <summary>
  4. /// Compile-time queries intrinsics.
  5. /// </summary>
  6. public static class Constant
  7. {
  8. /// <summary>
  9. /// Performs a compile-time check on whether the provided argument is known to be constant by Burst.
  10. /// </summary>
  11. /// <typeparam name="T"></typeparam>
  12. /// <param name="t">The value to check whether it is constant.</param>
  13. /// <returns>True if Burst knows at compile-time that it is a constant, false otherwise.</returns>
  14. public static bool IsConstantExpression<T>(T t) where T : unmanaged => false;
  15. /// <summary>
  16. /// Performs a compile-time check on whether the provided argument is known to be constant by Burst.
  17. /// </summary>
  18. /// <param name="t">The value to check whether it is constant.</param>
  19. /// <returns>True if Burst knows at compile-time that it is a constant, false otherwise.</returns>
  20. public static unsafe bool IsConstantExpression(void* t) => false;
  21. }
  22. }