From b7ab492ff1ced8f49f2e290170bfddefbd08792d Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 8 Mar 2021 13:47:33 +0100 Subject: [PATCH] Minor XML docs improvements --- .../Core/Dispatch/DispatchSize.cs | 72 +++++++++--------- src/ComputeSharp/Core/Dispatch/GridIds.cs | 73 +++++++++--------- src/ComputeSharp/Core/Dispatch/GroupIds.cs | 73 +++++++++--------- src/ComputeSharp/Core/Dispatch/GroupSize.cs | 75 ++++++++++--------- src/ComputeSharp/Core/Dispatch/ThreadIds.cs | 73 +++++++++--------- 5 files changed, 185 insertions(+), 181 deletions(-) diff --git a/src/ComputeSharp/Core/Dispatch/DispatchSize.cs b/src/ComputeSharp/Core/Dispatch/DispatchSize.cs index d2f19ee3..d29c13cf 100644 --- a/src/ComputeSharp/Core/Dispatch/DispatchSize.cs +++ b/src/ComputeSharp/Core/Dispatch/DispatchSize.cs @@ -29,182 +29,182 @@ namespace ComputeSharp public static int Z => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(Z)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 XX => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(XX)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 XY => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(XY)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 XZ => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(XZ)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 YX => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(YX)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 YY => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(YY)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 YZ => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(YZ)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 ZX => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(ZX)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 ZY => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(ZY)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 ZZ => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(ZZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XXX => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(XXX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XXY => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(XXY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XXZ => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(XXZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XYX => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(XYX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XYY => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(XYY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XYZ => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(XYZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XZX => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(XZX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XZY => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(XZY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XZZ => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(XZZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YXX => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(YXX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YXY => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(YXY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YXZ => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(YXZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YYX => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(YYX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YYY => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(YYY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YYZ => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(YYZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YZX => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(YZX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YZY => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(YZY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YZZ => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(YZZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZXX => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(ZXX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZXY => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(ZXY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZXZ => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(ZXZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZYX => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(ZYX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZYY => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(ZYY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZYZ => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(ZYZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZZX => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(ZZX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZZY => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(ZZY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZZZ => throw new InvalidExecutionContextException($"{typeof(DispatchSize)}.{nameof(ZZZ)}"); } diff --git a/src/ComputeSharp/Core/Dispatch/GridIds.cs b/src/ComputeSharp/Core/Dispatch/GridIds.cs index 5e6f82e5..d2439ae9 100644 --- a/src/ComputeSharp/Core/Dispatch/GridIds.cs +++ b/src/ComputeSharp/Core/Dispatch/GridIds.cs @@ -4,6 +4,7 @@ namespace ComputeSharp { /// /// A that indicates the ids of the current thread group within the dispatch grid. + /// That is, it enables a shader to access info on the index of the current thread group with respect to the dispatch grid. /// public static class GridIds { @@ -23,182 +24,182 @@ namespace ComputeSharp public static int Z => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(Z)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 XX => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(XX)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 XY => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(XY)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 XZ => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(XZ)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 YX => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(YX)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 YY => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(YY)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 YZ => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(YZ)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 ZX => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(ZX)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 ZY => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(ZY)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 ZZ => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(ZZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XXX => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(XXX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XXY => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(XXY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XXZ => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(XXZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XYX => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(XYX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XYY => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(XYY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XYZ => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(XYZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XZX => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(XZX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XZY => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(XZY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XZZ => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(XZZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YXX => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(YXX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YXY => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(YXY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YXZ => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(YXZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YYX => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(YYX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YYY => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(YYY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YYZ => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(YYZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YZX => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(YZX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YZY => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(YZY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YZZ => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(YZZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZXX => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(ZXX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZXY => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(ZXY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZXZ => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(ZXZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZYX => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(ZYX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZYY => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(ZYY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZYZ => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(ZYZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZZX => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(ZZX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZZY => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(ZZY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZZZ => throw new InvalidExecutionContextException($"{typeof(GridIds)}.{nameof(ZZZ)}"); } diff --git a/src/ComputeSharp/Core/Dispatch/GroupIds.cs b/src/ComputeSharp/Core/Dispatch/GroupIds.cs index 1d4a5581..27c639d5 100644 --- a/src/ComputeSharp/Core/Dispatch/GroupIds.cs +++ b/src/ComputeSharp/Core/Dispatch/GroupIds.cs @@ -4,6 +4,7 @@ namespace ComputeSharp { /// /// A that indicates the ids of a given GPU thread running a compute shader within a dispatch group. + /// That is, it enables a shader to access info on the index of the current thread with respect to the currently running group. /// public static class GroupIds { @@ -28,182 +29,182 @@ namespace ComputeSharp public static int Z => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(Z)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 XX => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(XX)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 XY => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(XY)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 XZ => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(XZ)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 YX => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(YX)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 YY => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(YY)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 YZ => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(YZ)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 ZX => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(ZX)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 ZY => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(ZY)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 ZZ => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(ZZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XXX => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(XXX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XXY => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(XXY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XXZ => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(XXZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XYX => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(XYX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XYY => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(XYY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XYZ => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(XYZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XZX => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(XZX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XZY => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(XZY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XZZ => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(XZZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YXX => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(YXX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YXY => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(YXY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YXZ => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(YXZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YYX => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(YYX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YYY => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(YYY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YYZ => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(YYZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YZX => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(YZX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YZY => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(YZY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YZZ => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(YZZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZXX => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(ZXX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZXY => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(ZXY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZXZ => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(ZXZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZYX => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(ZYX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZYY => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(ZYY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZYZ => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(ZYZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZZX => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(ZZX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZZY => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(ZZY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZZZ => throw new InvalidExecutionContextException($"{typeof(GroupIds)}.{nameof(ZZZ)}"); } diff --git a/src/ComputeSharp/Core/Dispatch/GroupSize.cs b/src/ComputeSharp/Core/Dispatch/GroupSize.cs index 77cb797c..92f757bd 100644 --- a/src/ComputeSharp/Core/Dispatch/GroupSize.cs +++ b/src/ComputeSharp/Core/Dispatch/GroupSize.cs @@ -3,7 +3,8 @@ namespace ComputeSharp { /// - /// A that indicates the size info of a given GPU thread group running a compute shader within. + /// A that indicates the size info of a given GPU thread group running a compute shader. + /// That is, it enables a shader to access info on the size of the thread groups being used. /// public static class GroupSize { @@ -28,182 +29,182 @@ namespace ComputeSharp public static int Z => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(Z)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 XX => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(XX)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 XY => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(XY)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 XZ => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(XZ)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 YX => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(YX)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 YY => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(YY)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 YZ => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(YZ)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 ZX => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(ZX)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 ZY => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(ZY)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 ZZ => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(ZZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XXX => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(XXX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XXY => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(XXY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XXZ => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(XXZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XYX => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(XYX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XYY => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(XYY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XYZ => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(XYZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XZX => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(XZX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XZY => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(XZY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XZZ => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(XZZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YXX => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(YXX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YXY => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(YXY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YXZ => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(YXZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YYX => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(YYX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YYY => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(YYY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YYZ => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(YYZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YZX => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(YZX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YZY => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(YZY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YZZ => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(YZZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZXX => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(ZXX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZXY => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(ZXY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZXZ => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(ZXZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZYX => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(ZYX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZYY => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(ZYY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZYZ => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(ZYZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZZX => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(ZZX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZZY => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(ZZY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZZZ => throw new InvalidExecutionContextException($"{typeof(GroupSize)}.{nameof(ZZZ)}"); } diff --git a/src/ComputeSharp/Core/Dispatch/ThreadIds.cs b/src/ComputeSharp/Core/Dispatch/ThreadIds.cs index c46ec733..0606d526 100644 --- a/src/ComputeSharp/Core/Dispatch/ThreadIds.cs +++ b/src/ComputeSharp/Core/Dispatch/ThreadIds.cs @@ -4,6 +4,7 @@ namespace ComputeSharp { /// /// A that indicates the ids of a given GPU thread running a compute shader. + /// That is, it enables a shader to access info on the current iteration index along each axis. /// public static class ThreadIds { @@ -23,182 +24,182 @@ namespace ComputeSharp public static int Z => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(Z)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 XX => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(XX)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 XY => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(XY)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 XZ => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(XZ)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 YX => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(YX)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 YY => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(YY)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 YZ => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(YZ)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 ZX => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(ZX)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 ZY => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(ZY)}"); /// - /// Gets a value with the components , . + /// Gets an value with the components , . /// public static Int2 ZZ => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(ZZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XXX => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(XXX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XXY => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(XXY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XXZ => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(XXZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XYX => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(XYX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XYY => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(XYY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XYZ => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(XYZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XZX => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(XZX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XZY => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(XZY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 XZZ => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(XZZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YXX => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(YXX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YXY => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(YXY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YXZ => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(YXZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YYX => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(YYX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YYY => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(YYY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YYZ => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(YYZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YZX => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(YZX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YZY => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(YZY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 YZZ => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(YZZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZXX => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(ZXX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZXY => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(ZXY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZXZ => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(ZXZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZYX => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(ZYX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZYY => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(ZYY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZYZ => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(ZYZ)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZZX => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(ZZX)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZZY => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(ZZY)}"); /// - /// Gets a value with the components , , . + /// Gets an value with the components , , . /// public static Int3 ZZZ => throw new InvalidExecutionContextException($"{typeof(ThreadIds)}.{nameof(ZZZ)}"); }