Simplify code in all exception types

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-04 21:01:16 +02:00
1 親 3be6767584
コミット afd4649a55
6ファイル変更
+41 -52

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

+2 -2
ファイルの表示
@@ -10,9 +10,9 @@ public sealed class InvalidExecutionContextException : InvalidOperationException
/// <summary>
/// Creates a new <see cref="InvalidExecutionContextException"/> instance.
/// </summary>
/// <param name="memberName">The member name of the caller API.</param>
/// <param name="memberName">The member name of the invoked API.</param>
internal InvalidExecutionContextException(string memberName)
: base($"The API {memberName} can only be used from within an HLSL shader.")
: base("The invoked API can only be used from within an HLSL shader.")
{
MemberName = memberName;
}