Moved shared operators to template files

このコミットが含まれているのは:
Sergio Pedri committed 2021-02-24 17:40:17 +01:00
1 親 e49d42abb1
コミット c0bc242c7a
26ファイル変更
+510 -390

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

-28
ファイルの表示
@@ -103,33 +103,5 @@ namespace ComputeSharp
/// </summary>
/// <param name="xy">The input <see cref="UInt2"/> value to cast.</param>
public static implicit operator Double2(UInt2 xy) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.({nameof(Double2)})");
/// <summary>
/// Sums two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to sum.</param>
/// <param name="right">The second <see cref="UInt2"/> value to sum.</param>
public static UInt2 operator +(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.+");
/// <summary>
/// Divides two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to divide.</param>
/// <param name="right">The second <see cref="UInt2"/> value to divide.</param>
public static UInt2 operator /(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}./");
/// <summary>
/// Multiplies two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to multiply.</param>
/// <param name="right">The second <see cref="UInt2"/> value to multiply.</param>
public static UInt2 operator *(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.*");
/// <summary>
/// Subtracts two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to subtract.</param>
/// <param name="right">The second <see cref="UInt2"/> value to subtract.</param>
public static UInt2 operator -(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.-");
}
}
+28
ファイルの表示
@@ -72,5 +72,33 @@ namespace ComputeSharp
{
get => throw new InvalidExecutionContextException($"{nameof(UInt2)}.{nameof(GG)}");
}
/// <summary>
/// Sums two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to sum.</param>
/// <param name="right">The second <see cref="UInt2"/> value to sum.</param>
public static UInt2 operator +(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.+");
/// <summary>
/// Divides two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to divide.</param>
/// <param name="right">The second <see cref="UInt2"/> value to divide.</param>
public static UInt2 operator /(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}./");
/// <summary>
/// Multiplies two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to multiply.</param>
/// <param name="right">The second <see cref="UInt2"/> value to multiply.</param>
public static UInt2 operator *(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.*");
/// <summary>
/// Subtracts two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to subtract.</param>
/// <param name="right">The second <see cref="UInt2"/> value to subtract.</param>
public static UInt2 operator -(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.-");
}
}
-28
ファイルの表示
@@ -124,33 +124,5 @@ namespace ComputeSharp
/// </summary>
/// <param name="xyz">The input <see cref="UInt3"/> value to cast.</param>
public static implicit operator Double3(UInt3 xyz) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.({nameof(Double3)})");
/// <summary>
/// Sums two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to sum.</param>
/// <param name="right">The second <see cref="UInt3"/> value to sum.</param>
public static UInt3 operator +(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.+");
/// <summary>
/// Divides two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to divide.</param>
/// <param name="right">The second <see cref="UInt3"/> value to divide.</param>
public static UInt3 operator /(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}./");
/// <summary>
/// Multiplies two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to multiply.</param>
/// <param name="right">The second <see cref="UInt3"/> value to multiply.</param>
public static UInt3 operator *(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.*");
/// <summary>
/// Subtracts two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to subtract.</param>
/// <param name="right">The second <see cref="UInt3"/> value to subtract.</param>
public static UInt3 operator -(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.-");
}
}
+28
ファイルの表示
@@ -516,5 +516,33 @@ namespace ComputeSharp
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BBB)}");
}
/// <summary>
/// Sums two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to sum.</param>
/// <param name="right">The second <see cref="UInt3"/> value to sum.</param>
public static UInt3 operator +(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.+");
/// <summary>
/// Divides two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to divide.</param>
/// <param name="right">The second <see cref="UInt3"/> value to divide.</param>
public static UInt3 operator /(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}./");
/// <summary>
/// Multiplies two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to multiply.</param>
/// <param name="right">The second <see cref="UInt3"/> value to multiply.</param>
public static UInt3 operator *(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.*");
/// <summary>
/// Subtracts two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to subtract.</param>
/// <param name="right">The second <see cref="UInt3"/> value to subtract.</param>
public static UInt3 operator -(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.-");
}
}
-28
ファイルの表示
@@ -145,33 +145,5 @@ namespace ComputeSharp
/// </summary>
/// <param name="xyzw">The input <see cref="UInt4"/> value to cast.</param>
public static implicit operator Double4(UInt4 xyzw) => throw new InvalidExecutionContextException($"{nameof(UInt4)}.({nameof(Double4)})");
/// <summary>
/// Sums two <see cref="UInt4"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt4"/> value to sum.</param>
/// <param name="right">The second <see cref="UInt4"/> value to sum.</param>
public static UInt4 operator +(UInt4 left, UInt4 right) => throw new InvalidExecutionContextException($"{nameof(UInt4)}.+");
/// <summary>
/// Divides two <see cref="UInt4"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt4"/> value to divide.</param>
/// <param name="right">The second <see cref="UInt4"/> value to divide.</param>
public static UInt4 operator /(UInt4 left, UInt4 right) => throw new InvalidExecutionContextException($"{nameof(UInt4)}./");
/// <summary>
/// Multiplies two <see cref="UInt4"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt4"/> value to multiply.</param>
/// <param name="right">The second <see cref="UInt4"/> value to multiply.</param>
public static UInt4 operator *(UInt4 left, UInt4 right) => throw new InvalidExecutionContextException($"{nameof(UInt4)}.*");
/// <summary>
/// Subtracts two <see cref="UInt4"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt4"/> value to subtract.</param>
/// <param name="right">The second <see cref="UInt4"/> value to subtract.</param>
public static UInt4 operator -(UInt4 left, UInt4 right) => throw new InvalidExecutionContextException($"{nameof(UInt4)}.-");
}
}
+28
ファイルの表示
@@ -4660,5 +4660,33 @@ namespace ComputeSharp
{
get => throw new InvalidExecutionContextException($"{nameof(UInt4)}.{nameof(AAAA)}");
}
/// <summary>
/// Sums two <see cref="UInt4"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt4"/> value to sum.</param>
/// <param name="right">The second <see cref="UInt4"/> value to sum.</param>
public static UInt4 operator +(UInt4 left, UInt4 right) => throw new InvalidExecutionContextException($"{nameof(UInt4)}.+");
/// <summary>
/// Divides two <see cref="UInt4"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt4"/> value to divide.</param>
/// <param name="right">The second <see cref="UInt4"/> value to divide.</param>
public static UInt4 operator /(UInt4 left, UInt4 right) => throw new InvalidExecutionContextException($"{nameof(UInt4)}./");
/// <summary>
/// Multiplies two <see cref="UInt4"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt4"/> value to multiply.</param>
/// <param name="right">The second <see cref="UInt4"/> value to multiply.</param>
public static UInt4 operator *(UInt4 left, UInt4 right) => throw new InvalidExecutionContextException($"{nameof(UInt4)}.*");
/// <summary>
/// Subtracts two <see cref="UInt4"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt4"/> value to subtract.</param>
/// <param name="right">The second <see cref="UInt4"/> value to subtract.</param>
public static UInt4 operator -(UInt4 left, UInt4 right) => throw new InvalidExecutionContextException($"{nameof(UInt4)}.-");
}
}