using System;
using System.Runtime.CompilerServices;
namespace ComputeSharp.Graphics.Exceptions
{
///
/// A custom that indicates when an HLSL-only API is called from C#
///
public sealed class InvalidExecutionContextException : InvalidOperationException
{
///
/// Creates a new instance
///
/// The name of the caller API
internal InvalidExecutionContextException(string name) : base($"The API {name} can only be used from within an HLSL shader") { }
}
}