Updated TerraFX and D3D12MA packages

このコミットが含まれているのは:
Sergio Pedri committed 2021-11-14 17:15:26 +01:00
1 親 05407c06e6
コミット c6df0fc6ae
5ファイル変更
+25 -11

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

+1 -1
ファイルの表示
@@ -9,7 +9,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Toolkit.Diagnostics" Version="7.1.1" />
<PackageReference Include="TerraFX.Interop.D3D12MemoryAllocator" Version="2.0.0-beta2" />
<PackageReference Include="TerraFX.Interop.D3D12MemoryAllocator" Version="2.0.0-beta3.1423935916" />
</ItemGroup>
<Choose>
+12 -1
ファイルの表示
@@ -5,7 +5,7 @@ using System.Runtime.CompilerServices;
using ComputeSharp.Graphics.Helpers;
#endif
using Microsoft.Toolkit.Diagnostics;
using HRESULT = System.Int32;
using TerraFX.Interop;
namespace ComputeSharp.Core.Extensions;
@@ -22,6 +22,17 @@ internal static class HResultExtensions
/// <exception cref="Win32Exception">Thrown if <paramref name="result"/> represents an error.</exception>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Assert(this HRESULT result)
{
Assert((int)result);
}
/// <summary>
/// Throws a <see cref="Win32Exception"/> if <paramref name="result"/> represents an error.
/// </summary>
/// <param name="result">The input <see cref="int"/> to check.</param>
/// <exception cref="Win32Exception">Thrown if <paramref name="result"/> represents an error.</exception>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Assert(this int result)
{
#if DEBUG
bool hasErrorsOrWarnings = DeviceHelper.FlushAllID3D12InfoQueueMessagesAndCheckForErrorsOrWarnings();
+1 -1
ファイルの表示
@@ -116,7 +116,7 @@ internal sealed unsafe partial class ShaderCompiler
dxcOperationResult.GetAddressOf()).Assert();
}
int status;
HRESULT status;
dxcOperationResult.Get()->GetStatus(&status).Assert();