Generate unsigned right shift operators

このコミットが含まれているのは:
Sergio Pedri committed 2024-06-23 18:21:57 -07:00
1 親 183db9c4df
コミット 5ded1ceb59
10ファイル変更
+1440

検索条件に一致するファイルはありません

+36
ファイルの表示
@@ -2071,6 +2071,42 @@ public unsafe partial struct Int3
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Int3 operator >>(Int3 xyz, UInt3 amount) => default;
/// <summary>
/// Shifts right a <see cref="Int3"/> value without considering sign.
/// </summary>
/// <param name="xyz">The <see cref="Int3"/> value to shift right.</param>
/// <param name="amount">The amount to shift each element right by.</param>
/// <returns>The result of shifting <paramref name="xyz"/> right by <paramref name="amount"/>.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Int3 operator >>>(Int3 xyz, int amount) => default;
/// <summary>
/// Shifts right a <see cref="Int3"/> value without considering sign.
/// </summary>
/// <param name="xyz">The <see cref="Int3"/> value to shift right.</param>
/// <param name="amount">The amount to shift each element right by.</param>
/// <returns>The result of shifting <paramref name="xyz"/> right by <paramref name="amount"/>.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Int3 operator >>>(Int3 xyz, uint amount) => default;
/// <summary>
/// Shifts right a <see cref="Int3"/> value without considering sign.
/// </summary>
/// <param name="xyz">The <see cref="Int3"/> value to shift right.</param>
/// <param name="amount">The amount to shift each element right by.</param>
/// <returns>The result of shifting <paramref name="xyz"/> right by <paramref name="amount"/>.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Int3 operator >>>(Int3 xyz, Int3 amount) => default;
/// <summary>
/// Shifts right a <see cref="Int3"/> value without considering sign.
/// </summary>
/// <param name="xyz">The <see cref="Int3"/> value to shift right.</param>
/// <param name="amount">The amount to shift each element right by.</param>
/// <returns>The result of shifting <paramref name="xyz"/> right by <paramref name="amount"/>.</returns>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public static Int3 operator >>>(Int3 xyz, UInt3 amount) => default;
/// <summary>
/// Shifts left a <see cref="Int3"/> value.
/// </summary>