Firstborn/Library/PackageCache/com.unity.burst@1.8.4/Runtime/CompilerServices/Hint.cs
Schaken-Mods 9092858a58 updated to the latest editor
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
2023-05-07 17:43:11 -05:00

29 lines
1.1 KiB
C#

namespace Unity.Burst.CompilerServices
{
/// <summary>
/// Compile-time hint intrinsics.
/// </summary>
public static class Hint
{
/// <summary>
/// Hints to the compiler that the condition is likely to be true.
/// </summary>
/// <param name="condition">The boolean condition that is likely to be true.</param>
/// <returns>The condition.</returns>
public static bool Likely(bool condition) => condition;
/// <summary>
/// Hints to the compiler that the condition is unlikely to be true.
/// </summary>
/// <param name="condition">The boolean condition that is unlikely to be true.</param>
/// <returns>The condition.</returns>
public static bool Unlikely(bool condition) => condition;
/// <summary>
/// Hints to the compiler that the condition can be assumed to be true.
/// </summary>
/// <param name="condition">The boolean condition that can be assumed to be true.</param>
public static void Assume(bool condition) { }
}
}