Remove downlevel paths in ComputeSharp.D2D1
このコミットが含まれているのは:
1 親
bdd97a750d
コミット
e2afabb194
19ファイル変更
+5
-1016
検索条件に一致するファイルはありません
@@ -23,7 +23,7 @@ public sealed class FxcCompilationException : Exception
|
||||
/// <returns>A formatted error message for a new <see cref="FxcCompilationException"/> instance.</returns>
|
||||
private static string GetExceptionMessage(string error)
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
#if !SOURCE_GENERATOR
|
||||
ReadOnlySpan<char> message = error.AsSpan().Trim();
|
||||
#else
|
||||
string message = error.Trim();
|
||||
|
||||
@@ -74,18 +74,10 @@ internal unsafe partial struct PixelShaderEffect
|
||||
/// <summary>
|
||||
/// Gets the factory for the current effect.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public delegate* unmanaged[Stdcall]<IUnknown**, HRESULT> Factory
|
||||
#else
|
||||
public void* Factory
|
||||
#endif
|
||||
public delegate* unmanaged<IUnknown**, HRESULT> Factory
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
#if NET6_0_OR_GREATER
|
||||
get => (delegate* unmanaged[Stdcall]<IUnknown**, HRESULT>)Marshal.GetFunctionPointerForDelegate(this.effectFactory);
|
||||
#else
|
||||
get => (void*)Marshal.GetFunctionPointerForDelegate(this.effectFactory);
|
||||
#endif
|
||||
get => (delegate* unmanaged<IUnknown**, HRESULT>)Marshal.GetFunctionPointerForDelegate(this.effectFactory);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
-62
@@ -14,68 +14,6 @@ partial struct PixelShaderEffect
|
||||
/// </summary>
|
||||
private static unsafe class ID2D1DrawTransformMethods
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <inheritdoc cref="GetInputCount"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate uint GetInputCountDelegate(PixelShaderEffect* @this);
|
||||
|
||||
/// <inheritdoc cref="MapOutputRectToInputRects"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int MapOutputRectToInputRectsDelegate(PixelShaderEffect* @this, RECT* outputRect, RECT* inputRects, uint inputRectsCount);
|
||||
|
||||
/// <inheritdoc cref="MapInputRectsToOutputRect"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int MapInputRectsToOutputRectDelegate(PixelShaderEffect* @this, RECT* inputRects, RECT* inputOpaqueSubRects, uint inputRectCount, RECT* outputRect, RECT* outputOpaqueSubRect);
|
||||
|
||||
/// <inheritdoc cref="MapInvalidRect"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int MapInvalidRectDelegate(PixelShaderEffect* @this, uint inputIndex, RECT invalidInputRect, RECT* invalidOutputRect);
|
||||
|
||||
/// <inheritdoc cref="SetDrawInfo"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int SetDrawInfoDelegate(PixelShaderEffect* @this, ID2D1DrawInfo* drawInfo);
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="QueryInterfaceDelegate"/> instance wrapping <see cref="QueryInterface"/>.
|
||||
/// </summary>
|
||||
public static readonly QueryInterfaceDelegate QueryInterfaceWrapper = QueryInterface;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="AddRefDelegate"/> instance wrapping <see cref="AddRef"/>.
|
||||
/// </summary>
|
||||
public static readonly AddRefDelegate AddRefWrapper = AddRef;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="ReleaseDelegate"/> instance wrapping <see cref="Release"/>.
|
||||
/// </summary>
|
||||
public static readonly ReleaseDelegate ReleaseWrapper = Release;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="GetInputCountDelegate"/> instance wrapping <see cref="GetInputCount"/>.
|
||||
/// </summary>
|
||||
public static readonly GetInputCountDelegate GetInputCountWrapper = GetInputCount;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="MapOutputRectToInputRectsDelegate"/> instance wrapping <see cref="MapOutputRectToInputRects"/>.
|
||||
/// </summary>
|
||||
public static readonly MapOutputRectToInputRectsDelegate MapOutputRectToInputRectsWrapper = MapOutputRectToInputRects;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="MapInputRectsToOutputRectDelegate"/> instance wrapping <see cref="MapInputRectsToOutputRect"/>.
|
||||
/// </summary>
|
||||
public static readonly MapInputRectsToOutputRectDelegate MapInputRectsToOutputRectWrapper = MapInputRectsToOutputRect;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="MapInvalidRectDelegate"/> instance wrapping <see cref="MapInvalidRect"/>.
|
||||
/// </summary>
|
||||
public static readonly MapInvalidRectDelegate MapInvalidRectWrapper = MapInvalidRect;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="SetDrawInfoDelegate"/> instance wrapping <see cref="SetDrawInfo"/>.
|
||||
/// </summary>
|
||||
public static readonly SetDrawInfoDelegate SetDrawInfoWrapper = SetDrawInfo;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc cref="ID2D1DrawTransform.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
public static int QueryInterface(PixelShaderEffect* @this, Guid* riid, void** ppvObject)
|
||||
|
||||
-44
@@ -17,50 +17,6 @@ internal unsafe partial struct PixelShaderEffect
|
||||
/// </summary>
|
||||
private static class ID2D1EffectImplMethods
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <inheritdoc cref="Initialize"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int InitializeDelegate(PixelShaderEffect* @this, ID2D1EffectContext* effectContext, ID2D1TransformGraph* transformGraph);
|
||||
|
||||
/// <inheritdoc cref="PrepareForRender"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int PrepareForRenderDelegate(PixelShaderEffect* @this, D2D1_CHANGE_TYPE changeType);
|
||||
|
||||
/// <inheritdoc cref="SetGraph"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int SetGraphDelegate(PixelShaderEffect* @this, ID2D1TransformGraph* transformGraph);
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="QueryInterfaceDelegate"/> instance wrapping <see cref="QueryInterface"/>.
|
||||
/// </summary>
|
||||
public static readonly QueryInterfaceDelegate QueryInterfaceWrapper = QueryInterface;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="AddRefDelegate"/> instance wrapping <see cref="AddRef"/>.
|
||||
/// </summary>
|
||||
public static readonly AddRefDelegate AddRefWrapper = AddRef;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="ReleaseDelegate"/> instance wrapping <see cref="Release"/>.
|
||||
/// </summary>
|
||||
public static readonly ReleaseDelegate ReleaseWrapper = Release;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="InitializeDelegate"/> instance wrapping <see cref="Initialize"/>.
|
||||
/// </summary>
|
||||
public static readonly InitializeDelegate InitializeWrapper = Initialize;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PrepareForRenderDelegate"/> instance wrapping <see cref="PrepareForRender"/>.
|
||||
/// </summary>
|
||||
public static readonly PrepareForRenderDelegate PrepareForRenderWrapper = PrepareForRender;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="SetGraphDelegate"/> instance wrapping <see cref="SetGraph"/>.
|
||||
/// </summary>
|
||||
public static readonly SetGraphDelegate SetGraphWrapper = SetGraph;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc cref="ID2D1EffectImpl.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
public static int QueryInterface(PixelShaderEffect* @this, Guid* riid, void** ppvObject)
|
||||
|
||||
@@ -11,102 +11,40 @@ namespace ComputeSharp.D2D1.Interop.Effects;
|
||||
/// <inheritdoc/>
|
||||
unsafe partial struct PixelShaderEffect
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
private delegate int PropertyGetFunctionDelegate(IUnknown* effect, byte* data, uint dataSize, uint* actualSize);
|
||||
|
||||
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.setFunction"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
private delegate int PropertySetFunctionDelegate(IUnknown* effect, byte* data, uint dataSize);
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetConstantBufferImpl"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetConstantBufferWrapper = GetConstantBufferImpl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetConstantBufferImpl"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetConstantBufferWrapper = SetConstantBufferImpl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetTransformMapperImpl"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetTransformMapperWrapper = GetTransformMapperImpl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetTransformMapperImpl"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetTransformMapperWrapper = SetTransformMapperImpl;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the constant buffer.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetConstantBuffer
|
||||
#else
|
||||
public static void* GetConstantBuffer
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
#if NET6_0_OR_GREATER
|
||||
get => &GetConstantBufferImpl;
|
||||
#else
|
||||
get => (void*)Marshal.GetFunctionPointerForDelegate(GetConstantBufferWrapper);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the constant buffer.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetConstantBuffer
|
||||
#else
|
||||
public static void* SetConstantBuffer
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
#if NET6_0_OR_GREATER
|
||||
get => &SetConstantBufferImpl;
|
||||
#else
|
||||
get => (void*)Marshal.GetFunctionPointerForDelegate(SetConstantBufferWrapper);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the transform mapper.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetTransformMapper
|
||||
#else
|
||||
public static void* GetTransformMapper
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
#if NET6_0_OR_GREATER
|
||||
get => &GetTransformMapperImpl;
|
||||
#else
|
||||
get => (void*)Marshal.GetFunctionPointerForDelegate(GetTransformMapperWrapper);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the transform mapper.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetTransformMapper
|
||||
#else
|
||||
public static void* SetTransformMapper
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
#if NET6_0_OR_GREATER
|
||||
get => &SetTransformMapperImpl;
|
||||
#else
|
||||
get => (void*)Marshal.GetFunctionPointerForDelegate(SetTransformMapperWrapper);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
#if !NET6_OR_GREATER
|
||||
using System.Runtime.InteropServices;
|
||||
#endif
|
||||
using ComputeSharp.Win32;
|
||||
|
||||
namespace ComputeSharp.D2D1.Interop.Effects;
|
||||
@@ -9,805 +7,387 @@ namespace ComputeSharp.D2D1.Interop.Effects;
|
||||
/// <inheritdoc/>
|
||||
unsafe partial struct PixelShaderEffect
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager0"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager0Wrapper = GetResourceTextureManager0Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager0"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager0Wrapper = SetResourceTextureManager0Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager1"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager1Wrapper = GetResourceTextureManager1Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager1"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager1Wrapper = SetResourceTextureManager1Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager2"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager2Wrapper = GetResourceTextureManager2Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager2"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager2Wrapper = SetResourceTextureManager2Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager3"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager3Wrapper = GetResourceTextureManager3Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager3"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager3Wrapper = SetResourceTextureManager3Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager4"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager4Wrapper = GetResourceTextureManager4Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager4"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager4Wrapper = SetResourceTextureManager4Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager5"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager5Wrapper = GetResourceTextureManager5Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager5"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager5Wrapper = SetResourceTextureManager5Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager6"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager6Wrapper = GetResourceTextureManager6Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager6"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager6Wrapper = SetResourceTextureManager6Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager7"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager7Wrapper = GetResourceTextureManager7Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager7"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager7Wrapper = SetResourceTextureManager7Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager8"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager8Wrapper = GetResourceTextureManager8Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager8"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager8Wrapper = SetResourceTextureManager8Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager9"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager9Wrapper = GetResourceTextureManager9Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager9"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager9Wrapper = SetResourceTextureManager9Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager10"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager10Wrapper = GetResourceTextureManager10Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager10"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager10Wrapper = SetResourceTextureManager10Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager11"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager11Wrapper = GetResourceTextureManager11Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager11"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager11Wrapper = SetResourceTextureManager11Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager12"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager12Wrapper = GetResourceTextureManager12Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager12"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager12Wrapper = SetResourceTextureManager12Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager13"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager13Wrapper = GetResourceTextureManager13Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager13"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager13Wrapper = SetResourceTextureManager13Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager14"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager14Wrapper = GetResourceTextureManager14Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager14"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager14Wrapper = SetResourceTextureManager14Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager15"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager15Wrapper = GetResourceTextureManager15Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager15"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager15Wrapper = SetResourceTextureManager15Impl;
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 0.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager0
|
||||
#else
|
||||
public static void* GetResourceTextureManager0
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager0Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager0Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 0.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager0
|
||||
#else
|
||||
public static void* SetResourceTextureManager0
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager0Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager0Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 1.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager1
|
||||
#else
|
||||
public static void* GetResourceTextureManager1
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager1Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager1Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 1.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager1
|
||||
#else
|
||||
public static void* SetResourceTextureManager1
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager1Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager1Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 2.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager2
|
||||
#else
|
||||
public static void* GetResourceTextureManager2
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager2Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager2Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 2.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager2
|
||||
#else
|
||||
public static void* SetResourceTextureManager2
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager2Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager2Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 3.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager3
|
||||
#else
|
||||
public static void* GetResourceTextureManager3
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager3Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager3Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 3.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager3
|
||||
#else
|
||||
public static void* SetResourceTextureManager3
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager3Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager3Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 4.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager4
|
||||
#else
|
||||
public static void* GetResourceTextureManager4
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager4Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager4Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 4.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager4
|
||||
#else
|
||||
public static void* SetResourceTextureManager4
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager4Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager4Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 5.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager5
|
||||
#else
|
||||
public static void* GetResourceTextureManager5
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager5Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager5Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 5.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager5
|
||||
#else
|
||||
public static void* SetResourceTextureManager5
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager5Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager5Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 6.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager6
|
||||
#else
|
||||
public static void* GetResourceTextureManager6
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager6Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager6Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 6.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager6
|
||||
#else
|
||||
public static void* SetResourceTextureManager6
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager6Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager6Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 7.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager7
|
||||
#else
|
||||
public static void* GetResourceTextureManager7
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager7Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager7Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 7.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager7
|
||||
#else
|
||||
public static void* SetResourceTextureManager7
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager7Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager7Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 8.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager8
|
||||
#else
|
||||
public static void* GetResourceTextureManager8
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager8Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager8Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 8.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager8
|
||||
#else
|
||||
public static void* SetResourceTextureManager8
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager8Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager8Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 9.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager9
|
||||
#else
|
||||
public static void* GetResourceTextureManager9
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager9Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager9Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 9.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager9
|
||||
#else
|
||||
public static void* SetResourceTextureManager9
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager9Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager9Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 10.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager10
|
||||
#else
|
||||
public static void* GetResourceTextureManager10
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager10Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager10Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 10.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager10
|
||||
#else
|
||||
public static void* SetResourceTextureManager10
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager10Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager10Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 11.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager11
|
||||
#else
|
||||
public static void* GetResourceTextureManager11
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager11Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager11Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 11.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager11
|
||||
#else
|
||||
public static void* SetResourceTextureManager11
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager11Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager11Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 12.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager12
|
||||
#else
|
||||
public static void* GetResourceTextureManager12
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager12Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager12Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 12.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager12
|
||||
#else
|
||||
public static void* SetResourceTextureManager12
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager12Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager12Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 13.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager13
|
||||
#else
|
||||
public static void* GetResourceTextureManager13
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager13Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager13Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 13.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager13
|
||||
#else
|
||||
public static void* SetResourceTextureManager13
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager13Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager13Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 14.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager14
|
||||
#else
|
||||
public static void* GetResourceTextureManager14
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager14Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager14Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 14.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager14
|
||||
#else
|
||||
public static void* SetResourceTextureManager14
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager14Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager14Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index 15.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager15
|
||||
#else
|
||||
public static void* GetResourceTextureManager15
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager15Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager15Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index 15.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager15
|
||||
#else
|
||||
public static void* SetResourceTextureManager15
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager15Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager15Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,9 +2,7 @@
|
||||
<#@ assembly name="System.Core" #>
|
||||
<#@ output extension=".g.cs"#>
|
||||
using System.Runtime.CompilerServices;
|
||||
#if !NET6_OR_GREATER
|
||||
using System.Runtime.InteropServices;
|
||||
#endif
|
||||
using ComputeSharp.Win32;
|
||||
|
||||
namespace ComputeSharp.D2D1.Interop.Effects;
|
||||
@@ -12,26 +10,6 @@ namespace ComputeSharp.D2D1.Interop.Effects;
|
||||
/// <inheritdoc/>
|
||||
unsafe partial struct PixelShaderEffect
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
<#
|
||||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
#>
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertyGetFunctionDelegate"/> instance wrapping <see cref="GetResourceTextureManager<#=i#>"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertyGetFunctionDelegate GetResourceTextureManager<#=i#>Wrapper = GetResourceTextureManager<#=i#>Impl;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="PropertySetFunctionDelegate"/> instance wrapping <see cref="SetResourceTextureManager<#=i#>"/>.
|
||||
/// </summary>
|
||||
private static readonly PropertySetFunctionDelegate SetResourceTextureManager<#=i#>Wrapper = SetResourceTextureManager<#=i#>Impl;
|
||||
<#
|
||||
if (i < 15) WriteLine("");
|
||||
}
|
||||
#>
|
||||
#endif
|
||||
|
||||
<#
|
||||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
@@ -39,40 +17,24 @@ for (int i = 0; i < 16; i++)
|
||||
/// <summary>
|
||||
/// Gets the get accessor for the resource manager at index <#=i#>.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> GetResourceTextureManager<#=i#>
|
||||
#else
|
||||
public static void* GetResourceTextureManager<#=i#>
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &GetResourceTextureManager<#=i#>Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(GetResourceTextureManager<#=i#>Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the set accessor for the resource manager at index <#=i#>.
|
||||
/// </summary>
|
||||
#if NET6_0_OR_GREATER
|
||||
public static delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> SetResourceTextureManager<#=i#>
|
||||
#else
|
||||
public static void* SetResourceTextureManager<#=i#>
|
||||
#endif
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
get
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return &SetResourceTextureManager<#=i#>Impl;
|
||||
#else
|
||||
return (void*)Marshal.GetFunctionPointerForDelegate(SetResourceTextureManager<#=i#>Wrapper);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,20 +12,6 @@ namespace ComputeSharp.D2D1.Interop.Effects;
|
||||
/// </summary>
|
||||
internal unsafe partial struct PixelShaderEffect
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <inheritdoc cref="QueryInterface"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
private delegate int QueryInterfaceDelegate(PixelShaderEffect* @this, Guid* riid, void** ppvObject);
|
||||
|
||||
/// <inheritdoc cref="AddRef"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
private delegate uint AddRefDelegate(PixelShaderEffect* @this);
|
||||
|
||||
/// <inheritdoc cref="Release"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
private delegate uint ReleaseDelegate(PixelShaderEffect* @this);
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// The shared vtable pointer for <see cref="PixelShaderEffect"/> instance, for <see cref="ID2D1EffectImplMethods"/>.
|
||||
/// </summary>
|
||||
@@ -45,24 +31,14 @@ internal unsafe partial struct PixelShaderEffect
|
||||
void** lpVtbl = (void**)D2D1AssemblyAssociatedMemory.Allocate(sizeof(void*) * 14);
|
||||
|
||||
// ID2D1EffectImpl
|
||||
#if NET6_0_OR_GREATER
|
||||
lpVtbl[0] = (delegate* unmanaged<PixelShaderEffect*, Guid*, void**, int>)&ID2D1EffectImplMethods.QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged<PixelShaderEffect*, uint>)&ID2D1EffectImplMethods.AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged<PixelShaderEffect*, uint>)&ID2D1EffectImplMethods.Release;
|
||||
lpVtbl[3] = (delegate* unmanaged<PixelShaderEffect*, ID2D1EffectContext*, ID2D1TransformGraph*, int>)&ID2D1EffectImplMethods.Initialize;
|
||||
lpVtbl[4] = (delegate* unmanaged<PixelShaderEffect*, D2D1_CHANGE_TYPE, int>)&ID2D1EffectImplMethods.PrepareForRender;
|
||||
lpVtbl[5] = (delegate* unmanaged<PixelShaderEffect*, ID2D1TransformGraph*, int>)&ID2D1EffectImplMethods.SetGraph;
|
||||
#else
|
||||
lpVtbl[0] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1EffectImplMethods.QueryInterfaceWrapper);
|
||||
lpVtbl[1] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1EffectImplMethods.AddRefWrapper);
|
||||
lpVtbl[2] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1EffectImplMethods.ReleaseWrapper);
|
||||
lpVtbl[3] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1EffectImplMethods.InitializeWrapper);
|
||||
lpVtbl[4] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1EffectImplMethods.PrepareForRenderWrapper);
|
||||
lpVtbl[5] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1EffectImplMethods.SetGraphWrapper);
|
||||
#endif
|
||||
|
||||
// ID2D1DrawTransform
|
||||
#if NET6_0_OR_GREATER
|
||||
lpVtbl[6 + 0] = (delegate* unmanaged<PixelShaderEffect*, Guid*, void**, int>)&ID2D1DrawTransformMethods.QueryInterface;
|
||||
lpVtbl[6 + 1] = (delegate* unmanaged<PixelShaderEffect*, uint>)&ID2D1DrawTransformMethods.AddRef;
|
||||
lpVtbl[6 + 2] = (delegate* unmanaged<PixelShaderEffect*, uint>)&ID2D1DrawTransformMethods.Release;
|
||||
@@ -71,16 +47,6 @@ internal unsafe partial struct PixelShaderEffect
|
||||
lpVtbl[6 + 5] = (delegate* unmanaged<PixelShaderEffect*, RECT*, RECT*, uint, RECT*, RECT*, int>)&ID2D1DrawTransformMethods.MapInputRectsToOutputRect;
|
||||
lpVtbl[6 + 6] = (delegate* unmanaged<PixelShaderEffect*, uint, RECT, RECT*, int>)&ID2D1DrawTransformMethods.MapInvalidRect;
|
||||
lpVtbl[6 + 7] = (delegate* unmanaged<PixelShaderEffect*, ID2D1DrawInfo*, int>)&ID2D1DrawTransformMethods.SetDrawInfo;
|
||||
#else
|
||||
lpVtbl[6 + 0] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawTransformMethods.QueryInterfaceWrapper);
|
||||
lpVtbl[6 + 1] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawTransformMethods.AddRefWrapper);
|
||||
lpVtbl[6 + 2] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawTransformMethods.ReleaseWrapper);
|
||||
lpVtbl[6 + 3] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawTransformMethods.GetInputCountWrapper);
|
||||
lpVtbl[6 + 4] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawTransformMethods.MapOutputRectToInputRectsWrapper);
|
||||
lpVtbl[6 + 5] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawTransformMethods.MapInputRectsToOutputRectWrapper);
|
||||
lpVtbl[6 + 6] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawTransformMethods.MapInvalidRectWrapper);
|
||||
lpVtbl[6 + 7] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawTransformMethods.SetDrawInfoWrapper);
|
||||
#endif
|
||||
|
||||
return lpVtbl;
|
||||
}
|
||||
|
||||
-48
@@ -124,54 +124,6 @@ unsafe partial struct D2D1ResourceTextureManagerImpl
|
||||
/// </summary>
|
||||
private static class ID2D1ResourceTextureManagerMethods
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <inheritdoc cref="Initialize"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int InitializeDelegate(
|
||||
D2D1ResourceTextureManagerImpl* @this,
|
||||
Guid* resourceId,
|
||||
D2D1_RESOURCE_TEXTURE_PROPERTIES* resourceTextureProperties,
|
||||
byte* data,
|
||||
uint* strides,
|
||||
uint dataSize);
|
||||
|
||||
/// <inheritdoc cref="Update"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int UpdateDelegate(
|
||||
D2D1ResourceTextureManagerImpl* @this,
|
||||
uint* minimumExtents,
|
||||
uint* maximimumExtents,
|
||||
uint* strides,
|
||||
uint dimensions,
|
||||
byte* data,
|
||||
uint dataCount);
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="QueryInterfaceDelegate"/> instance wrapping <see cref="QueryInterface"/>.
|
||||
/// </summary>
|
||||
public static readonly QueryInterfaceDelegate QueryInterfaceWrapper = QueryInterface;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="AddRefDelegate"/> instance wrapping <see cref="AddRef"/>.
|
||||
/// </summary>
|
||||
public static readonly AddRefDelegate AddRefWrapper = AddRef;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="ReleaseDelegate"/> instance wrapping <see cref="Release"/>.
|
||||
/// </summary>
|
||||
public static readonly ReleaseDelegate ReleaseWrapper = Release;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="InitializeDelegate"/> instance wrapping <see cref="Initialize"/>.
|
||||
/// </summary>
|
||||
public static readonly InitializeDelegate InitializeWrapper = Initialize;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="UpdateDelegate"/> instance wrapping <see cref="Update"/>.
|
||||
/// </summary>
|
||||
public static readonly UpdateDelegate UpdateWrapper = Update;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc cref="D2D1ResourceTextureManagerImpl.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
public static int QueryInterface(D2D1ResourceTextureManagerImpl* @this, Guid* riid, void** ppvObject)
|
||||
|
||||
-35
@@ -13,41 +13,6 @@ partial struct D2D1ResourceTextureManagerImpl
|
||||
/// </summary>
|
||||
private static unsafe class ID2D1ResourceTextureManagerInternalMethods
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <inheritdoc cref="Initialize"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int InitializeDelegate(D2D1ResourceTextureManagerImpl* @this, ID2D1EffectContext* effectContext, uint* dimensions);
|
||||
|
||||
/// <inheritdoc cref="GetResourceTexture"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int GetResourceTextureDelegate(D2D1ResourceTextureManagerImpl* @this, ID2D1ResourceTexture** resourceTexture);
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="QueryInterfaceDelegate"/> instance wrapping <see cref="QueryInterface"/>.
|
||||
/// </summary>
|
||||
public static readonly QueryInterfaceDelegate QueryInterfaceWrapper = QueryInterface;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="AddRefDelegate"/> instance wrapping <see cref="AddRef"/>.
|
||||
/// </summary>
|
||||
public static readonly AddRefDelegate AddRefWrapper = AddRef;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="ReleaseDelegate"/> instance wrapping <see cref="Release"/>.
|
||||
/// </summary>
|
||||
public static readonly ReleaseDelegate ReleaseWrapper = Release;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="InitializeDelegate"/> instance wrapping <see cref="Initialize"/>.
|
||||
/// </summary>
|
||||
public static readonly InitializeDelegate InitializeWrapper = Initialize;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="GetResourceTextureDelegate"/> instance wrapping <see cref="GetResourceTexture"/>.
|
||||
/// </summary>
|
||||
public static readonly GetResourceTextureDelegate GetResourceTextureWrapper = GetResourceTexture;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc cref="D2D1ResourceTextureManagerImpl.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
public static int QueryInterface(D2D1ResourceTextureManagerImpl* @this, Guid* riid, void** ppvObject)
|
||||
|
||||
-30
@@ -12,20 +12,6 @@ namespace ComputeSharp.D2D1.Shaders.Interop.Effects.ResourceManagers;
|
||||
/// </summary>
|
||||
internal unsafe partial struct D2D1ResourceTextureManagerImpl
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <inheritdoc cref="QueryInterface"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
private delegate int QueryInterfaceDelegate(D2D1ResourceTextureManagerImpl* @this, Guid* riid, void** ppvObject);
|
||||
|
||||
/// <inheritdoc cref="AddRef"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
private delegate uint AddRefDelegate(D2D1ResourceTextureManagerImpl* @this);
|
||||
|
||||
/// <inheritdoc cref="Release"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
private delegate uint ReleaseDelegate(D2D1ResourceTextureManagerImpl* @this);
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// The shared vtable pointer for <see cref="D2D1ResourceTextureManagerImpl"/> instance, for <see cref="ID2D1ResourceTextureManager"/>.
|
||||
/// </summary>
|
||||
@@ -45,34 +31,18 @@ internal unsafe partial struct D2D1ResourceTextureManagerImpl
|
||||
void** lpVtbl = (void**)D2D1AssemblyAssociatedMemory.Allocate(sizeof(void*) * 10);
|
||||
|
||||
// ID2D1ResourceTextureManager
|
||||
#if NET6_0_OR_GREATER
|
||||
lpVtbl[0] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, Guid*, void**, int>)&ID2D1ResourceTextureManagerMethods.QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, uint>)&ID2D1ResourceTextureManagerMethods.AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, uint>)&ID2D1ResourceTextureManagerMethods.Release;
|
||||
lpVtbl[3] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, Guid*, D2D1_RESOURCE_TEXTURE_PROPERTIES*, byte*, uint*, uint, int>)&ID2D1ResourceTextureManagerMethods.Initialize;
|
||||
lpVtbl[4] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, uint*, uint*, uint*, uint, byte*, uint, int>)&ID2D1ResourceTextureManagerMethods.Update;
|
||||
#else
|
||||
lpVtbl[0] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1ResourceTextureManagerMethods.QueryInterfaceWrapper);
|
||||
lpVtbl[1] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1ResourceTextureManagerMethods.AddRefWrapper);
|
||||
lpVtbl[2] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1ResourceTextureManagerMethods.ReleaseWrapper);
|
||||
lpVtbl[3] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1ResourceTextureManagerMethods.InitializeWrapper);
|
||||
lpVtbl[4] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1ResourceTextureManagerMethods.UpdateWrapper);
|
||||
#endif
|
||||
|
||||
// ID2D1ResourceTextureManagerInternal
|
||||
#if NET6_0_OR_GREATER
|
||||
lpVtbl[5 + 0] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, Guid*, void**, int>)&ID2D1ResourceTextureManagerInternalMethods.QueryInterface;
|
||||
lpVtbl[5 + 1] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, uint>)&ID2D1ResourceTextureManagerInternalMethods.AddRef;
|
||||
lpVtbl[5 + 2] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, uint>)&ID2D1ResourceTextureManagerInternalMethods.Release;
|
||||
lpVtbl[5 + 3] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, ID2D1EffectContext*, uint*, int>)&ID2D1ResourceTextureManagerInternalMethods.Initialize;
|
||||
lpVtbl[5 + 4] = (delegate* unmanaged<D2D1ResourceTextureManagerImpl*, ID2D1ResourceTexture**, int>)&ID2D1ResourceTextureManagerInternalMethods.GetResourceTexture;
|
||||
#else
|
||||
lpVtbl[5 + 0] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1ResourceTextureManagerInternalMethods.QueryInterfaceWrapper);
|
||||
lpVtbl[5 + 1] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1ResourceTextureManagerInternalMethods.AddRefWrapper);
|
||||
lpVtbl[5 + 2] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1ResourceTextureManagerInternalMethods.ReleaseWrapper);
|
||||
lpVtbl[5 + 3] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1ResourceTextureManagerInternalMethods.InitializeWrapper);
|
||||
lpVtbl[5 + 4] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1ResourceTextureManagerInternalMethods.GetResourceTextureWrapper);
|
||||
#endif
|
||||
|
||||
return lpVtbl;
|
||||
}
|
||||
|
||||
-44
@@ -12,50 +12,6 @@ partial struct D2D1DrawInfoUpdateContextImpl
|
||||
/// </summary>
|
||||
private static unsafe class ID2D1DrawInfoUpdateContextMethods
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <inheritdoc cref="GetConstantBufferSize"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int GetConstantBufferSizeDelegate(D2D1DrawInfoUpdateContextImpl* @this, uint* size);
|
||||
|
||||
/// <inheritdoc cref="GetConstantBuffer"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int GetConstantBufferDelegate(D2D1DrawInfoUpdateContextImpl* @this, byte* buffer, uint bufferCount);
|
||||
|
||||
/// <inheritdoc cref="SetConstantBuffer"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int SetConstantBufferDelegate(D2D1DrawInfoUpdateContextImpl* @this, byte* buffer, uint bufferCount);
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="QueryInterfaceDelegate"/> instance wrapping <see cref="QueryInterface"/>.
|
||||
/// </summary>
|
||||
public static readonly QueryInterfaceDelegate QueryInterfaceWrapper = QueryInterface;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="AddRefDelegate"/> instance wrapping <see cref="AddRef"/>.
|
||||
/// </summary>
|
||||
public static readonly AddRefDelegate AddRefWrapper = AddRef;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="ReleaseDelegate"/> instance wrapping <see cref="Release"/>.
|
||||
/// </summary>
|
||||
public static readonly ReleaseDelegate ReleaseWrapper = Release;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="GetConstantBufferSizeDelegate"/> instance wrapping <see cref="GetConstantBufferSize"/>.
|
||||
/// </summary>
|
||||
public static readonly GetConstantBufferSizeDelegate GetConstantBufferSizeWrapper = GetConstantBufferSize;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="GetConstantBufferDelegate"/> instance wrapping <see cref="GetConstantBuffer"/>.
|
||||
/// </summary>
|
||||
public static readonly GetConstantBufferDelegate GetConstantBufferWrapper = GetConstantBuffer;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="SetConstantBufferDelegate"/> instance wrapping <see cref="SetConstantBuffer"/>.
|
||||
/// </summary>
|
||||
public static readonly SetConstantBufferDelegate SetConstantBufferWrapper = SetConstantBuffer;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc cref="D2D1DrawInfoUpdateContextImpl.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
public static int QueryInterface(D2D1DrawInfoUpdateContextImpl* @this, Guid* riid, void** ppvObject)
|
||||
|
||||
-26
@@ -20,32 +20,6 @@ unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
/// </summary>
|
||||
private static class ID2D1DrawInfoUpdateContextInternalMethods
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <inheritdoc cref="Close"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int CloseDelegate(D2D1DrawInfoUpdateContextImpl* @this);
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="QueryInterfaceDelegate"/> instance wrapping <see cref="QueryInterface"/>.
|
||||
/// </summary>
|
||||
public static readonly QueryInterfaceDelegate QueryInterfaceWrapper = QueryInterface;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="AddRefDelegate"/> instance wrapping <see cref="AddRef"/>.
|
||||
/// </summary>
|
||||
public static readonly AddRefDelegate AddRefWrapper = AddRef;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="ReleaseDelegate"/> instance wrapping <see cref="Release"/>.
|
||||
/// </summary>
|
||||
public static readonly ReleaseDelegate ReleaseWrapper = Release;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="CloseDelegate"/> instance wrapping <see cref="Close"/>.
|
||||
/// </summary>
|
||||
public static readonly CloseDelegate CloseWrapper = Close;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc cref="D2D1DrawInfoUpdateContextImpl.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
public static int QueryInterface(D2D1DrawInfoUpdateContextImpl* @this, Guid* riid, void** ppvObject)
|
||||
|
||||
-30
@@ -12,20 +12,6 @@ namespace ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
|
||||
/// </summary>
|
||||
internal unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <inheritdoc cref="QueryInterface"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
private delegate int QueryInterfaceDelegate(D2D1DrawInfoUpdateContextImpl* @this, Guid* riid, void** ppvObject);
|
||||
|
||||
/// <inheritdoc cref="AddRef"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
private delegate uint AddRefDelegate(D2D1DrawInfoUpdateContextImpl* @this);
|
||||
|
||||
/// <inheritdoc cref="Release"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
private delegate uint ReleaseDelegate(D2D1DrawInfoUpdateContextImpl* @this);
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// The shared vtable pointer for <see cref="D2D1DrawInfoUpdateContextImpl"/> instance, for <see cref="ID2D1DrawInfoUpdateContext"/>.
|
||||
/// </summary>
|
||||
@@ -45,34 +31,18 @@ internal unsafe partial struct D2D1DrawInfoUpdateContextImpl
|
||||
void** lpVtbl = (void**)D2D1AssemblyAssociatedMemory.Allocate(sizeof(void*) * 10);
|
||||
|
||||
// ID2D1ResourceTextureManager
|
||||
#if NET6_0_OR_GREATER
|
||||
lpVtbl[0] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, Guid*, void**, int>)&ID2D1DrawInfoUpdateContextMethods.QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContextMethods.AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContextMethods.Release;
|
||||
lpVtbl[3] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, uint*, int>)&ID2D1DrawInfoUpdateContextMethods.GetConstantBufferSize;
|
||||
lpVtbl[4] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, byte*, uint, int>)&ID2D1DrawInfoUpdateContextMethods.GetConstantBuffer;
|
||||
lpVtbl[5] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, byte*, uint, int>)&ID2D1DrawInfoUpdateContextMethods.SetConstantBuffer;
|
||||
#else
|
||||
lpVtbl[0] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextMethods.QueryInterfaceWrapper);
|
||||
lpVtbl[1] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextMethods.AddRefWrapper);
|
||||
lpVtbl[2] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextMethods.ReleaseWrapper);
|
||||
lpVtbl[3] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextMethods.GetConstantBufferSizeWrapper);
|
||||
lpVtbl[4] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextMethods.GetConstantBufferWrapper);
|
||||
lpVtbl[5] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextMethods.SetConstantBufferWrapper);
|
||||
#endif
|
||||
|
||||
// ID2D1ResourceTextureManagerInternal
|
||||
#if NET6_0_OR_GREATER
|
||||
lpVtbl[6 + 0] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, Guid*, void**, int>)&ID2D1DrawInfoUpdateContextInternalMethods.QueryInterface;
|
||||
lpVtbl[6 + 1] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContextInternalMethods.AddRef;
|
||||
lpVtbl[6 + 2] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, uint>)&ID2D1DrawInfoUpdateContextInternalMethods.Release;
|
||||
lpVtbl[6 + 3] = (delegate* unmanaged<D2D1DrawInfoUpdateContextImpl*, int>)&ID2D1DrawInfoUpdateContextInternalMethods.Close;
|
||||
#else
|
||||
lpVtbl[6 + 0] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextInternalMethods.QueryInterfaceWrapper);
|
||||
lpVtbl[6 + 1] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextInternalMethods.AddRefWrapper);
|
||||
lpVtbl[6 + 2] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextInternalMethods.ReleaseWrapper);
|
||||
lpVtbl[6 + 3] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1DrawInfoUpdateContextInternalMethods.CloseWrapper);
|
||||
#endif
|
||||
|
||||
return lpVtbl;
|
||||
}
|
||||
|
||||
-59
@@ -16,65 +16,6 @@ unsafe partial struct D2D1TransformMapperImpl
|
||||
/// </summary>
|
||||
private static class ID2D1TransformMapperMethods
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <inheritdoc cref="ID2D1TransformMapper.MapInputRectsToOutputRect"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int MapInputRectsToOutputRectDelegate(
|
||||
D2D1TransformMapperImpl* @this,
|
||||
ID2D1DrawInfoUpdateContext* d2D1DrawInfoUpdateContext,
|
||||
RECT* inputRects,
|
||||
RECT* inputOpaqueSubRects,
|
||||
uint inputRectCount,
|
||||
RECT* outputRect,
|
||||
RECT* outputOpaqueSubRect);
|
||||
|
||||
/// <inheritdoc cref="ID2D1TransformMapper.MapOutputRectToInputRects"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int MapOutputRectToInputRectsDelegate(
|
||||
D2D1TransformMapperImpl* @this,
|
||||
RECT* outputRect,
|
||||
RECT* inputRects,
|
||||
uint inputRectsCount);
|
||||
|
||||
/// <inheritdoc cref="ID2D1TransformMapper.MapInvalidRect"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int MapInvalidRectDelegate(
|
||||
D2D1TransformMapperImpl* @this,
|
||||
uint inputIndex,
|
||||
RECT invalidInputRect,
|
||||
RECT* invalidOutputRect);
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="QueryInterfaceDelegate"/> instance wrapping <see cref="QueryInterface"/>.
|
||||
/// </summary>
|
||||
public static readonly QueryInterfaceDelegate QueryInterfaceWrapper = QueryInterface;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="AddRefDelegate"/> instance wrapping <see cref="AddRef"/>.
|
||||
/// </summary>
|
||||
public static readonly AddRefDelegate AddRefWrapper = AddRef;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="ReleaseDelegate"/> instance wrapping <see cref="Release"/>.
|
||||
/// </summary>
|
||||
public static readonly ReleaseDelegate ReleaseWrapper = Release;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="MapInputRectsToOutputRectDelegate"/> instance wrapping <see cref="MapInputRectsToOutputRect"/>.
|
||||
/// </summary>
|
||||
public static readonly MapInputRectsToOutputRectDelegate MapInputRectsToOutputRectWrapper = MapInputRectsToOutputRect;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="MapOutputRectToInputRectsDelegate"/> instance wrapping <see cref="MapOutputRectToInputRects"/>.
|
||||
/// </summary>
|
||||
public static readonly MapOutputRectToInputRectsDelegate MapOutputRectToInputRectsWrapper = MapOutputRectToInputRects;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="MapInvalidRectDelegate"/> instance wrapping <see cref="MapInvalidRect"/>.
|
||||
/// </summary>
|
||||
public static readonly MapInvalidRectDelegate MapInvalidRectWrapper = MapInvalidRect;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc cref="D2D1TransformMapperImpl.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
public static int QueryInterface(D2D1TransformMapperImpl* @this, Guid* riid, void** ppvObject)
|
||||
|
||||
-26
@@ -12,32 +12,6 @@ unsafe partial struct D2D1TransformMapperImpl
|
||||
/// </summary>
|
||||
private static class ID2D1TransformMapperInternalMethods
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <inheritdoc cref="ID2D1TransformMapperInternal.GetManagedWrapperHandle"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
public delegate int GetManagedWrapperHandleDelegate(D2D1TransformMapperImpl* @this, void** ppvHandle);
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="QueryInterfaceDelegate"/> instance wrapping <see cref="QueryInterface"/>.
|
||||
/// </summary>
|
||||
public static readonly QueryInterfaceDelegate QueryInterfaceWrapper = QueryInterface;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="AddRefDelegate"/> instance wrapping <see cref="AddRef"/>.
|
||||
/// </summary>
|
||||
public static readonly AddRefDelegate AddRefWrapper = AddRef;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="ReleaseDelegate"/> instance wrapping <see cref="Release"/>.
|
||||
/// </summary>
|
||||
public static readonly ReleaseDelegate ReleaseWrapper = Release;
|
||||
|
||||
/// <summary>
|
||||
/// A cached <see cref="GetManagedWrapperHandleDelegate"/> instance wrapping <see cref="GetManagedWrapperHandle"/>.
|
||||
/// </summary>
|
||||
public static readonly GetManagedWrapperHandleDelegate GetManagedWrapperHandleWrapper = GetManagedWrapperHandle;
|
||||
#endif
|
||||
|
||||
/// <inheritdoc cref="D2D1TransformMapperImpl.QueryInterface"/>
|
||||
[UnmanagedCallersOnly]
|
||||
public static int QueryInterface(D2D1TransformMapperImpl* @this, Guid* riid, void** ppvObject)
|
||||
|
||||
-30
@@ -14,20 +14,6 @@ namespace ComputeSharp.D2D1.Shaders.Interop.Effects.TransformMappers;
|
||||
/// </summary>
|
||||
internal unsafe partial struct D2D1TransformMapperImpl
|
||||
{
|
||||
#if !NET6_0_OR_GREATER
|
||||
/// <inheritdoc cref="IUnknown.QueryInterface"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
private delegate int QueryInterfaceDelegate(D2D1TransformMapperImpl* @this, Guid* riid, void** ppvObject);
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
private delegate uint AddRefDelegate(D2D1TransformMapperImpl* @this);
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release"/>
|
||||
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
|
||||
private delegate uint ReleaseDelegate(D2D1TransformMapperImpl* @this);
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// The shared vtable pointer for <see cref="D2D1TransformMapperImpl"/> instance, for <see cref="ID2D1TransformMapper"/>.
|
||||
/// </summary>
|
||||
@@ -47,34 +33,18 @@ internal unsafe partial struct D2D1TransformMapperImpl
|
||||
void** lpVtbl = (void**)D2D1AssemblyAssociatedMemory.Allocate(sizeof(void*) * 10);
|
||||
|
||||
// ID2D1ResourceTextureManager
|
||||
#if NET6_0_OR_GREATER
|
||||
lpVtbl[0] = (delegate* unmanaged<D2D1TransformMapperImpl*, Guid*, void**, int>)&ID2D1TransformMapperMethods.QueryInterface;
|
||||
lpVtbl[1] = (delegate* unmanaged<D2D1TransformMapperImpl*, uint>)&ID2D1TransformMapperMethods.AddRef;
|
||||
lpVtbl[2] = (delegate* unmanaged<D2D1TransformMapperImpl*, uint>)&ID2D1TransformMapperMethods.Release;
|
||||
lpVtbl[3] = (delegate* unmanaged<D2D1TransformMapperImpl*, ID2D1DrawInfoUpdateContext*, RECT*, RECT*, uint, RECT*, RECT*, int>)&ID2D1TransformMapperMethods.MapInputRectsToOutputRect;
|
||||
lpVtbl[4] = (delegate* unmanaged<D2D1TransformMapperImpl*, RECT*, RECT*, uint, int>)&ID2D1TransformMapperMethods.MapOutputRectToInputRects;
|
||||
lpVtbl[5] = (delegate* unmanaged<D2D1TransformMapperImpl*, uint, RECT, RECT*, int>)&ID2D1TransformMapperMethods.MapInvalidRect;
|
||||
#else
|
||||
lpVtbl[0] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1TransformMapperMethods.QueryInterfaceWrapper);
|
||||
lpVtbl[1] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1TransformMapperMethods.AddRefWrapper);
|
||||
lpVtbl[2] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1TransformMapperMethods.ReleaseWrapper);
|
||||
lpVtbl[3] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1TransformMapperMethods.MapInputRectsToOutputRectWrapper);
|
||||
lpVtbl[4] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1TransformMapperMethods.MapOutputRectToInputRectsWrapper);
|
||||
lpVtbl[5] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1TransformMapperMethods.MapInvalidRectWrapper);
|
||||
#endif
|
||||
|
||||
// ID2D1TransformMapperInternal
|
||||
#if NET6_0_OR_GREATER
|
||||
lpVtbl[6 + 0] = (delegate* unmanaged<D2D1TransformMapperImpl*, Guid*, void**, int>)&ID2D1TransformMapperInternalMethods.QueryInterface;
|
||||
lpVtbl[6 + 1] = (delegate* unmanaged<D2D1TransformMapperImpl*, uint>)&ID2D1TransformMapperInternalMethods.AddRef;
|
||||
lpVtbl[6 + 2] = (delegate* unmanaged<D2D1TransformMapperImpl*, uint>)&ID2D1TransformMapperInternalMethods.Release;
|
||||
lpVtbl[6 + 3] = (delegate* unmanaged<D2D1TransformMapperImpl*, void**, int>)&ID2D1TransformMapperInternalMethods.GetManagedWrapperHandle;
|
||||
#else
|
||||
lpVtbl[6 + 0] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1TransformMapperInternalMethods.QueryInterfaceWrapper);
|
||||
lpVtbl[6 + 1] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1TransformMapperInternalMethods.AddRefWrapper);
|
||||
lpVtbl[6 + 2] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1TransformMapperInternalMethods.ReleaseWrapper);
|
||||
lpVtbl[6 + 3] = (void*)Marshal.GetFunctionPointerForDelegate(ID2D1TransformMapperInternalMethods.GetManagedWrapperHandleWrapper);
|
||||
#endif
|
||||
|
||||
return lpVtbl;
|
||||
}
|
||||
|
||||
@@ -20,15 +20,8 @@ internal unsafe partial struct ID2D1Factory1
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(23)]
|
||||
#if NET6_0_OR_GREATER
|
||||
public HRESULT RegisterEffectFromString([NativeTypeName("const IID &")] Guid* classId, [NativeTypeName("PCWSTR")] ushort* propertyXml, [NativeTypeName("const D2D1_PROPERTY_BINDING *")] D2D1_PROPERTY_BINDING* bindings, [NativeTypeName("UINT32")] uint bindingsCount, [NativeTypeName("const PD2D1_EFFECT_FACTORY")] delegate* unmanaged[Stdcall]<IUnknown**, HRESULT> effectFactory)
|
||||
public HRESULT RegisterEffectFromString([NativeTypeName("const IID &")] Guid* classId, [NativeTypeName("PCWSTR")] ushort* propertyXml, [NativeTypeName("const D2D1_PROPERTY_BINDING *")] D2D1_PROPERTY_BINDING* bindings, [NativeTypeName("UINT32")] uint bindingsCount, [NativeTypeName("const PD2D1_EFFECT_FACTORY")] delegate* unmanaged<IUnknown**, HRESULT> effectFactory)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<ID2D1Factory1*, Guid*, ushort*, D2D1_PROPERTY_BINDING*, uint, delegate* unmanaged[Stdcall]<IUnknown**, HRESULT>, int>)(lpVtbl[23]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
return ((delegate* unmanaged<ID2D1Factory1*, Guid*, ushort*, D2D1_PROPERTY_BINDING*, uint, delegate* unmanaged<IUnknown**, HRESULT>, int>)(lpVtbl[23]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
}
|
||||
#else
|
||||
public HRESULT RegisterEffectFromString([NativeTypeName("const IID &")] Guid* classId, [NativeTypeName("PCWSTR")] ushort* propertyXml, [NativeTypeName("const D2D1_PROPERTY_BINDING *")] D2D1_PROPERTY_BINDING* bindings, [NativeTypeName("UINT32")] uint bindingsCount, [NativeTypeName("const PD2D1_EFFECT_FACTORY")] void* effectFactory)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<ID2D1Factory1*, Guid*, ushort*, D2D1_PROPERTY_BINDING*, uint, void*, int>)(lpVtbl[23]))((ID2D1Factory1*)Unsafe.AsPointer(ref this), classId, propertyXml, bindings, bindingsCount, effectFactory);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -13,16 +13,8 @@ internal unsafe partial struct D2D1_PROPERTY_BINDING
|
||||
public ushort* propertyName;
|
||||
|
||||
[NativeTypeName("PD2D1_PROPERTY_SET_FUNCTION")]
|
||||
#if NET6_0_OR_GREATER
|
||||
public delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, int> setFunction;
|
||||
#else
|
||||
public void* setFunction;
|
||||
#endif
|
||||
|
||||
[NativeTypeName("PD2D1_PROPERTY_GET_FUNCTION")]
|
||||
#if NET6_0_OR_GREATER
|
||||
public delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, int> getFunction;
|
||||
#else
|
||||
public void* getFunction;
|
||||
#endif
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする