From fe3c09209002621c527633a48a78c3f5dd190421 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 15 Aug 2022 13:23:23 +0200 Subject: [PATCH] Update incorrect delegate type name --- .../Effects/PixelShaderEffect.Properties.cs | 6 +- .../Effects/PixelShaderEffect.Properties.g.cs | 64 +++++++++---------- .../Effects/PixelShaderEffect.Properties.tt | 4 +- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.cs index 9eeaac8a..166acd58 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.cs @@ -20,7 +20,7 @@ unsafe partial struct PixelShaderEffect /// [UnmanagedFunctionPointer(CallingConvention.StdCall)] - private delegate int PropertySetBindingDelegate(IUnknown* effect, byte* data, uint dataSize); + private delegate int PropertySetFunctionDelegate(IUnknown* effect, byte* data, uint dataSize); /// /// A cached instance wrapping . @@ -28,9 +28,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetConstantBufferWrapper = GetConstantBufferImpl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetConstantBufferWrapper = SetConstantBufferImpl; + private static readonly PropertySetFunctionDelegate SetConstantBufferWrapper = SetConstantBufferImpl; #endif /// diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.g.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.g.cs index 9e1ae4e4..320d425d 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.g.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.g.cs @@ -20,9 +20,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager0Wrapper = GetResourceTextureManager0Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager0Wrapper = SetResourceTextureManager0Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager0Wrapper = SetResourceTextureManager0Impl; /// /// A cached instance wrapping . @@ -30,9 +30,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager1Wrapper = GetResourceTextureManager1Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager1Wrapper = SetResourceTextureManager1Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager1Wrapper = SetResourceTextureManager1Impl; /// /// A cached instance wrapping . @@ -40,9 +40,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager2Wrapper = GetResourceTextureManager2Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager2Wrapper = SetResourceTextureManager2Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager2Wrapper = SetResourceTextureManager2Impl; /// /// A cached instance wrapping . @@ -50,9 +50,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager3Wrapper = GetResourceTextureManager3Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager3Wrapper = SetResourceTextureManager3Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager3Wrapper = SetResourceTextureManager3Impl; /// /// A cached instance wrapping . @@ -60,9 +60,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager4Wrapper = GetResourceTextureManager4Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager4Wrapper = SetResourceTextureManager4Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager4Wrapper = SetResourceTextureManager4Impl; /// /// A cached instance wrapping . @@ -70,9 +70,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager5Wrapper = GetResourceTextureManager5Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager5Wrapper = SetResourceTextureManager5Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager5Wrapper = SetResourceTextureManager5Impl; /// /// A cached instance wrapping . @@ -80,9 +80,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager6Wrapper = GetResourceTextureManager6Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager6Wrapper = SetResourceTextureManager6Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager6Wrapper = SetResourceTextureManager6Impl; /// /// A cached instance wrapping . @@ -90,9 +90,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager7Wrapper = GetResourceTextureManager7Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager7Wrapper = SetResourceTextureManager7Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager7Wrapper = SetResourceTextureManager7Impl; /// /// A cached instance wrapping . @@ -100,9 +100,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager8Wrapper = GetResourceTextureManager8Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager8Wrapper = SetResourceTextureManager8Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager8Wrapper = SetResourceTextureManager8Impl; /// /// A cached instance wrapping . @@ -110,9 +110,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager9Wrapper = GetResourceTextureManager9Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager9Wrapper = SetResourceTextureManager9Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager9Wrapper = SetResourceTextureManager9Impl; /// /// A cached instance wrapping . @@ -120,9 +120,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager10Wrapper = GetResourceTextureManager10Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager10Wrapper = SetResourceTextureManager10Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager10Wrapper = SetResourceTextureManager10Impl; /// /// A cached instance wrapping . @@ -130,9 +130,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager11Wrapper = GetResourceTextureManager11Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager11Wrapper = SetResourceTextureManager11Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager11Wrapper = SetResourceTextureManager11Impl; /// /// A cached instance wrapping . @@ -140,9 +140,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager12Wrapper = GetResourceTextureManager12Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager12Wrapper = SetResourceTextureManager12Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager12Wrapper = SetResourceTextureManager12Impl; /// /// A cached instance wrapping . @@ -150,9 +150,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager13Wrapper = GetResourceTextureManager13Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager13Wrapper = SetResourceTextureManager13Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager13Wrapper = SetResourceTextureManager13Impl; /// /// A cached instance wrapping . @@ -160,9 +160,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager14Wrapper = GetResourceTextureManager14Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager14Wrapper = SetResourceTextureManager14Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager14Wrapper = SetResourceTextureManager14Impl; /// /// A cached instance wrapping . @@ -170,9 +170,9 @@ unsafe partial struct PixelShaderEffect private static readonly PropertyGetFunctionDelegate GetResourceTextureManager15Wrapper = GetResourceTextureManager15Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager15Wrapper = SetResourceTextureManager15Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager15Wrapper = SetResourceTextureManager15Impl; #endif /// diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.tt b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.tt index 7711750a..87261660 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.tt +++ b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.tt @@ -27,9 +27,9 @@ for (int i = 0; i < 16; i++) private static readonly PropertyGetFunctionDelegate GetResourceTextureManager<#=i#>Wrapper = GetResourceTextureManager<#=i#>Impl; /// - /// A cached instance wrapping . + /// A cached instance wrapping . /// - private static readonly PropertySetBindingDelegate SetResourceTextureManager<#=i#>Wrapper = SetResourceTextureManager<#=i#>Impl; + private static readonly PropertySetFunctionDelegate SetResourceTextureManager<#=i#>Wrapper = SetResourceTextureManager<#=i#>Impl; <# if (i < 15) WriteLine(""); }