Code refactoring to the TerraFX shader compiler

このコミットが含まれているのは:
Sergio Pedri committed 2020-11-16 16:44:32 +01:00
1 親 3f1b27e092
コミット 3e6f9d27c9
5ファイル変更
+160 -83

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

-1
ファイルの表示
@@ -7,7 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="TerraFX.Interop.Windows" Version="10.0.19041-beta1" />
<PackageReference Include="Vortice.Direct3D12" Version="1.8.6" />
</ItemGroup>
-22
ファイルの表示
@@ -27,28 +27,6 @@ namespace ComputeSharp.Graphics.Helpers
}
}
/// <summary>
/// Throws a <see cref="Win32Exception"/> if <paramref name="result"/> represents an error.
/// </summary>
/// <param name="result">The input <see cref="HRESULT"/> to check.</param>
/// <param name="resource">An owned resource to dispose if it is not a null reference.</param>
/// <exception cref="Win32Exception">Thrown if <paramref name="result"/> represents an error.</exception>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static unsafe void ThrowIfFailed(int result, void* resource)
{
if (result < 0)
{
static void Throw(int result, void* resource)
{
if (resource != null) ((IUnknown*)resource)->Release();
throw new Win32Exception(result);
}
Throw(result, resource);
}
}
/// <summary>
/// Throws a <see cref="Win32Exception"/> if <paramref name="result"/> represents an error.
/// </summary>