Moved shared operators to template files
このコミットが含まれているのは:
1 親
e49d42abb1
コミット
c0bc242c7a
26ファイル変更
+510
-390
検索条件に一致するファイルはありません
@@ -90,11 +90,81 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Update="Primitives\Bool\Bool2.g.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Bool2.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Primitives\Bool\Bool3.g.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Bool3.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Primitives\Bool\Bool4.g.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Bool4.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Primitives\Double\Double2.g.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Double2.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Primitives\Double\Double3.g.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Double3.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Primitives\Double\Double4.g.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Double4.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Primitives\Float\Float2.g.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Float2.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Primitives\Float\Float3.g.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Float3.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Primitives\Float\Float4.g.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Float4.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Primitives\Int\Int2.g.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Int2.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Primitives\Int\Int3.g.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Int3.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Primitives\Int\Int4.g.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Int4.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Primitives\UInt\UInt2.g.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>UInt2.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Primitives\UInt\UInt3.g.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>UInt3.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Primitives\UInt\UInt4.g.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>UInt4.tt</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -103,39 +103,5 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy">The input <see cref="Double2"/> value to cast.</param>
|
||||
public static explicit operator Float2(Double2 xy) => throw new InvalidExecutionContextException($"{nameof(Double2)}.({nameof(Float2)})");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Double2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Double2"/> value to negate.</param>
|
||||
public static Double2 operator -(Double2 xy) => throw new InvalidExecutionContextException($"{nameof(Double2)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Double2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to sum.</param>
|
||||
public static Double2 operator +(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Double2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to divide.</param>
|
||||
public static Double2 operator /(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Double2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to multiply.</param>
|
||||
public static Double2 operator *(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Double2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to subtract.</param>
|
||||
public static Double2 operator -(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}.-");
|
||||
}
|
||||
}
|
||||
@@ -72,5 +72,39 @@ namespace ComputeSharp
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(GG)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Double2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Double2"/> value to negate.</param>
|
||||
public static Double2 operator -(Double2 xy) => throw new InvalidExecutionContextException($"{nameof(Double2)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Double2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to sum.</param>
|
||||
public static Double2 operator +(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Double2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to divide.</param>
|
||||
public static Double2 operator /(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Double2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to multiply.</param>
|
||||
public static Double2 operator *(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Double2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to subtract.</param>
|
||||
public static Double2 operator -(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}.-");
|
||||
}
|
||||
}
|
||||
@@ -124,39 +124,5 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xyz">The input <see cref="Double3"/> value to cast.</param>
|
||||
public static explicit operator Float3(Double3 xyz) => throw new InvalidExecutionContextException($"{nameof(Double3)}.({nameof(Float3)})");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Double3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Double3"/> value to negate.</param>
|
||||
public static Double3 operator -(Double3 xyz) => throw new InvalidExecutionContextException($"{nameof(Double3)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Double3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to sum.</param>
|
||||
public static Double3 operator +(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Double3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to divide.</param>
|
||||
public static Double3 operator /(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Double3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to multiply.</param>
|
||||
public static Double3 operator *(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Double3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to subtract.</param>
|
||||
public static Double3 operator -(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}.-");
|
||||
}
|
||||
}
|
||||
@@ -516,5 +516,39 @@ namespace ComputeSharp
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBB)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Double3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Double3"/> value to negate.</param>
|
||||
public static Double3 operator -(Double3 xyz) => throw new InvalidExecutionContextException($"{nameof(Double3)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Double3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to sum.</param>
|
||||
public static Double3 operator +(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Double3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to divide.</param>
|
||||
public static Double3 operator /(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Double3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to multiply.</param>
|
||||
public static Double3 operator *(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Double3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to subtract.</param>
|
||||
public static Double3 operator -(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}.-");
|
||||
}
|
||||
}
|
||||
@@ -145,39 +145,5 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The input <see cref="Double4"/> value to cast.</param>
|
||||
public static explicit operator Float4(Double4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Double4)}.({nameof(Float4)})");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Double4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="Double4"/> value to negate.</param>
|
||||
public static Double4 operator -(Double4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Double4)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Double4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to sum.</param>
|
||||
public static Double4 operator +(Double4 left, Double4 right) => throw new InvalidExecutionContextException($"{nameof(Double4)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Double4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to divide.</param>
|
||||
public static Double4 operator /(Double4 left, Double4 right) => throw new InvalidExecutionContextException($"{nameof(Double4)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Double4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to multiply.</param>
|
||||
public static Double4 operator *(Double4 left, Double4 right) => throw new InvalidExecutionContextException($"{nameof(Double4)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Double4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to subtract.</param>
|
||||
public static Double4 operator -(Double4 left, Double4 right) => throw new InvalidExecutionContextException($"{nameof(Double4)}.-");
|
||||
}
|
||||
}
|
||||
@@ -4660,5 +4660,39 @@ namespace ComputeSharp
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Double4)}.{nameof(AAAA)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Double4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="Double4"/> value to negate.</param>
|
||||
public static Double4 operator -(Double4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Double4)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Double4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to sum.</param>
|
||||
public static Double4 operator +(Double4 left, Double4 right) => throw new InvalidExecutionContextException($"{nameof(Double4)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Double4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to divide.</param>
|
||||
public static Double4 operator /(Double4 left, Double4 right) => throw new InvalidExecutionContextException($"{nameof(Double4)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Double4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to multiply.</param>
|
||||
public static Double4 operator *(Double4 left, Double4 right) => throw new InvalidExecutionContextException($"{nameof(Double4)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Double4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double4"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Double4"/> value to subtract.</param>
|
||||
public static Double4 operator -(Double4 left, Double4 right) => throw new InvalidExecutionContextException($"{nameof(Double4)}.-");
|
||||
}
|
||||
}
|
||||
@@ -116,39 +116,5 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xy">The input <see cref="Float2"/> value to cast.</param>
|
||||
public static explicit operator UInt2(Float2 xy) => throw new InvalidExecutionContextException($"{nameof(Float2)}.({nameof(UInt2)})");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Float2"/> value to negate.</param>
|
||||
public static Float2 operator -(Float2 xy) => throw new InvalidExecutionContextException($"{nameof(Float2)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Float2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to sum.</param>
|
||||
public static Float2 operator +(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Float2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to divide.</param>
|
||||
public static Float2 operator /(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Float2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to multiply.</param>
|
||||
public static Float2 operator *(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Float2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to subtract.</param>
|
||||
public static Float2 operator -(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}.-");
|
||||
}
|
||||
}
|
||||
@@ -72,5 +72,39 @@ namespace ComputeSharp
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Float2)}.{nameof(GG)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Float2"/> value to negate.</param>
|
||||
public static Float2 operator -(Float2 xy) => throw new InvalidExecutionContextException($"{nameof(Float2)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Float2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to sum.</param>
|
||||
public static Float2 operator +(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Float2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to divide.</param>
|
||||
public static Float2 operator /(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Float2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to multiply.</param>
|
||||
public static Float2 operator *(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Float2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to subtract.</param>
|
||||
public static Float2 operator -(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}.-");
|
||||
}
|
||||
}
|
||||
@@ -137,39 +137,5 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xyz">The input <see cref="Float3"/> value to cast.</param>
|
||||
public static explicit operator UInt3(Float3 xyz) => throw new InvalidExecutionContextException($"{nameof(Float3)}.({nameof(UInt3)})");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Float3"/> value to negate.</param>
|
||||
public static Float3 operator -(Float3 xyz) => throw new InvalidExecutionContextException($"{nameof(Float3)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Float3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to sum.</param>
|
||||
public static Float3 operator +(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Float3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to divide.</param>
|
||||
public static Float3 operator /(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Float3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to multiply.</param>
|
||||
public static Float3 operator *(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Float3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to subtract.</param>
|
||||
public static Float3 operator -(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}.-");
|
||||
}
|
||||
}
|
||||
@@ -516,5 +516,39 @@ namespace ComputeSharp
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BBB)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Float3"/> value to negate.</param>
|
||||
public static Float3 operator -(Float3 xyz) => throw new InvalidExecutionContextException($"{nameof(Float3)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Float3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to sum.</param>
|
||||
public static Float3 operator +(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Float3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to divide.</param>
|
||||
public static Float3 operator /(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Float3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to multiply.</param>
|
||||
public static Float3 operator *(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Float3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to subtract.</param>
|
||||
public static Float3 operator -(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}.-");
|
||||
}
|
||||
}
|
||||
@@ -158,39 +158,5 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The input <see cref="Float4"/> value to cast.</param>
|
||||
public static explicit operator UInt4(Float4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Float4)}.({nameof(UInt4)})");
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="Float4"/> value to negate.</param>
|
||||
public static Float4 operator -(Float4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Float4)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Float4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to sum.</param>
|
||||
public static Float4 operator +(Float4 left, Float4 right) => throw new InvalidExecutionContextException($"{nameof(Float4)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Float4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to divide.</param>
|
||||
public static Float4 operator /(Float4 left, Float4 right) => throw new InvalidExecutionContextException($"{nameof(Float4)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Float4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to multiply.</param>
|
||||
public static Float4 operator *(Float4 left, Float4 right) => throw new InvalidExecutionContextException($"{nameof(Float4)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Float4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to subtract.</param>
|
||||
public static Float4 operator -(Float4 left, Float4 right) => throw new InvalidExecutionContextException($"{nameof(Float4)}.-");
|
||||
}
|
||||
}
|
||||
@@ -4660,5 +4660,39 @@ namespace ComputeSharp
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(Float4)}.{nameof(AAAA)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float4"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The <see cref="Float4"/> value to negate.</param>
|
||||
public static Float4 operator -(Float4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Float4)}.-");
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Float4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to sum.</param>
|
||||
public static Float4 operator +(Float4 left, Float4 right) => throw new InvalidExecutionContextException($"{nameof(Float4)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Float4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to divide.</param>
|
||||
public static Float4 operator /(Float4 left, Float4 right) => throw new InvalidExecutionContextException($"{nameof(Float4)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Float4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to multiply.</param>
|
||||
public static Float4 operator *(Float4 left, Float4 right) => throw new InvalidExecutionContextException($"{nameof(Float4)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Float4"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float4"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Float4"/> value to subtract.</param>
|
||||
public static Float4 operator -(Float4 left, Float4 right) => throw new InvalidExecutionContextException($"{nameof(Float4)}.-");
|
||||
}
|
||||
}
|
||||
@@ -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)}.-");
|
||||
}
|
||||
}
|
||||
@@ -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)}.-");
|
||||
}
|
||||
}
|
||||
@@ -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)}.-");
|
||||
}
|
||||
}
|
||||
@@ -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)}.-");
|
||||
}
|
||||
}
|
||||
@@ -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)}.-");
|
||||
}
|
||||
}
|
||||
@@ -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)}.-");
|
||||
}
|
||||
}
|
||||
@@ -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)}.-");
|
||||
}
|
||||
}
|
||||
@@ -79,6 +79,56 @@ namespace ComputeSharp
|
||||
|
||||
PopIndent();
|
||||
PopIndent();
|
||||
|
||||
// Generate the negation operator
|
||||
if (elementTypeName != "Bool" && elementTypeName != "UInt")
|
||||
{
|
||||
WriteLine("");
|
||||
|
||||
string argumentName = "xyzw".Substring(0, i);
|
||||
#>
|
||||
/// <summary>
|
||||
/// Negates a <see cref="<#=typeName#>"/> value.
|
||||
/// </summary>
|
||||
/// <param name="<#=argumentName#>">The <see cref="<#=typeName#>"/> value to negate.</param>
|
||||
public static <#=typeName#> operator -(<#=typeName#> <#=argumentName#>) => throw new InvalidExecutionContextException($"{nameof(<#=typeName#>)}.-");
|
||||
<#
|
||||
}
|
||||
|
||||
// Generate the numerical operators
|
||||
if (elementTypeName != "Bool")
|
||||
{
|
||||
WriteLine("");
|
||||
#>
|
||||
/// <summary>
|
||||
/// Sums two <see cref="<#=typeName#>"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to sum.</param>
|
||||
public static <#=typeName#> operator +(<#=typeName#> left, <#=typeName#> right) => throw new InvalidExecutionContextException($"{nameof(<#=typeName#>)}.+");
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="<#=typeName#>"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to divide.</param>
|
||||
public static <#=typeName#> operator /(<#=typeName#> left, <#=typeName#> right) => throw new InvalidExecutionContextException($"{nameof(<#=typeName#>)}./");
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="<#=typeName#>"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to multiply.</param>
|
||||
public static <#=typeName#> operator *(<#=typeName#> left, <#=typeName#> right) => throw new InvalidExecutionContextException($"{nameof(<#=typeName#>)}.*");
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="<#=typeName#>"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to subtract.</param>
|
||||
public static <#=typeName#> operator -(<#=typeName#> left, <#=typeName#> right) => throw new InvalidExecutionContextException($"{nameof(<#=typeName#>)}.-");
|
||||
<#
|
||||
}
|
||||
#>
|
||||
}
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする