Add mul() operators to Float/Int intrinsic types
このコミットが含まれているのは:
1 親
f0ee13e243
コミット
9e16f9a7e2
7ファイル変更
+571
検索条件に一致するファイルはありません
@@ -498,6 +498,97 @@ public unsafe partial struct Float2
|
||||
/// <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 Float2 operator *(Float2 left, Float2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first float input value.</param>
|
||||
/// <param name="y">The second Float2 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(float, Float2)"/> 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 Float2 operator *(float x, Float2 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float2 input value.</param>
|
||||
/// <param name="y">The second float 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(Float2, float)"/> 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 Float2 operator *(Float2 x, float y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float2 input value.</param>
|
||||
/// <param name="y">The second Float2x1 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(Float2, Float2x1)"/> 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 float operator *(Float2 x, Float2x1 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float2 input value.</param>
|
||||
/// <param name="y">The second Float2x2 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(Float2, Float2x2)"/> 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 Float2 operator *(Float2 x, Float2x2 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float2 input value.</param>
|
||||
/// <param name="y">The second Float2x3 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(Float2, Float2x3)"/> 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 Float3 operator *(Float2 x, Float2x3 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float2 input value.</param>
|
||||
/// <param name="y">The second Float2x4 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(Float2, Float2x4)"/> 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 Float4 operator *(Float2 x, Float2x4 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float2x2 input value.</param>
|
||||
/// <param name="y">The second Float2 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(Float2x2, Float2)"/> 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 Float2 operator *(Float2x2 x, Float2 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Float2"/> values.
|
||||
/// </summary>
|
||||
|
||||
@@ -1584,6 +1584,97 @@ public unsafe partial struct Float3
|
||||
/// <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 Float3 operator *(Float3 left, Float3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first float input value.</param>
|
||||
/// <param name="y">The second Float3 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(float, Float3)"/> 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 Float3 operator *(float x, Float3 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float3 input value.</param>
|
||||
/// <param name="y">The second float 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(Float3, float)"/> 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 Float3 operator *(Float3 x, float y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float3 input value.</param>
|
||||
/// <param name="y">The second Float3x1 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(Float3, Float3x1)"/> 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 float operator *(Float3 x, Float3x1 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float3 input value.</param>
|
||||
/// <param name="y">The second Float3x2 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(Float3, Float3x2)"/> 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 Float2 operator *(Float3 x, Float3x2 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float3 input value.</param>
|
||||
/// <param name="y">The second Float3x3 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(Float3, Float3x3)"/> 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 Float3 operator *(Float3 x, Float3x3 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float3 input value.</param>
|
||||
/// <param name="y">The second Float3x4 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(Float3, Float3x4)"/> 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 Float4 operator *(Float3 x, Float3x4 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float3x3 input value.</param>
|
||||
/// <param name="y">The second Float3 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(Float3x3, Float3)"/> 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 Float3 operator *(Float3x3 x, Float3 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Float3"/> values.
|
||||
/// </summary>
|
||||
|
||||
@@ -4230,6 +4230,97 @@ public unsafe partial struct Float4
|
||||
/// <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 Float4 operator *(Float4 left, Float4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first float input value.</param>
|
||||
/// <param name="y">The second Float4 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(float, Float4)"/> 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 Float4 operator *(float x, Float4 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float4 input value.</param>
|
||||
/// <param name="y">The second float 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(Float4, float)"/> 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 Float4 operator *(Float4 x, float y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float4 input value.</param>
|
||||
/// <param name="y">The second Float4x1 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(Float4, Float4x1)"/> 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 float operator *(Float4 x, Float4x1 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float4 input value.</param>
|
||||
/// <param name="y">The second Float4x2 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(Float4, Float4x2)"/> 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 Float2 operator *(Float4 x, Float4x2 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float4 input value.</param>
|
||||
/// <param name="y">The second Float4x3 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(Float4, Float4x3)"/> 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 Float3 operator *(Float4 x, Float4x3 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float4 input value.</param>
|
||||
/// <param name="y">The second Float4x4 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(Float4, Float4x4)"/> 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 Float4 operator *(Float4 x, Float4x4 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Float4x4 input value.</param>
|
||||
/// <param name="y">The second Float4 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(Float4x4, Float4)"/> 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 Float4 operator *(Float4x4 x, Float4 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Float4"/> values.
|
||||
/// </summary>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1584,6 +1584,97 @@ 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 left, Int3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first int input value.</param>
|
||||
/// <param name="y">The second Int3 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, Int3)"/> 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 *(int x, Int3 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int3 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(Int3, 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 Int3 operator *(Int3 x, int y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int3 input value.</param>
|
||||
/// <param name="y">The second Int3x1 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(Int3, Int3x1)"/> 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 *(Int3 x, Int3x1 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int3 input value.</param>
|
||||
/// <param name="y">The second Int3x2 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(Int3, Int3x2)"/> 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 *(Int3 x, Int3x2 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int3 input value.</param>
|
||||
/// <param name="y">The second Int3x3 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(Int3, Int3x3)"/> 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 *(Int3 x, Int3x3 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int3 input value.</param>
|
||||
/// <param name="y">The second Int3x4 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(Int3, Int3x4)"/> 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 *(Int3 x, Int3x4 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int3x3 input value.</param>
|
||||
/// <param name="y">The second Int3 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(Int3x3, Int3)"/> 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 *(Int3x3 x, Int3 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Int3"/> values.
|
||||
/// </summary>
|
||||
|
||||
@@ -4230,6 +4230,97 @@ public unsafe partial struct Int4
|
||||
/// <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 Int4 operator *(Int4 left, Int4 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first int input value.</param>
|
||||
/// <param name="y">The second Int4 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, Int4)"/> 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 *(int x, Int4 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int4 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(Int4, 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 Int4 operator *(Int4 x, int y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int4 input value.</param>
|
||||
/// <param name="y">The second Int4x1 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(Int4, Int4x1)"/> 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 *(Int4 x, Int4x1 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int4 input value.</param>
|
||||
/// <param name="y">The second Int4x2 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(Int4, Int4x2)"/> 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 *(Int4 x, Int4x2 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int4 input value.</param>
|
||||
/// <param name="y">The second Int4x3 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(Int4, Int4x3)"/> 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 *(Int4 x, Int4x3 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int4 input value.</param>
|
||||
/// <param name="y">The second Int4x4 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(Int4, Int4x4)"/> 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 *(Int4 x, Int4x4 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first Int4x4 input value.</param>
|
||||
/// <param name="y">The second Int4 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(Int4x4, Int4)"/> 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 *(Int4x4 x, Int4 y) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Int4"/> values.
|
||||
/// </summary>
|
||||
|
||||
@@ -354,7 +354,32 @@ public unsafe partial struct <#=typeName#>
|
||||
/// <returns>The result of multiplying <paramref name="left"/> and <paramref name="right"/>.</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 <#=typeName#> operator *(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
<#
|
||||
// Process all operators for the mul() intrinsic
|
||||
foreach (var mulOverload in MulOverloads.Where(overload =>
|
||||
!(overload.Params[0] == typeName && overload.Params[1] == typeName) &&
|
||||
(overload.Return == typeName && overload.Params.Contains(typeName) ||
|
||||
!overload.Params.Contains(overload.Return) && overload.Params[0] == typeName)))
|
||||
{
|
||||
WriteLine("");
|
||||
#>
|
||||
/// <summary>
|
||||
/// Multiplies two values using matrix math.
|
||||
/// </summary>
|
||||
/// <param name="x">The first <#=mulOverload.Params[0]#> input value.</param>
|
||||
/// <param name="y">The second <#=mulOverload.Params[1]#> 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(<#=mulOverload.Params[0]#>, <#=mulOverload.Params[1]#>)"/> 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 <#=mulOverload.Return#> operator *(<#=mulOverload.Params[0]#> x, <#=mulOverload.Params[1]#> y) => default;
|
||||
<#
|
||||
}
|
||||
|
||||
WriteLine("");
|
||||
#>
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="<#=typeName#>"/> values.
|
||||
/// </summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする