Moved shared operators to template files
このコミットが含まれているのは:
1 親
e49d42abb1
コミット
c0bc242c7a
26ファイル変更
+510
-390
検索条件に一致するファイルはありません
@@ -103,39 +103,5 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy">The input <see cref="Int2"/> value to cast.</param>
|
||||
public static implicit operator Double2(Int2 xy) => throw new InvalidExecutionContextException($"{nameof(Int2)}.({nameof(Double2)})");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Int2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Int2"/> value to negate.</param>
|
||||
public static Int2 operator -(Int2 xy) => throw new InvalidExecutionContextException($"{nameof(Int2)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Int2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to sum.</param>
|
||||
public static Int2 operator +(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Int2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to divide.</param>
|
||||
public static Int2 operator /(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Int2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to multiply.</param>
|
||||
public static Int2 operator *(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Int2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to subtract.</param>
|
||||
public static Int2 operator -(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}.-");
|
||||
}
|
||||
}
|
||||
@@ -72,5 +72,39 @@ namespace ComputeSharp
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(GG)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Int2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Int2"/> value to negate.</param>
|
||||
public static Int2 operator -(Int2 xy) => throw new InvalidExecutionContextException($"{nameof(Int2)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Int2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to sum.</param>
|
||||
public static Int2 operator +(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Int2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to divide.</param>
|
||||
public static Int2 operator /(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Int2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to multiply.</param>
|
||||
public static Int2 operator *(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Int2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to subtract.</param>
|
||||
public static Int2 operator -(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}.-");
|
||||
}
|
||||
}
|
||||
@@ -124,39 +124,5 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xyz">The input <see cref="Int3"/> value to cast.</param>
|
||||
public static implicit operator Double3(Int3 xyz) => throw new InvalidExecutionContextException($"{nameof(Int3)}.({nameof(Double3)})");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Int3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Int3"/> value to negate.</param>
|
||||
public static Int3 operator -(Int3 xyz) => throw new InvalidExecutionContextException($"{nameof(Int3)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Int3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to sum.</param>
|
||||
public static Int3 operator +(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{nameof(Int3)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Int3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to divide.</param>
|
||||
public static Int3 operator /(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{nameof(Int3)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Int3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to multiply.</param>
|
||||
public static Int3 operator *(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{nameof(Int3)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Int3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to subtract.</param>
|
||||
public static Int3 operator -(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{nameof(Int3)}.-");
|
||||
}
|
||||
}
|
||||
@@ -516,5 +516,39 @@ namespace ComputeSharp
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBB)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Int3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Int3"/> value to negate.</param>
|
||||
public static Int3 operator -(Int3 xyz) => throw new InvalidExecutionContextException($"{nameof(Int3)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Int3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to sum.</param>
|
||||
public static Int3 operator +(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{nameof(Int3)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Int3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to divide.</param>
|
||||
public static Int3 operator /(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{nameof(Int3)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Int3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to multiply.</param>
|
||||
public static Int3 operator *(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{nameof(Int3)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Int3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to subtract.</param>
|
||||
public static Int3 operator -(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{nameof(Int3)}.-");
|
||||
}
|
||||
}
|
||||
@@ -145,39 +145,5 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The input <see cref="Int4"/> value to cast.</param>
|
||||
public static implicit operator Double4(Int4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Int4)}.({nameof(Double4)})");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Int4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="Int4"/> value to negate.</param>
|
||||
public static Int4 operator -(Int4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Int4)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Int4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to sum.</param>
|
||||
public static Int4 operator +(Int4 left, Int4 right) => throw new InvalidExecutionContextException($"{nameof(Int4)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Int4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to divide.</param>
|
||||
public static Int4 operator /(Int4 left, Int4 right) => throw new InvalidExecutionContextException($"{nameof(Int4)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Int4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to multiply.</param>
|
||||
public static Int4 operator *(Int4 left, Int4 right) => throw new InvalidExecutionContextException($"{nameof(Int4)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Int4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to subtract.</param>
|
||||
public static Int4 operator -(Int4 left, Int4 right) => throw new InvalidExecutionContextException($"{nameof(Int4)}.-");
|
||||
}
|
||||
}
|
||||
@@ -4660,5 +4660,39 @@ namespace ComputeSharp
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Int4)}.{nameof(AAAA)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Int4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="Int4"/> value to negate.</param>
|
||||
public static Int4 operator -(Int4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Int4)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Int4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to sum.</param>
|
||||
public static Int4 operator +(Int4 left, Int4 right) => throw new InvalidExecutionContextException($"{nameof(Int4)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Int4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to divide.</param>
|
||||
public static Int4 operator /(Int4 left, Int4 right) => throw new InvalidExecutionContextException($"{nameof(Int4)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Int4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to multiply.</param>
|
||||
public static Int4 operator *(Int4 left, Int4 right) => throw new InvalidExecutionContextException($"{nameof(Int4)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Int4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int4"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Int4"/> value to subtract.</param>
|
||||
public static Int4 operator -(Int4 left, Int4 right) => throw new InvalidExecutionContextException($"{nameof(Int4)}.-");
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする