Workaround for field marshalling on UWP

See https://github.com/dotnet/runtime/issues/37295
このコミットが含まれているのは:
Sergio Pedri committed 2022-08-15 15:01:15 +02:00
1 親 9115866c53
コミット 73dc42c36c
1ファイル変更
+10
@@ -5,7 +5,9 @@
#pragma warning disable CS0649
#if NET6_0_OR_GREATER
using TerraFX.Interop.Windows;
#endif
namespace TerraFX.Interop.DirectX
{
@@ -15,9 +17,17 @@ namespace TerraFX.Interop.DirectX
public ushort* propertyName;
[NativeTypeName("PD2D1_PROPERTY_SET_FUNCTION")]
#if NET6_0_OR_GREATER
public delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, HRESULT> setFunction;
#else
public void* setFunction;
#endif
[NativeTypeName("PD2D1_PROPERTY_GET_FUNCTION")]
#if NET6_0_OR_GREATER
public delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, HRESULT> getFunction;
#else
public void* getFunction;
#endif
}
}