diff --git a/src/ComputeSharp.Shaders/Translation/ShaderCompiler.cs b/src/ComputeSharp.Shaders/Translation/ShaderCompiler.cs index 04f5e40b..ef67ed5a 100644 --- a/src/ComputeSharp.Shaders/Translation/ShaderCompiler.cs +++ b/src/ComputeSharp.Shaders/Translation/ShaderCompiler.cs @@ -48,9 +48,9 @@ namespace ComputeSharp.Shaders.Translation dxcLibrary.Get()->CreateIncludeHandler(dxcIncludeHandler.GetAddressOf()).Assert(); - DxcCompiler = dxcCompiler; - DxcLibrary = dxcLibrary; - DxcIncludeHandler = dxcIncludeHandler; + DxcCompiler = dxcCompiler.Move(); + DxcLibrary = dxcLibrary.Move(); + DxcIncludeHandler = dxcIncludeHandler.Move(); } ///