mirror of
https://github.com/amerkoleci/Vortice.Win32.git
synced 2026-01-15 00:26:03 +08:00
Improve bindings logic.
This commit is contained in:
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIDevice1 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIDevice.CreateSurface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, uint Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface)
|
||||
public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, Usage Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIDevice1*, SurfaceDescription*, uint, uint, SharedResource*, IDXGISurface**, int>)(lpVtbl[8]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIDevice1*, SurfaceDescription*, uint, Usage, SharedResource*, IDXGISurface**, int>)(lpVtbl[8]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIDevice.QueryResourceResidency" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIDevice2 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIDevice.CreateSurface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, uint Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface)
|
||||
public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, Usage Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIDevice2*, SurfaceDescription*, uint, uint, SharedResource*, IDXGISurface**, int>)(lpVtbl[8]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIDevice2*, SurfaceDescription*, uint, Usage, SharedResource*, IDXGISurface**, int>)(lpVtbl[8]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIDevice.QueryResourceResidency" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIDevice3 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIDevice.CreateSurface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, uint Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface)
|
||||
public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, Usage Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIDevice3*, SurfaceDescription*, uint, uint, SharedResource*, IDXGISurface**, int>)(lpVtbl[8]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIDevice3*, SurfaceDescription*, uint, Usage, SharedResource*, IDXGISurface**, int>)(lpVtbl[8]))((IDXGIDevice3*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIDevice.QueryResourceResidency" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIDevice4 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIDevice.CreateSurface" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, uint Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface)
|
||||
public HResult CreateSurface(SurfaceDescription* pDesc, uint NumSurfaces, Usage Usage, SharedResource* pSharedResource, IDXGISurface** ppSurface)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIDevice4*, SurfaceDescription*, uint, uint, SharedResource*, IDXGISurface**, int>)(lpVtbl[8]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIDevice4*, SurfaceDescription*, uint, Usage, SharedResource*, IDXGISurface**, int>)(lpVtbl[8]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), pDesc, NumSurfaces, Usage, pSharedResource, ppSurface);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIDevice.QueryResourceResidency" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIFactory : INativeGuid
|
||||
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGIFactory::MakeWindowAssociation"]/*' />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags)
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, WindowAssociationFlags Flags)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, IntPtr, uint, int>)(lpVtbl[8]))((IDXGIFactory*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, IntPtr, WindowAssociationFlags, int>)(lpVtbl[8]))((IDXGIFactory*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
}
|
||||
|
||||
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGIFactory::GetWindowAssociation"]/*' />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIFactory1 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIFactory.MakeWindowAssociation" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags)
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, WindowAssociationFlags Flags)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory1*, IntPtr, uint, int>)(lpVtbl[8]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory1*, IntPtr, WindowAssociationFlags, int>)(lpVtbl[8]))((IDXGIFactory1*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIFactory.GetWindowAssociation" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIFactory2 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIFactory.MakeWindowAssociation" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags)
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, WindowAssociationFlags Flags)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory2*, IntPtr, uint, int>)(lpVtbl[8]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory2*, IntPtr, WindowAssociationFlags, int>)(lpVtbl[8]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIFactory.GetWindowAssociation" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIFactory3 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIFactory.MakeWindowAssociation" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags)
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, WindowAssociationFlags Flags)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory3*, IntPtr, uint, int>)(lpVtbl[8]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory3*, IntPtr, WindowAssociationFlags, int>)(lpVtbl[8]))((IDXGIFactory3*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIFactory.GetWindowAssociation" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIFactory4 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIFactory.MakeWindowAssociation" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags)
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, WindowAssociationFlags Flags)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory4*, IntPtr, uint, int>)(lpVtbl[8]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory4*, IntPtr, WindowAssociationFlags, int>)(lpVtbl[8]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIFactory.GetWindowAssociation" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIFactory5 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIFactory.MakeWindowAssociation" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags)
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, WindowAssociationFlags Flags)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory5*, IntPtr, uint, int>)(lpVtbl[8]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory5*, IntPtr, WindowAssociationFlags, int>)(lpVtbl[8]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIFactory.GetWindowAssociation" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIFactory6 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIFactory.MakeWindowAssociation" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags)
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, WindowAssociationFlags Flags)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory6*, IntPtr, uint, int>)(lpVtbl[8]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory6*, IntPtr, WindowAssociationFlags, int>)(lpVtbl[8]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIFactory.GetWindowAssociation" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIFactory7 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIFactory.MakeWindowAssociation" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, uint Flags)
|
||||
public HResult MakeWindowAssociation(IntPtr WindowHandle, WindowAssociationFlags Flags)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory7*, IntPtr, uint, int>)(lpVtbl[8]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIFactory7*, IntPtr, WindowAssociationFlags, int>)(lpVtbl[8]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), WindowHandle, Flags);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIFactory.GetWindowAssociation" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIOutput1 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIOutput.GetDisplayModeList" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc)
|
||||
public HResult GetDisplayModeList(Common.Format EnumFormat, EnumModesFlags Flags, uint* pNumModes, Common.ModeDescription* pDesc)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIOutput1*, Common.Format, uint, uint*, Common.ModeDescription*, int>)(lpVtbl[8]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIOutput1*, Common.Format, EnumModesFlags, uint*, Common.ModeDescription*, int>)(lpVtbl[8]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIOutput.FindClosestMatchingMode" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIOutput2 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIOutput.GetDisplayModeList" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc)
|
||||
public HResult GetDisplayModeList(Common.Format EnumFormat, EnumModesFlags Flags, uint* pNumModes, Common.ModeDescription* pDesc)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIOutput2*, Common.Format, uint, uint*, Common.ModeDescription*, int>)(lpVtbl[8]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIOutput2*, Common.Format, EnumModesFlags, uint*, Common.ModeDescription*, int>)(lpVtbl[8]))((IDXGIOutput2*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIOutput.FindClosestMatchingMode" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIOutput3 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIOutput.GetDisplayModeList" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc)
|
||||
public HResult GetDisplayModeList(Common.Format EnumFormat, EnumModesFlags Flags, uint* pNumModes, Common.ModeDescription* pDesc)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIOutput3*, Common.Format, uint, uint*, Common.ModeDescription*, int>)(lpVtbl[8]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIOutput3*, Common.Format, EnumModesFlags, uint*, Common.ModeDescription*, int>)(lpVtbl[8]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIOutput.FindClosestMatchingMode" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIOutput4 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIOutput.GetDisplayModeList" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc)
|
||||
public HResult GetDisplayModeList(Common.Format EnumFormat, EnumModesFlags Flags, uint* pNumModes, Common.ModeDescription* pDesc)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIOutput4*, Common.Format, uint, uint*, Common.ModeDescription*, int>)(lpVtbl[8]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIOutput4*, Common.Format, EnumModesFlags, uint*, Common.ModeDescription*, int>)(lpVtbl[8]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIOutput.FindClosestMatchingMode" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIOutput5 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIOutput.GetDisplayModeList" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc)
|
||||
public HResult GetDisplayModeList(Common.Format EnumFormat, EnumModesFlags Flags, uint* pNumModes, Common.ModeDescription* pDesc)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIOutput5*, Common.Format, uint, uint*, Common.ModeDescription*, int>)(lpVtbl[8]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIOutput5*, Common.Format, EnumModesFlags, uint*, Common.ModeDescription*, int>)(lpVtbl[8]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIOutput.FindClosestMatchingMode" />
|
||||
|
||||
@@ -117,9 +117,9 @@ public unsafe partial struct IDXGIOutput6 : INativeGuid
|
||||
/// <inheritdoc cref="IDXGIOutput.GetDisplayModeList" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[VtblIndex(8)]
|
||||
public HResult GetDisplayModeList(Common.Format EnumFormat, uint Flags, uint* pNumModes, Common.ModeDescription* pDesc)
|
||||
public HResult GetDisplayModeList(Common.Format EnumFormat, EnumModesFlags Flags, uint* pNumModes, Common.ModeDescription* pDesc)
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIOutput6*, Common.Format, uint, uint*, Common.ModeDescription*, int>)(lpVtbl[8]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc);
|
||||
return ((delegate* unmanaged[Stdcall]<IDXGIOutput6*, Common.Format, EnumModesFlags, uint*, Common.ModeDescription*, int>)(lpVtbl[8]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), EnumFormat, Flags, pNumModes, pDesc);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="IDXGIOutput.FindClosestMatchingMode" />
|
||||
|
||||
Reference in New Issue
Block a user