mirror of
https://github.com/amerkoleci/Vortice.Win32.git
synced 2026-01-15 00:26:03 +08:00
Update generation to 48.0.19-preview metadata.
This commit is contained in:
@@ -53,7 +53,11 @@ public unsafe partial struct IDXGIFactory : IDXGIFactory.Interface, INativeGuid
|
||||
[VtblIndex(0)]
|
||||
public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject)
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return ((delegate* unmanaged<IDXGIFactory*, Guid*, void**, int>)(lpVtbl[0]))((IDXGIFactory*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
#else
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, Guid*, void**, int>)(lpVtbl[0]))((IDXGIFactory*)Unsafe.AsPointer(ref this), riid, ppvObject);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.AddRef" />
|
||||
@@ -62,7 +66,11 @@ public unsafe partial struct IDXGIFactory : IDXGIFactory.Interface, INativeGuid
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint AddRef()
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return ((delegate* unmanaged<IDXGIFactory*, uint>)(lpVtbl[1]))((IDXGIFactory*)Unsafe.AsPointer(ref this));
|
||||
#else
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, uint>)(lpVtbl[1]))((IDXGIFactory*)Unsafe.AsPointer(ref this));
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IUnknown.Release" />
|
||||
@@ -71,7 +79,11 @@ public unsafe partial struct IDXGIFactory : IDXGIFactory.Interface, INativeGuid
|
||||
[return: NativeTypeName("ULONG")]
|
||||
public uint Release()
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return ((delegate* unmanaged<IDXGIFactory*, uint>)(lpVtbl[2]))((IDXGIFactory*)Unsafe.AsPointer(ref this));
|
||||
#else
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, uint>)(lpVtbl[2]))((IDXGIFactory*)Unsafe.AsPointer(ref this));
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIObject.SetPrivateData" />
|
||||
@@ -79,7 +91,11 @@ public unsafe partial struct IDXGIFactory : IDXGIFactory.Interface, INativeGuid
|
||||
[VtblIndex(3)]
|
||||
public HResult SetPrivateData(Guid* Name, uint DataSize, void* pData)
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return ((delegate* unmanaged<IDXGIFactory*, Guid*, uint, void*, int>)(lpVtbl[3]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Name, DataSize, pData);
|
||||
#else
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, Guid*, uint, void*, int>)(lpVtbl[3]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Name, DataSize, pData);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIObject.SetPrivateDataInterface" />
|
||||
@@ -87,7 +103,11 @@ public unsafe partial struct IDXGIFactory : IDXGIFactory.Interface, INativeGuid
|
||||
[VtblIndex(4)]
|
||||
public HResult SetPrivateDataInterface(Guid* Name, IUnknown* pUnknown)
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return ((delegate* unmanaged<IDXGIFactory*, Guid*, IUnknown*, int>)(lpVtbl[4]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Name, pUnknown);
|
||||
#else
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, Guid*, IUnknown*, int>)(lpVtbl[4]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Name, pUnknown);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIObject.GetPrivateData" />
|
||||
@@ -95,7 +115,11 @@ public unsafe partial struct IDXGIFactory : IDXGIFactory.Interface, INativeGuid
|
||||
[VtblIndex(5)]
|
||||
public HResult GetPrivateData(Guid* Name, uint* pDataSize, void* pData)
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return ((delegate* unmanaged<IDXGIFactory*, Guid*, uint*, void*, int>)(lpVtbl[5]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Name, pDataSize, pData);
|
||||
#else
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, Guid*, uint*, void*, int>)(lpVtbl[5]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Name, pDataSize, pData);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIObject.GetParent" />
|
||||
@@ -103,7 +127,11 @@ public unsafe partial struct IDXGIFactory : IDXGIFactory.Interface, INativeGuid
|
||||
[VtblIndex(6)]
|
||||
public HResult GetParent(Guid* riid, void** ppParent)
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return ((delegate* unmanaged<IDXGIFactory*, Guid*, void**, int>)(lpVtbl[6]))((IDXGIFactory*)Unsafe.AsPointer(ref this), riid, ppParent);
|
||||
#else
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, Guid*, void**, int>)(lpVtbl[6]))((IDXGIFactory*)Unsafe.AsPointer(ref this), riid, ppParent);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGIFactory::EnumAdapters"]/*' />
|
||||
@@ -111,23 +139,35 @@ public unsafe partial struct IDXGIFactory : IDXGIFactory.Interface, INativeGuid
|
||||
[VtblIndex(7)]
|
||||
public HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter)
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return ((delegate* unmanaged<IDXGIFactory*, uint, IDXGIAdapter**, int>)(lpVtbl[7]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Adapter, ppAdapter);
|
||||
#else
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, uint, IDXGIAdapter**, int>)(lpVtbl[7]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Adapter, ppAdapter);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGIFactory::MakeWindowAssociation"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, WindowAssociationFlags Flags)
|
||||
public HResult MakeWindowAssociation(nint WindowHandle, WindowAssociationFlags Flags)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, IntPtr, WindowAssociationFlags, int>)(lpVtbl[8]))((IDXGIFactory*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
#if NET6_0_OR_GREATER
|
||||
return ((delegate* unmanaged<IDXGIFactory*, nint, WindowAssociationFlags, int>)(lpVtbl[8]))((IDXGIFactory*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
#else
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, nint, WindowAssociationFlags, int>)(lpVtbl[8]))((IDXGIFactory*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGIFactory::GetWindowAssociation"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(9)]
|
||||
public HResult GetWindowAssociation(IntPtr* pWindowHandle)
|
||||
public HResult GetWindowAssociation(nint* pWindowHandle)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, IntPtr*, int>)(lpVtbl[9]))((IDXGIFactory*)Unsafe.AsPointer(ref this), pWindowHandle);
|
||||
#if NET6_0_OR_GREATER
|
||||
return ((delegate* unmanaged<IDXGIFactory*, nint*, int>)(lpVtbl[9]))((IDXGIFactory*)Unsafe.AsPointer(ref this), pWindowHandle);
|
||||
#else
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, nint*, int>)(lpVtbl[9]))((IDXGIFactory*)Unsafe.AsPointer(ref this), pWindowHandle);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGIFactory::CreateSwapChain"]/*' />
|
||||
@@ -135,15 +175,23 @@ public unsafe partial struct IDXGIFactory : IDXGIFactory.Interface, INativeGuid
|
||||
[VtblIndex(10)]
|
||||
public HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain)
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
return ((delegate* unmanaged<IDXGIFactory*, IUnknown*, SwapChainDescription*, IDXGISwapChain**, int>)(lpVtbl[10]))((IDXGIFactory*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain);
|
||||
#else
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, IUnknown*, SwapChainDescription*, IDXGISwapChain**, int>)(lpVtbl[10]))((IDXGIFactory*)Unsafe.AsPointer(ref this), pDevice, pDesc, ppSwapChain);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGIFactory::CreateSoftwareAdapter"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(11)]
|
||||
public HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter)
|
||||
public HResult CreateSoftwareAdapter(nint Module, IDXGIAdapter** ppAdapter)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, IntPtr, IDXGIAdapter**, int>)(lpVtbl[11]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Module, ppAdapter);
|
||||
#if NET6_0_OR_GREATER
|
||||
return ((delegate* unmanaged<IDXGIFactory*, nint, IDXGIAdapter**, int>)(lpVtbl[11]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Module, ppAdapter);
|
||||
#else
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, nint, IDXGIAdapter**, int>)(lpVtbl[11]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Module, ppAdapter);
|
||||
#endif
|
||||
}
|
||||
|
||||
public interface Interface : IDXGIObject.Interface
|
||||
@@ -152,16 +200,16 @@ public unsafe partial struct IDXGIFactory : IDXGIFactory.Interface, INativeGuid
|
||||
HResult EnumAdapters(uint Adapter, IDXGIAdapter** ppAdapter);
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult MakeWindowAssociation(IntPtr WindowHandle, WindowAssociationFlags Flags);
|
||||
HResult MakeWindowAssociation(nint WindowHandle, WindowAssociationFlags Flags);
|
||||
|
||||
[VtblIndex(9)]
|
||||
HResult GetWindowAssociation(IntPtr* pWindowHandle);
|
||||
HResult GetWindowAssociation(nint* pWindowHandle);
|
||||
|
||||
[VtblIndex(10)]
|
||||
HResult CreateSwapChain(IUnknown* pDevice, SwapChainDescription* pDesc, IDXGISwapChain** ppSwapChain);
|
||||
|
||||
[VtblIndex(11)]
|
||||
HResult CreateSoftwareAdapter(IntPtr Module, IDXGIAdapter** ppAdapter);
|
||||
HResult CreateSoftwareAdapter(nint Module, IDXGIAdapter** ppAdapter);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user