Remove some unnecessary casts

このコミットが含まれているのは:
Sergio Pedri committed 2022-08-15 15:01:16 +02:00
1 親 73dc42c36c
コミット 34837b8f6f
2ファイル変更
+2 -6

検索条件に一致するファイルはありません

-4
ファイルの表示
@@ -100,17 +100,13 @@ public static unsafe class D2D1PixelShaderEffect
D2D1_PROPERTY_BINDING d2D1PropertyBinding;
d2D1PropertyBinding.propertyName = (ushort*)pPropertyName;
d2D1PropertyBinding.getFunction =
(delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, uint*, HRESULT>)
#if NET6_0_OR_GREATER
(delegate* unmanaged<IUnknown*, byte*, uint, uint*, int>)
&PixelShaderEffect.GetConstantBuffer;
#else
(void*)Marshal.GetFunctionPointerForDelegate(PixelShaderEffect.GetConstantBufferWrapper);
#endif
d2D1PropertyBinding.setFunction =
(delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, HRESULT>)
#if NET6_0_OR_GREATER
(delegate* unmanaged<IUnknown*, byte*, uint, int>)
&PixelShaderEffect.SetConstantBuffer;
#else
(void*)Marshal.GetFunctionPointerForDelegate(PixelShaderEffect.SetConstantBufferWrapper);
+2 -2
ファイルの表示
@@ -18,14 +18,14 @@ namespace TerraFX.Interop.DirectX
[NativeTypeName("PD2D1_PROPERTY_SET_FUNCTION")]
#if NET6_0_OR_GREATER
public delegate* unmanaged[Stdcall]<IUnknown*, byte*, uint, HRESULT> setFunction;
public delegate* unmanaged<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*, HRESULT> getFunction;
public delegate* unmanaged<IUnknown*, byte*, uint, uint*, int> getFunction;
#else
public void* getFunction;
#endif