From 0c0d97e47570f4322f2adee5fa13d0394a8c34cb Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 23 Apr 2022 22:50:52 +0200 Subject: [PATCH] Fix issue causing precompiled shaders to be recompiled --- src/ComputeSharp.D2D1/Shaders/Interop/D2D1InteropServices.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InteropServices.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InteropServices.cs index db3709d1..5442cff8 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InteropServices.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InteropServices.cs @@ -60,7 +60,7 @@ public static unsafe class D2D1InteropServices { D2D1ShaderBytecodeLoader bytecodeLoader = default; - Unsafe.NullRef().LoadBytecode(ref bytecodeLoader, shaderProfile ?? D2D1ShaderProfile.PixelShader50); + Unsafe.NullRef().LoadBytecode(ref bytecodeLoader, shaderProfile); using ComPtr dynamicBytecode = bytecodeLoader.GetResultingShaderBytecode(out ReadOnlySpan precompiledBytecode);