using ComputeSharp.Exceptions;
namespace ComputeSharp
{
///
/// A that indicates the ids of a given GPU thread running a compute shader
///
public readonly struct ThreadIds
{
///
/// Gets the X id of the current thread
///
public int X => throw new InvalidExecutionContextException($"{nameof(ThreadIds)}.{nameof(X)}");
///
/// Gets the Y id of the current thread
///
public int Y => throw new InvalidExecutionContextException($"{nameof(ThreadIds)}.{nameof(Y)}");
///
/// Gets the Z id of the current thread
///
public int Z => throw new InvalidExecutionContextException($"{nameof(ThreadIds)}.{nameof(Z)}");
}
}