Removed duplicated library loading callback reegistration
このコミットが含まれているのは:
1 親
ae0e17579e
コミット
44c3cb9410
2ファイル変更
+1
-6
検索条件に一致するファイルはありません
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする