Add mul() operators to Float/Int intrinsic types
このコミットが含まれているのは:
1 親
f0ee13e243
コミット
9e16f9a7e2
7ファイル変更
+571
検索条件に一致するファイルはありません
@@ -498,6 +498,97 @@ public unsafe partial struct Int2
|
||||
/// <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 Int2 operator *(Int2 left, Int2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first int input value.</param>
|
||||
/// <param name="y">The second Int2 input value.</param>
|
||||
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>. The result has the dimension <paramref name="x"/>-rows by <paramref name="y"/>-columns.</returns>
|
||||
/// <remarks>
|
||||
/// <para>This operator is equivalent to using <see cref="Hlsl.Mul(int, Int2)"/> with the same input arguments.</para>
|
||||
/// <para>For more info, see <see href="https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-mul"/>.</para>
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
public static Int2 operator *(int x, Int2 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int2 input value.</param>
|
||||
/// <param name="y">The second int input value.</param>
|
||||
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>. The result has the dimension <paramref name="x"/>-rows by <paramref name="y"/>-columns.</returns>
|
||||
/// <remarks>
|
||||
/// <para>This operator is equivalent to using <see cref="Hlsl.Mul(Int2, int)"/> with the same input arguments.</para>
|
||||
/// <para>For more info, see <see href="https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-mul"/>.</para>
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
public static Int2 operator *(Int2 x, int y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int2 input value.</param>
|
||||
/// <param name="y">The second Int2x1 input value.</param>
|
||||
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>. The result has the dimension <paramref name="x"/>-rows by <paramref name="y"/>-columns.</returns>
|
||||
/// <remarks>
|
||||
/// <para>This operator is equivalent to using <see cref="Hlsl.Mul(Int2, Int2x1)"/> with the same input arguments.</para>
|
||||
/// <para>For more info, see <see href="https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-mul"/>.</para>
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
public static int operator *(Int2 x, Int2x1 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int2 input value.</param>
|
||||
/// <param name="y">The second Int2x2 input value.</param>
|
||||
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>. The result has the dimension <paramref name="x"/>-rows by <paramref name="y"/>-columns.</returns>
|
||||
/// <remarks>
|
||||
/// <para>This operator is equivalent to using <see cref="Hlsl.Mul(Int2, Int2x2)"/> with the same input arguments.</para>
|
||||
/// <para>For more info, see <see href="https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-mul"/>.</para>
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
public static Int2 operator *(Int2 x, Int2x2 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int2 input value.</param>
|
||||
/// <param name="y">The second Int2x3 input value.</param>
|
||||
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>. The result has the dimension <paramref name="x"/>-rows by <paramref name="y"/>-columns.</returns>
|
||||
/// <remarks>
|
||||
/// <para>This operator is equivalent to using <see cref="Hlsl.Mul(Int2, Int2x3)"/> with the same input arguments.</para>
|
||||
/// <para>For more info, see <see href="https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-mul"/>.</para>
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
public static Int3 operator *(Int2 x, Int2x3 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int2 input value.</param>
|
||||
/// <param name="y">The second Int2x4 input value.</param>
|
||||
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>. The result has the dimension <paramref name="x"/>-rows by <paramref name="y"/>-columns.</returns>
|
||||
/// <remarks>
|
||||
/// <para>This operator is equivalent to using <see cref="Hlsl.Mul(Int2, Int2x4)"/> with the same input arguments.</para>
|
||||
/// <para>For more info, see <see href="https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-mul"/>.</para>
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
public static Int4 operator *(Int2 x, Int2x4 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int2x2 input value.</param>
|
||||
/// <param name="y">The second Int2 input value.</param>
|
||||
/// <returns>The result of <paramref name="x"/> times <paramref name="y"/>. The result has the dimension <paramref name="x"/>-rows by <paramref name="y"/>-columns.</returns>
|
||||
/// <remarks>
|
||||
/// <para>This operator is equivalent to using <see cref="Hlsl.Mul(Int2x2, Int2)"/> with the same input arguments.</para>
|
||||
/// <para>For more info, see <see href="https://docs.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-mul"/>.</para>
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
public static Int2 operator *(Int2x2 x, Int2 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Int2"/> values.
|
||||
/// </summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする