24 行
580 B
C#
24 行
580 B
C#
namespace ComputeSharp
|
|
{
|
|
/// <summary>
|
|
/// A <see langword="struct"/> that indicates the ids of a given GPU thread running a compute shader
|
|
/// </summary>
|
|
public readonly struct ThreadIds
|
|
{
|
|
/// <summary>
|
|
/// The X id of the current thread
|
|
/// </summary>
|
|
public readonly int X;
|
|
|
|
/// <summary>
|
|
/// The Y id of the current thread
|
|
/// </summary>
|
|
public readonly int Y;
|
|
|
|
/// <summary>
|
|
/// The Z id of the current thread
|
|
/// </summary>
|
|
public readonly int Z;
|
|
}
|
|
}
|