Removed duplicated library loading callback reegistration

このコミットが含まれているのは:
Sergio Pedri committed 2021-11-07 12:34:46 +01:00
1 親 ae0e17579e
コミット 44c3cb9410
2ファイル変更
+1 -6

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

+1 -1
ファイルの表示
@@ -12,7 +12,7 @@ internal sealed unsafe partial class ShaderCompiler
/// <summary>
/// Initializes the DLL resolvers for the dxcompiler.dll and dxil.dll libraries.
/// </summary>
private static void InitializeDxcLibrariesLoading()
static ShaderCompiler()
{
// Register a custom library resolver for the two DXC libraries. We need to either manually load the two
// libraries from the NuGet directory, if an RID is not in use, or we need to ensure that dxil.dll is
-5
ファイルの表示
@@ -39,11 +39,6 @@ internal sealed unsafe partial class ShaderCompiler
/// </summary>
private ShaderCompiler()
{
lock(this)
{
InitializeDxcLibrariesLoading();
}
using ComPtr<IDxcCompiler> dxcCompiler = default;
using ComPtr<IDxcLibrary> dxcLibrary = default;
using ComPtr<IDxcIncludeHandler> dxcIncludeHandler = default;