Remove some unnecessary casts
このコミットが含まれているのは:
1 親
73dc42c36c
コミット
34837b8f6f
2ファイル変更
+2
-6
検索条件に一致するファイルはありません
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする