Fixed accessors for static properties of vector types
このコミットが含まれているのは:
1 親
9ddb20565f
コミット
035658cdbe
13ファイル変更
+64
-64
検索条件に一致するファイルはありません
@@ -12,22 +12,22 @@ namespace ComputeSharp
|
||||
/// <summary>
|
||||
/// Gets an <see cref="UInt2"/> value with all components set to 0
|
||||
/// </summary>
|
||||
public static UInt2 Zero { get; } = 0;
|
||||
public static UInt2 Zero => 0;
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="UInt2"/> value with all components set to 1
|
||||
/// </summary>
|
||||
public static UInt2 One { get; } = 1;
|
||||
public static UInt2 One => 1;
|
||||
|
||||
/// <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 { get; } = new UInt2(1, 0);
|
||||
public static UInt2 UnitX => new UInt2(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 { get; } = new UInt2(0, 1);
|
||||
public static UInt2 UnitY => new UInt2(0, 1);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="UInt2"/> instance with the specified parameters
|
||||
|
||||
@@ -12,27 +12,27 @@ namespace ComputeSharp
|
||||
/// <summary>
|
||||
/// Gets an <see cref="UInt3"/> value with all components set to 0
|
||||
/// </summary>
|
||||
public static UInt3 Zero { get; } = 0;
|
||||
public static UInt3 Zero => 0;
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="UInt3"/> value with all components set to 1
|
||||
/// </summary>
|
||||
public static UInt3 One { get; } = 1;
|
||||
public static UInt3 One => 1;
|
||||
|
||||
/// <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 { get; } = new UInt3(1, 0, 0);
|
||||
public static UInt3 UnitX => new UInt3(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 { get; } = new UInt3(0, 1, 0);
|
||||
public static UInt3 UnitY => new UInt3(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 { get; } = new UInt3(0, 0, 1);
|
||||
public static UInt3 UnitZ => new UInt3(0, 0, 1);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="UInt3"/> instance with the specified parameters
|
||||
|
||||
@@ -12,32 +12,32 @@ namespace ComputeSharp
|
||||
/// <summary>
|
||||
/// Gets an <see cref="UInt4"/> value with all components set to 0
|
||||
/// </summary>
|
||||
public static UInt4 Zero { get; } = 0;
|
||||
public static UInt4 Zero => 0;
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="UInt4"/> value with all components set to 1
|
||||
/// </summary>
|
||||
public static UInt4 One { get; } = 1;
|
||||
public static UInt4 One => 1;
|
||||
|
||||
/// <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 { get; } = new UInt4(1, 0, 0, 0);
|
||||
public static UInt4 UnitX => new UInt4(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 { get; } = new UInt4(0, 1, 0, 0);
|
||||
public static UInt4 UnitY => new UInt4(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 { get; } = new UInt4(0, 0, 1, 0);
|
||||
public static UInt4 UnitZ => new UInt4(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 { get; } = new UInt4(0, 0, 0, 1);
|
||||
public static UInt4 UnitW => new UInt4(0, 0, 0, 1);
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="UInt4"/> instance with the specified parameters
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする