diff --git a/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj b/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj index 68ebf225..a24ce828 100644 --- a/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj +++ b/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/src/ComputeSharp.Shaders/ComputeSharp.Shaders.csproj b/src/ComputeSharp.Shaders/ComputeSharp.Shaders.csproj index 91e57c24..080088b2 100644 --- a/src/ComputeSharp.Shaders/ComputeSharp.Shaders.csproj +++ b/src/ComputeSharp.Shaders/ComputeSharp.Shaders.csproj @@ -7,10 +7,10 @@ - - + + - + diff --git a/src/ComputeSharp.Shaders/Translation/ShaderCompiler.cs b/src/ComputeSharp.Shaders/Translation/ShaderCompiler.cs index ec7b9c0c..f7f45eab 100644 --- a/src/ComputeSharp.Shaders/Translation/ShaderCompiler.cs +++ b/src/ComputeSharp.Shaders/Translation/ShaderCompiler.cs @@ -10,17 +10,10 @@ namespace ComputeSharp.Shaders.Translation /// internal static class ShaderCompiler { - // Loads the dxil.dll library, needed to create a pipeline state for a shader to dispatch - static ShaderCompiler() - { - Dxil.LoadLibrary(); - Library = Dxc.CreateDxcLibrary(); // This needs to be loaded after dxil.dll - } - /// /// The instance to use to create the bytecode for HLSL sources /// - private static readonly IDxcLibrary Library; + private static readonly IDxcLibrary Library = Dxc.CreateDxcLibrary(); /// /// Compiles a new HLSL shader from the input source code