From eaac9269b2adaf97f635555febd1818448e724dd Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 15 Nov 2022 00:22:28 +0100 Subject: [PATCH] Move FactoryDelegate type to better location --- .../Shaders/Interop/Effects/PixelShaderEffect.For{T}.cs | 8 ++++++++ .../Shaders/Interop/Effects/PixelShaderEffect.cs | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.For{T}.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.For{T}.cs index 0befc486..b96e0ed8 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.For{T}.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.For{T}.cs @@ -19,6 +19,14 @@ namespace ComputeSharp.D2D1.Interop.Effects; /// internal unsafe partial struct PixelShaderEffect { + /// + /// A wrapper for an effect factory. + /// + /// The resulting effect factory. + /// The HRESULT for the operation. + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + private delegate int FactoryDelegate(IUnknown** effectImpl); + /// /// A generic pixel shader implementation. /// diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.cs index b2257fa5..5c05a70a 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.cs @@ -19,14 +19,6 @@ namespace ComputeSharp.D2D1.Interop.Effects; /// internal unsafe partial struct PixelShaderEffect { - /// - /// A wrapper for an effect factory. - /// - /// The resulting effect factory. - /// The HRESULT for the operation. - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - private delegate int FactoryDelegate(IUnknown** effectImpl); - #if !NET6_0_OR_GREATER /// [UnmanagedFunctionPointer(CallingConvention.StdCall)]