Fixed accessors for static properties of vector types

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-29 02:13:56 +02:00
1 親 9ddb20565f
コミット 035658cdbe
13ファイル変更
+64 -64

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

+4 -4
ファイルの表示
@@ -12,22 +12,22 @@ namespace ComputeSharp
/// <summary>
/// Gets an <see cref="Bool2"/> value with all components set to <see langword="false"/>
/// </summary>
public static Bool2 False { get; } = new Bool2(false, false);
public static Bool2 False => new Bool2(false, false);
/// <summary>
/// Gets an <see cref="Bool2"/> value with all components set to <see langword="true"/>
/// </summary>
public static Bool2 True { get; } = new Bool2(true, true);
public static Bool2 True => new Bool2(true, true);
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="X"/> component set to <see langword="true"/>, and the others to <see langword="false"/>
/// </summary>
public static Bool2 TrueX { get; } = new Bool2(true, false);
public static Bool2 TrueX => new Bool2(true, false);
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> component set to <see langword="true"/>, and the others to <see langword="false"/>
/// </summary>
public static Bool2 TrueY { get; } = new Bool2(false, true);
public static Bool2 TrueY => new Bool2(false, true);
/// <summary>
/// Creates a new <see cref="Bool2"/> instance with the specified parameters
+4 -4
ファイルの表示
@@ -12,22 +12,22 @@ namespace ComputeSharp
/// <summary>
/// Gets an <see cref="Double2"/> value with all components set to 0
/// </summary>
public static Double2 Zero { get; } = 0;
public static Double2 Zero => 0;
/// <summary>
/// Gets an <see cref="Double2"/> value with all components set to 1
/// </summary>
public static Double2 One { get; } = 1;
public static Double2 One => 1;
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// </summary>
public static Double2 UnitX { get; } = new Double2(1, 0);
public static Double2 UnitX => new Double2(1, 0);
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// </summary>
public static Double2 UnitY { get; } = new Double2(0, 1);
public static Double2 UnitY => new Double2(0, 1);
/// <summary>
/// Creates a new <see cref="Double2"/> instance with the specified parameters
+5 -5
ファイルの表示
@@ -12,27 +12,27 @@ namespace ComputeSharp
/// <summary>
/// Gets an <see cref="Double3"/> value with all components set to 0
/// </summary>
public static Double3 Zero { get; } = 0;
public static Double3 Zero => 0;
/// <summary>
/// Gets an <see cref="Double3"/> value with all components set to 1
/// </summary>
public static Double3 One { get; } = 1;
public static Double3 One => 1;
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// </summary>
public static Double3 UnitX { get; } = new Double3(1, 0, 0);
public static Double3 UnitX => new Double3(1, 0, 0);
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// </summary>
public static Double3 UnitY { get; } = new Double3(0, 1, 0);
public static Double3 UnitY => new Double3(0, 1, 0);
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/> component set to 1, and the others to 0
/// </summary>
public static Double3 UnitZ { get; } = new Double3(0, 0, 1);
public static Double3 UnitZ => new Double3(0, 0, 1);
/// <summary>
/// Creates a new <see cref="Double3"/> instance with the specified parameters
+6 -6
ファイルの表示
@@ -12,32 +12,32 @@ namespace ComputeSharp
/// <summary>
/// Gets an <see cref="Double4"/> value with all components set to 0
/// </summary>
public static Double4 Zero { get; } = 0;
public static Double4 Zero => 0;
/// <summary>
/// Gets an <see cref="Double4"/> value with all components set to 1
/// </summary>
public static Double4 One { get; } = 1;
public static Double4 One => 1;
/// <summary>
/// Gets an <see cref="Double4"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// </summary>
public static Double4 UnitX { get; } = new Double4(1, 0, 0, 0);
public static Double4 UnitX => new Double4(1, 0, 0, 0);
/// <summary>
/// Gets an <see cref="Double4"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// </summary>
public static Double4 UnitY { get; } = new Double4(0, 1, 0, 0);
public static Double4 UnitY => new Double4(0, 1, 0, 0);
/// <summary>
/// Gets an <see cref="Double4"/> value with the <see cref="Z"/> component set to 1, and the others to 0
/// </summary>
public static Double4 UnitZ { get; } = new Double4(0, 0, 1, 0);
public static Double4 UnitZ => new Double4(0, 0, 1, 0);
/// <summary>
/// Gets an <see cref="Double4"/> value with the <see cref="W"/> component set to 1, and the others to 0
/// </summary>
public static Double4 UnitW { get; } = new Double4(0, 0, 0, 1);
public static Double4 UnitW => new Double4(0, 0, 0, 1);
/// <summary>
/// Creates a new <see cref="Double4"/> instance with the specified parameters
+4 -4
ファイルの表示
@@ -12,22 +12,22 @@ namespace ComputeSharp
/// <summary>
/// Gets an <see cref="Float2"/> value with all components set to 0
/// </summary>
public static Float2 Zero { get; } = 0;
public static Float2 Zero => 0;
/// <summary>
/// Gets an <see cref="Float2"/> value with all components set to 1
/// </summary>
public static Float2 One { get; } = 1;
public static Float2 One => 1;
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// </summary>
public static Float2 UnitX { get; } = new Float2(1, 0);
public static Float2 UnitX => new Float2(1, 0);
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// </summary>
public static Float2 UnitY { get; } = new Float2(0, 1);
public static Float2 UnitY => new Float2(0, 1);
/// <summary>
/// Creates a new <see cref="Float2"/> instance with the specified parameters
+5 -5
ファイルの表示
@@ -12,27 +12,27 @@ namespace ComputeSharp
/// <summary>
/// Gets an <see cref="Float3"/> value with all components set to 0
/// </summary>
public static Float3 Zero { get; } = 0;
public static Float3 Zero => 0;
/// <summary>
/// Gets an <see cref="Float3"/> value with all components set to 1
/// </summary>
public static Float3 One { get; } = 1;
public static Float3 One => 1;
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// </summary>
public static Float3 UnitX { get; } = new Float3(1, 0, 0);
public static Float3 UnitX => new Float3(1, 0, 0);
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// </summary>
public static Float3 UnitY { get; } = new Float3(0, 1, 0);
public static Float3 UnitY => new Float3(0, 1, 0);
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/> component set to 1, and the others to 0
/// </summary>
public static Float3 UnitZ { get; } = new Float3(0, 0, 1);
public static Float3 UnitZ => new Float3(0, 0, 1);
/// <summary>
/// Creates a new <see cref="Float3"/> instance with the specified parameters
+6 -6
ファイルの表示
@@ -12,32 +12,32 @@ namespace ComputeSharp
/// <summary>
/// Gets an <see cref="Float4"/> value with all components set to 0
/// </summary>
public static Float4 Zero { get; } = 0;
public static Float4 Zero => 0;
/// <summary>
/// Gets an <see cref="Float4"/> value with all components set to 1
/// </summary>
public static Float4 One { get; } = 1;
public static Float4 One => 1;
/// <summary>
/// Gets an <see cref="Float4"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// </summary>
public static Float4 UnitX { get; } = new Float4(1, 0, 0, 0);
public static Float4 UnitX => new Float4(1, 0, 0, 0);
/// <summary>
/// Gets an <see cref="Float4"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// </summary>
public static Float4 UnitY { get; } = new Float4(0, 1, 0, 0);
public static Float4 UnitY => new Float4(0, 1, 0, 0);
/// <summary>
/// Gets an <see cref="Float4"/> value with the <see cref="Z"/> component set to 1, and the others to 0
/// </summary>
public static Float4 UnitZ { get; } = new Float4(0, 0, 1, 0);
public static Float4 UnitZ => new Float4(0, 0, 1, 0);
/// <summary>
/// Gets an <see cref="Float4"/> value with the <see cref="W"/> component set to 1, and the others to 0
/// </summary>
public static Float4 UnitW { get; } = new Float4(0, 0, 0, 1);
public static Float4 UnitW => new Float4(0, 0, 0, 1);
/// <summary>
/// Creates a new <see cref="Float4"/> instance with the specified parameters
+4 -4
ファイルの表示
@@ -12,22 +12,22 @@ namespace ComputeSharp
/// <summary>
/// Gets an <see cref="Int2"/> value with all components set to 0
/// </summary>
public static Int2 Zero { get; } = 0;
public static Int2 Zero => 0;
/// <summary>
/// Gets an <see cref="Int2"/> value with all components set to 1
/// </summary>
public static Int2 One { get; } = 1;
public static Int2 One => 1;
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// </summary>
public static Int2 UnitX { get; } = new Int2(1, 0);
public static Int2 UnitX => new Int2(1, 0);
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// </summary>
public static Int2 UnitY { get; } = new Int2(0, 1);
public static Int2 UnitY => new Int2(0, 1);
/// <summary>
/// Creates a new <see cref="Int2"/> instance with the specified parameters
+5 -5
ファイルの表示
@@ -12,27 +12,27 @@ namespace ComputeSharp
/// <summary>
/// Gets an <see cref="Int3"/> value with all components set to 0
/// </summary>
public static Int3 Zero { get; } = 0;
public static Int3 Zero => 0;
/// <summary>
/// Gets an <see cref="Int3"/> value with all components set to 1
/// </summary>
public static Int3 One { get; } = 1;
public static Int3 One => 1;
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// </summary>
public static Int3 UnitX { get; } = new Int3(1, 0, 0);
public static Int3 UnitX => new Int3(1, 0, 0);
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// </summary>
public static Int3 UnitY { get; } = new Int3(0, 1, 0);
public static Int3 UnitY => new Int3(0, 1, 0);
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/> component set to 1, and the others to 0
/// </summary>
public static Int3 UnitZ { get; } = new Int3(0, 0, 1);
public static Int3 UnitZ => new Int3(0, 0, 1);
/// <summary>
/// Creates a new <see cref="Int3"/> instance with the specified parameters
+6 -6
ファイルの表示
@@ -12,32 +12,32 @@ namespace ComputeSharp
/// <summary>
/// Gets an <see cref="Int4"/> value with all components set to 0
/// </summary>
public static Int4 Zero { get; } = 0;
public static Int4 Zero => 0;
/// <summary>
/// Gets an <see cref="Int4"/> value with all components set to 1
/// </summary>
public static Int4 One { get; } = 1;
public static Int4 One => 1;
/// <summary>
/// Gets an <see cref="Int4"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// </summary>
public static Int4 UnitX { get; } = new Int4(1, 0, 0, 0);
public static Int4 UnitX => new Int4(1, 0, 0, 0);
/// <summary>
/// Gets an <see cref="Int4"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// </summary>
public static Int4 UnitY { get; } = new Int4(0, 1, 0, 0);
public static Int4 UnitY => new Int4(0, 1, 0, 0);
/// <summary>
/// Gets an <see cref="Int4"/> value with the <see cref="Z"/> component set to 1, and the others to 0
/// </summary>
public static Int4 UnitZ { get; } = new Int4(0, 0, 1, 0);
public static Int4 UnitZ => new Int4(0, 0, 1, 0);
/// <summary>
/// Gets an <see cref="Int4"/> value with the <see cref="W"/> component set to 1, and the others to 0
/// </summary>
public static Int4 UnitW { get; } = new Int4(0, 0, 0, 1);
public static Int4 UnitW => new Int4(0, 0, 0, 1);
/// <summary>
/// Creates a new <see cref="Int4"/> instance with the specified parameters
+4 -4
ファイルの表示
@@ -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
+5 -5
ファイルの表示
@@ -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
+6 -6
ファイルの表示
@@ -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