Add missing [UnmanagedFunctionPointer] delegate attributes

このコミットが含まれているのは:
Sergio Pedri committed 2022-02-04 01:18:41 +01:00
1 親 9e9536486d
コミット 05a0145887
4ファイル変更
+32

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

+14
ファイルの表示
@@ -48,45 +48,59 @@ internal static unsafe partial class IWICStreamExtensions
{
#if !NET6_0_OR_GREATER
/// <inheritdoc cref="QueryInterface"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate int QueryInterfaceDelegate(IBufferWriterWrapper* @this, Guid* riid, void** ppvObject);
/// <inheritdoc cref="AddRef"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate uint AddRefDelegate(IBufferWriterWrapper* @this);
/// <inheritdoc cref="Release"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate uint ReleaseDelegate(IBufferWriterWrapper* @this);
/// <inheritdoc cref="Read"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT ReadDelegate(IBufferWriterWrapper* @this, void* pv, uint cb, uint* pcbRead);
/// <inheritdoc cref="Write"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT WriteDelegate(IBufferWriterWrapper* @this, void* pv, uint cb, uint* pcbWritten);
/// <inheritdoc cref="Seek"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT SeekDelegate(IBufferWriterWrapper* @this, LARGE_INTEGER dlibMove, uint dwOrigin, ULARGE_INTEGER* plibNewPosition);
/// <inheritdoc cref="SetSize"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT SetSizeDelegate(IBufferWriterWrapper* @this, ULARGE_INTEGER libNewSize);
/// <inheritdoc cref="CopyTo"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT CopyToDelegate(IBufferWriterWrapper* @this, IStream* pstm, ULARGE_INTEGER cb, ULARGE_INTEGER* pcbRead, ULARGE_INTEGER* pcbWritten);
/// <inheritdoc cref="Commit"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT CommitDelegate(IBufferWriterWrapper* @this, uint grfCommitFlags);
/// <inheritdoc cref="Revert"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT RevertDelegate(IBufferWriterWrapper* @this);
/// <inheritdoc cref="LockRegion"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT LockRegionDelegate(IBufferWriterWrapper* @this, ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, uint dwLockType);
/// <inheritdoc cref="UnlockRegion"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT UnlockRegionDelegate(IBufferWriterWrapper* @this, ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, uint dwLockType);
/// <inheritdoc cref="Stat"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT StatDelegate(IBufferWriterWrapper* @this, STATSTG* pstatstg, uint grfStatFlag);
/// <inheritdoc cref="Clone"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT CloneDelegate(IBufferWriterWrapper* @this, IStream** ppstm);
/// <summary>
+14
ファイルの表示
@@ -51,45 +51,59 @@ internal static unsafe partial class IWICStreamExtensions
{
#if !NET6_0_OR_GREATER
/// <inheritdoc cref="QueryInterface"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate int QueryInterfaceDelegate(IStreamWrapper* @this, Guid* riid, void** ppvObject);
/// <inheritdoc cref="AddRef"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate uint AddRefDelegate(IStreamWrapper* @this);
/// <inheritdoc cref="Release"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate uint ReleaseDelegate(IStreamWrapper* @this);
/// <inheritdoc cref="Read"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT ReadDelegate(IStreamWrapper* @this, void* pv, uint cb, uint* pcbRead);
/// <inheritdoc cref="Write"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT WriteDelegate(IStreamWrapper* @this, void* pv, uint cb, uint* pcbWritten);
/// <inheritdoc cref="Seek"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT SeekDelegate(IStreamWrapper* @this, LARGE_INTEGER dlibMove, uint dwOrigin, ULARGE_INTEGER* plibNewPosition);
/// <inheritdoc cref="SetSize"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT SetSizeDelegate(IStreamWrapper* @this, ULARGE_INTEGER libNewSize);
/// <inheritdoc cref="CopyTo"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT CopyToDelegate(IStreamWrapper* @this, IStream* pstm, ULARGE_INTEGER cb, ULARGE_INTEGER* pcbRead, ULARGE_INTEGER* pcbWritten);
/// <inheritdoc cref="Commit"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT CommitDelegate(IStreamWrapper* @this, uint grfCommitFlags);
/// <inheritdoc cref="Revert"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT RevertDelegate(IStreamWrapper* @this);
/// <inheritdoc cref="LockRegion"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT LockRegionDelegate(IStreamWrapper* @this, ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, uint dwLockType);
/// <inheritdoc cref="UnlockRegion"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT UnlockRegionDelegate(IStreamWrapper* @this, ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, uint dwLockType);
/// <inheritdoc cref="Stat"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT StatDelegate(IStreamWrapper* @this, STATSTG* pstatstg, uint grfStatFlag);
/// <inheritdoc cref="Clone"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate HRESULT CloneDelegate(IStreamWrapper* @this, IStream** ppstm);
/// <summary>
+1
ファイルの表示
@@ -27,6 +27,7 @@ unsafe partial class GraphicsDevice
/// </summary>
/// <param name="pContext">The input context.</param>
/// <param name="timedOut">Whether the wait has timed out.</param>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void WaitForSingleObjectCallbackDelegate(void* pContext, byte timedOut);
/// <summary>
+3
ファイルの表示
@@ -101,12 +101,15 @@ internal static partial class DeviceHelper
{
#if !NET6_0_OR_GREATER
/// <inheritdoc cref="Release"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate uint ReleaseDelegate(IDXGIFactory4As6Backcompat* @this);
/// <inheritdoc cref="EnumWarpAdapter"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate int EnumWarpAdapterDelegate(IDXGIFactory4As6Backcompat* @this, Guid* riid, void** ppvAdapter);
/// <inheritdoc cref="EnumAdapterByGpuPreference"/>
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate int EnumAdapterByGpuPreferenceDelegate(IDXGIFactory4As6Backcompat* @this, uint Adapter, DXGI_GPU_PREFERENCE GpuPreference, Guid* riid, void** ppvAdapter);
/// <summary>