Move primitives to ComputeSharp.Core

このコミットが含まれているのは:
Sergio Pedri committed 2022-04-24 21:03:14 +02:00
1 親 cc298770ca
コミット e48949cd48
78ファイル変更
+369 -245

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

+18
ファイルの表示
@@ -0,0 +1,18 @@
using System;
namespace ComputeSharp.Exceptions;
/// <summary>
/// A custom <see cref="InvalidOperationException"/> that indicates when an HLSL-only API is called from C#
/// </summary>
public sealed class InvalidExecutionContextException : InvalidOperationException
{
/// <summary>
/// Creates a new <see cref="InvalidExecutionContextException"/> instance.
/// </summary>
/// <param name="name">The name of the caller API.</param>
internal InvalidExecutionContextException(string name)
: base($"The API {name} can only be used from within an HLSL shader.")
{
}
}