Move True/False and One/Zero properties to T4 templates

このコミットが含まれているのは:
Sergio Pedri committed 2022-08-24 23:40:15 +02:00
1 親 2de22e1cb3
コミット f5c4e6aacd
31ファイル変更
+181 -152

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

-10
ファイルの表示
@@ -7,16 +7,6 @@ namespace ComputeSharp;
/// </summary>
public partial struct Bool2
{
/// <summary>
/// Gets an <see cref="Bool2"/> value with all components set to <see langword="false"/>.
/// </summary>
public static Bool2 False => false;
/// <summary>
/// Gets an <see cref="Bool2"/> value with all components set to <see langword="true"/>.
/// </summary>
public static 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>
+10
ファイルの表示
@@ -32,6 +32,16 @@ public unsafe partial struct Bool2
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public readonly ref bool this[int i] => ref *(bool*)UndefinedData;
/// <summary>
/// Gets a <see cref="Bool2"/> value with all components set to <see langword="false"/>.
/// </summary>
public static Bool2 False => false;
/// <summary>
/// Gets a <see cref="Bool2"/> value with all components set to <see langword="true"/>.
/// </summary>
public static Bool2 True => true;
/// <summary>
/// Gets a reference to the <see cref="bool"/> value representing the <c>X</c> component.
/// </summary>
-10
ファイルの表示
@@ -7,16 +7,6 @@ namespace ComputeSharp;
/// </summary>
public partial struct Bool3
{
/// <summary>
/// Gets an <see cref="Bool3"/> value with all components set to <see langword="false"/>.
/// </summary>
public static Bool3 False => false;
/// <summary>
/// Gets an <see cref="Bool3"/> value with all components set to <see langword="true"/>.
/// </summary>
public static Bool3 True => true;
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/> component set to <see langword="true"/>, and the others to <see langword="false"/>.
/// </summary>
+10
ファイルの表示
@@ -35,6 +35,16 @@ public unsafe partial struct Bool3
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public readonly ref bool this[int i] => ref *(bool*)UndefinedData;
/// <summary>
/// Gets a <see cref="Bool3"/> value with all components set to <see langword="false"/>.
/// </summary>
public static Bool3 False => false;
/// <summary>
/// Gets a <see cref="Bool3"/> value with all components set to <see langword="true"/>.
/// </summary>
public static Bool3 True => true;
/// <summary>
/// Gets a reference to the <see cref="bool"/> value representing the <c>X</c> component.
/// </summary>
-10
ファイルの表示
@@ -7,16 +7,6 @@ namespace ComputeSharp;
/// </summary>
public partial struct Bool4
{
/// <summary>
/// Gets an <see cref="Bool4"/> value with all components set to <see langword="false"/>.
/// </summary>
public static Bool4 False => false;
/// <summary>
/// Gets an <see cref="Bool4"/> value with all components set to <see langword="true"/>.
/// </summary>
public static Bool4 True => true;
/// <summary>
/// Gets an <see cref="Bool4"/> value with the <see cref="X"/> component set to <see langword="true"/>, and the others to <see langword="false"/>.
/// </summary>
+10
ファイルの表示
@@ -38,6 +38,16 @@ public unsafe partial struct Bool4
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public readonly ref bool this[int i] => ref *(bool*)UndefinedData;
/// <summary>
/// Gets a <see cref="Bool4"/> value with all components set to <see langword="false"/>.
/// </summary>
public static Bool4 False => false;
/// <summary>
/// Gets a <see cref="Bool4"/> value with all components set to <see langword="true"/>.
/// </summary>
public static Bool4 True => true;
/// <summary>
/// Gets a reference to the <see cref="bool"/> value representing the <c>X</c> component.
/// </summary>