Move scalar promotion implicit operators to T4
このコミットが含まれているのは:
1 親
0e2f83d336
コミット
0c2b2bca35
33ファイル変更
+98
-123
検索条件に一致するファイルはありません
@@ -7,12 +7,6 @@ namespace ComputeSharp;
|
||||
/// </summary>
|
||||
public partial struct UInt2
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="UInt2"/> value with the same value for all its components.
|
||||
/// </summary>
|
||||
/// <param name="x">The value to use for the components of the new <see cref="UInt2"/> instance.</param>
|
||||
public static implicit operator UInt2(uint x) => new(x, x);
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="UInt2"/> value to a <see cref="Int2"/> one.
|
||||
/// </summary>
|
||||
|
||||
@@ -482,6 +482,12 @@ public unsafe partial struct UInt2
|
||||
return $"<{this.x}{separator} {this.y}>";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="UInt2"/> value with the same value for all its components.
|
||||
/// </summary>
|
||||
/// <param name="x">The value to use for the components of the new <see cref="UInt2"/> instance.</param>
|
||||
public static implicit operator UInt2(uint x) => new(x, x);
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="UInt2"/> values.
|
||||
/// </summary>
|
||||
|
||||
@@ -7,12 +7,6 @@ namespace ComputeSharp;
|
||||
/// </summary>
|
||||
public partial struct UInt3
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="UInt3"/> value with the same value for all its components.
|
||||
/// </summary>
|
||||
/// <param name="x">The value to use for the components of the new <see cref="UInt3"/> instance.</param>
|
||||
public static implicit operator UInt3(uint x) => new(x, x, x);
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="UInt3"/> value to a <see cref="Int3"/> one.
|
||||
/// </summary>
|
||||
|
||||
@@ -1822,6 +1822,12 @@ public unsafe partial struct UInt3
|
||||
return $"<{this.x}{separator} {this.y}{separator} {this.z}>";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="UInt3"/> value with the same value for all its components.
|
||||
/// </summary>
|
||||
/// <param name="x">The value to use for the components of the new <see cref="UInt3"/> instance.</param>
|
||||
public static implicit operator UInt3(uint x) => new(x, x, x);
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="UInt3"/> values.
|
||||
/// </summary>
|
||||
|
||||
@@ -7,12 +7,6 @@ namespace ComputeSharp;
|
||||
/// </summary>
|
||||
public partial struct UInt4
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="UInt4"/> value with the same value for all its components.
|
||||
/// </summary>
|
||||
/// <param name="x">The value to use for the components of the new <see cref="UInt4"/> instance.</param>
|
||||
public static implicit operator UInt4(uint x) => new(x, x, x, x);
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="UInt4"/> value to a <see cref="Int4"/> one.
|
||||
/// </summary>
|
||||
|
||||
@@ -5159,6 +5159,12 @@ public unsafe partial struct UInt4
|
||||
return $"<{this.x}{separator} {this.y}{separator} {this.z}{separator} {this.w}>";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="UInt4"/> value with the same value for all its components.
|
||||
/// </summary>
|
||||
/// <param name="x">The value to use for the components of the new <see cref="UInt4"/> instance.</param>
|
||||
public static implicit operator UInt4(uint x) => new(x, x, x, x);
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="UInt4"/> values.
|
||||
/// </summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする