Move TrueN and OneN properties to T4 templates

このコミットが含まれているのは:
Sergio Pedri committed 2022-08-24 23:56:18 +02:00
1 親 f5c4e6aacd
コミット 97447fbc68
31ファイル変更
+259 -225

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

-10
ファイルの表示
@@ -7,16 +7,6 @@ namespace ComputeSharp;
/// </summary>
public partial struct UInt2
{
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static UInt2 UnitX => new(1, 0);
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static UInt2 UnitY => new(0, 1);
/// <summary>
/// Creates a new <see cref="UInt2"/> instance with the specified parameters.
/// </summary>
+10
ファイルの表示
@@ -47,6 +47,16 @@ public unsafe partial struct UInt2
/// </summary>
public static UInt2 One => 1;
/// <summary>
/// Gets a <see cref="UInt2"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static UInt2 UnitX => new(1, 0);
/// <summary>
/// Gets a <see cref="UInt2"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static UInt2 UnitY => new(0, 1);
/// <summary>
/// Gets a reference to the <see cref="uint"/> value representing the <c>X</c> component.
/// </summary>
-15
ファイルの表示
@@ -7,21 +7,6 @@ namespace ComputeSharp;
/// </summary>
public partial struct UInt3
{
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static UInt3 UnitX => new(1, 0, 0);
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static UInt3 UnitY => new(0, 1, 0);
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/> component set to 1, and the others to 0.
/// </summary>
public static UInt3 UnitZ => new(0, 0, 1);
/// <summary>
/// Creates a new <see cref="UInt3"/> instance with the specified parameters.
/// </summary>
+15
ファイルの表示
@@ -50,6 +50,21 @@ public unsafe partial struct UInt3
/// </summary>
public static UInt3 One => 1;
/// <summary>
/// Gets a <see cref="UInt3"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static UInt3 UnitX => new(1, 0, 0);
/// <summary>
/// Gets a <see cref="UInt3"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static UInt3 UnitY => new(0, 1, 0);
/// <summary>
/// Gets a <see cref="UInt3"/> value with the <see cref="Z"/> component set to 1, and the others to 0.
/// </summary>
public static UInt3 UnitZ => new(0, 0, 1);
/// <summary>
/// Gets a reference to the <see cref="uint"/> value representing the <c>X</c> component.
/// </summary>
-20
ファイルの表示
@@ -7,26 +7,6 @@ namespace ComputeSharp;
/// </summary>
public partial struct UInt4
{
/// <summary>
/// Gets an <see cref="UInt4"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static UInt4 UnitX => new(1, 0, 0, 0);
/// <summary>
/// Gets an <see cref="UInt4"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static UInt4 UnitY => new(0, 1, 0, 0);
/// <summary>
/// Gets an <see cref="UInt4"/> value with the <see cref="Z"/> component set to 1, and the others to 0.
/// </summary>
public static UInt4 UnitZ => new(0, 0, 1, 0);
/// <summary>
/// Gets an <see cref="UInt4"/> value with the <see cref="W"/> component set to 1, and the others to 0.
/// </summary>
public static UInt4 UnitW => new(0, 0, 0, 1);
/// <summary>
/// Creates a new <see cref="UInt4"/> instance with the specified parameters.
/// </summary>
+20
ファイルの表示
@@ -53,6 +53,26 @@ public unsafe partial struct UInt4
/// </summary>
public static UInt4 One => 1;
/// <summary>
/// Gets a <see cref="UInt4"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static UInt4 UnitX => new(1, 0, 0, 0);
/// <summary>
/// Gets a <see cref="UInt4"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static UInt4 UnitY => new(0, 1, 0, 0);
/// <summary>
/// Gets a <see cref="UInt4"/> value with the <see cref="Z"/> component set to 1, and the others to 0.
/// </summary>
public static UInt4 UnitZ => new(0, 0, 1, 0);
/// <summary>
/// Gets a <see cref="UInt4"/> value with the <see cref="W"/> component set to 1, and the others to 0.
/// </summary>
public static UInt4 UnitW => new(0, 0, 0, 1);
/// <summary>
/// Gets a reference to the <see cref="uint"/> value representing the <c>X</c> component.
/// </summary>