From 2717a569d5b3aaf9fa798e3891e5e888c8d47c8f Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 3 Apr 2022 04:03:24 +0200 Subject: [PATCH] Remove incorrect return and TerraFX type reference --- .../Shaders/Translation/D2D1ShaderCompiler.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ComputeSharp.D2D1Interop/Shaders/Translation/D2D1ShaderCompiler.cs b/src/ComputeSharp.D2D1Interop/Shaders/Translation/D2D1ShaderCompiler.cs index c0f9e910..68da8cf6 100644 --- a/src/ComputeSharp.D2D1Interop/Shaders/Translation/D2D1ShaderCompiler.cs +++ b/src/ComputeSharp.D2D1Interop/Shaders/Translation/D2D1ShaderCompiler.cs @@ -1,5 +1,6 @@ using System; using System.Buffers; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; @@ -204,8 +205,9 @@ internal static unsafe class D2D1ShaderCompiler /// /// The input (faulting) operation. /// This method always throws and never actually returs. + [DoesNotReturn] [MethodImpl(MethodImplOptions.NoInlining)] - private static ComPtr ThrowHslsCompilationException(ID3DBlob* d3DOperationResult) + private static void ThrowHslsCompilationException(ID3DBlob* d3DOperationResult) { string message = new((sbyte*)d3DOperationResult->GetBufferPointer());