Generator: Correct vtable for some WIC types.

This commit is contained in:
Amer Koleci
2022-12-02 09:11:08 +01:00
parent 61295b00a2
commit a67fab7cae
553 changed files with 970 additions and 410 deletions

View File

@@ -129,6 +129,7 @@ public unsafe partial struct IDXGIAdapter : IDXGIAdapter.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIAdapter*, Guid*, LargeInteger*, int>)(lpVtbl[9]))((IDXGIAdapter*)Unsafe.AsPointer(ref this), InterfaceName, pUMDVersion);
}
public interface Interface : IDXGIObject.Interface
{
[VtblIndex(7)]

View File

@@ -137,6 +137,7 @@ public unsafe partial struct IDXGIAdapter1 : IDXGIAdapter1.Interface, INativeGui
{
return ((delegate* unmanaged[Stdcall]<IDXGIAdapter1*, AdapterDescription1*, int>)(lpVtbl[10]))((IDXGIAdapter1*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : IDXGIAdapter.Interface
{
[VtblIndex(10)]

View File

@@ -145,6 +145,7 @@ public unsafe partial struct IDXGIAdapter2 : IDXGIAdapter2.Interface, INativeGui
{
return ((delegate* unmanaged[Stdcall]<IDXGIAdapter2*, AdapterDescription2*, int>)(lpVtbl[11]))((IDXGIAdapter2*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : IDXGIAdapter1.Interface
{
[VtblIndex(11)]

View File

@@ -193,6 +193,7 @@ public unsafe partial struct IDXGIAdapter3 : IDXGIAdapter3.Interface, INativeGui
{
((delegate* unmanaged[Stdcall]<IDXGIAdapter3*, uint, void>)(lpVtbl[17]))((IDXGIAdapter3*)Unsafe.AsPointer(ref this), dwCookie);
}
public interface Interface : IDXGIAdapter2.Interface
{
[VtblIndex(12)]

View File

@@ -201,6 +201,7 @@ public unsafe partial struct IDXGIAdapter4 : IDXGIAdapter4.Interface, INativeGui
{
return ((delegate* unmanaged[Stdcall]<IDXGIAdapter4*, AdapterDescription3*, int>)(lpVtbl[18]))((IDXGIAdapter4*)Unsafe.AsPointer(ref this), pDesc);
}
public interface Interface : IDXGIAdapter3.Interface
{
[VtblIndex(18)]

View File

@@ -81,6 +81,7 @@ public unsafe partial struct IDXGIDebug : IDXGIDebug.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIDebug*, Guid, ReportLiveObjectFlags, int>)(lpVtbl[3]))((IDXGIDebug*)Unsafe.AsPointer(ref this), apiid, flags);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]

View File

@@ -105,6 +105,7 @@ public unsafe partial struct IDXGIDebug1 : IDXGIDebug1.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIDebug1*, Bool32>)(lpVtbl[6]))((IDXGIDebug1*)Unsafe.AsPointer(ref this));
}
public interface Interface : IDXGIDebug.Interface
{
[VtblIndex(4)]

View File

@@ -145,6 +145,7 @@ public unsafe partial struct IDXGIDecodeSwapChain : IDXGIDecodeSwapChain.Interfa
{
return ((delegate* unmanaged[Stdcall]<IDXGIDecodeSwapChain*, MultiplaneOverlayYcbcrFlags>)(lpVtbl[11]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this));
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]

View File

@@ -145,6 +145,7 @@ public unsafe partial struct IDXGIDevice : IDXGIDevice.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIDevice*, int*, int>)(lpVtbl[11]))((IDXGIDevice*)Unsafe.AsPointer(ref this), pPriority);
}
public interface Interface : IDXGIObject.Interface
{
[VtblIndex(7)]

View File

@@ -161,6 +161,7 @@ public unsafe partial struct IDXGIDevice1 : IDXGIDevice1.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIDevice1*, uint*, int>)(lpVtbl[13]))((IDXGIDevice1*)Unsafe.AsPointer(ref this), pMaxLatency);
}
public interface Interface : IDXGIDevice.Interface
{
[VtblIndex(12)]

View File

@@ -185,6 +185,7 @@ public unsafe partial struct IDXGIDevice2 : IDXGIDevice2.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIDevice2*, Handle, int>)(lpVtbl[16]))((IDXGIDevice2*)Unsafe.AsPointer(ref this), hEvent);
}
public interface Interface : IDXGIDevice1.Interface
{
[VtblIndex(14)]

View File

@@ -193,6 +193,7 @@ public unsafe partial struct IDXGIDevice3 : IDXGIDevice3.Interface, INativeGuid
{
((delegate* unmanaged[Stdcall]<IDXGIDevice3*, void>)(lpVtbl[17]))((IDXGIDevice3*)Unsafe.AsPointer(ref this));
}
public interface Interface : IDXGIDevice2.Interface
{
[VtblIndex(17)]

View File

@@ -209,6 +209,7 @@ public unsafe partial struct IDXGIDevice4 : IDXGIDevice4.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIDevice4*, uint, IDXGIResource**, ReclaimResourceResults*, int>)(lpVtbl[19]))((IDXGIDevice4*)Unsafe.AsPointer(ref this), NumResources, ppResources, pResults);
}
public interface Interface : IDXGIDevice3.Interface
{
[VtblIndex(18)]

View File

@@ -113,6 +113,7 @@ public unsafe partial struct IDXGIDeviceSubObject : IDXGIDeviceSubObject.Interfa
{
return ((delegate* unmanaged[Stdcall]<IDXGIDeviceSubObject*, Guid*, void**, int>)(lpVtbl[7]))((IDXGIDeviceSubObject*)Unsafe.AsPointer(ref this), riid, ppDevice);
}
public interface Interface : IDXGIObject.Interface
{
[VtblIndex(7)]

View File

@@ -89,6 +89,7 @@ public unsafe partial struct IDXGIDisplayControl : IDXGIDisplayControl.Interface
{
((delegate* unmanaged[Stdcall]<IDXGIDisplayControl*, Bool32, void>)(lpVtbl[4]))((IDXGIDisplayControl*)Unsafe.AsPointer(ref this), enabled);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]

View File

@@ -145,6 +145,7 @@ public unsafe partial struct IDXGIFactory : IDXGIFactory.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIFactory*, IntPtr, IDXGIAdapter**, int>)(lpVtbl[11]))((IDXGIFactory*)Unsafe.AsPointer(ref this), Module, ppAdapter);
}
public interface Interface : IDXGIObject.Interface
{
[VtblIndex(7)]

View File

@@ -161,6 +161,7 @@ public unsafe partial struct IDXGIFactory1 : IDXGIFactory1.Interface, INativeGui
{
return ((delegate* unmanaged[Stdcall]<IDXGIFactory1*, Bool32>)(lpVtbl[13]))((IDXGIFactory1*)Unsafe.AsPointer(ref this));
}
public interface Interface : IDXGIFactory.Interface
{
[VtblIndex(12)]

View File

@@ -249,6 +249,7 @@ public unsafe partial struct IDXGIFactory2 : IDXGIFactory2.Interface, INativeGui
{
return ((delegate* unmanaged[Stdcall]<IDXGIFactory2*, IUnknown*, SwapChainDescription1*, IDXGIOutput*, IDXGISwapChain1**, int>)(lpVtbl[24]))((IDXGIFactory2*)Unsafe.AsPointer(ref this), pDevice, pDesc, pRestrictToOutput, ppSwapChain);
}
public interface Interface : IDXGIFactory1.Interface
{
[VtblIndex(14)]

View File

@@ -257,6 +257,7 @@ public unsafe partial struct IDXGIFactory3 : IDXGIFactory3.Interface, INativeGui
{
return ((delegate* unmanaged[Stdcall]<IDXGIFactory3*, uint>)(lpVtbl[25]))((IDXGIFactory3*)Unsafe.AsPointer(ref this));
}
public interface Interface : IDXGIFactory2.Interface
{
[VtblIndex(25)]

View File

@@ -273,6 +273,7 @@ public unsafe partial struct IDXGIFactory4 : IDXGIFactory4.Interface, INativeGui
{
return ((delegate* unmanaged[Stdcall]<IDXGIFactory4*, Guid*, void**, int>)(lpVtbl[27]))((IDXGIFactory4*)Unsafe.AsPointer(ref this), riid, ppvAdapter);
}
public interface Interface : IDXGIFactory3.Interface
{
[VtblIndex(26)]

View File

@@ -281,6 +281,7 @@ public unsafe partial struct IDXGIFactory5 : IDXGIFactory5.Interface, INativeGui
{
return ((delegate* unmanaged[Stdcall]<IDXGIFactory5*, Feature, void*, int, int>)(lpVtbl[28]))((IDXGIFactory5*)Unsafe.AsPointer(ref this), Feature, pFeatureSupportData, FeatureSupportDataSize);
}
public interface Interface : IDXGIFactory4.Interface
{
[VtblIndex(28)]

View File

@@ -289,6 +289,7 @@ public unsafe partial struct IDXGIFactory6 : IDXGIFactory6.Interface, INativeGui
{
return ((delegate* unmanaged[Stdcall]<IDXGIFactory6*, uint, GpuPreference, Guid*, void**, int>)(lpVtbl[29]))((IDXGIFactory6*)Unsafe.AsPointer(ref this), Adapter, GpuPreference, riid, ppvAdapter);
}
public interface Interface : IDXGIFactory5.Interface
{
[VtblIndex(29)]

View File

@@ -305,6 +305,7 @@ public unsafe partial struct IDXGIFactory7 : IDXGIFactory7.Interface, INativeGui
{
return ((delegate* unmanaged[Stdcall]<IDXGIFactory7*, uint, int>)(lpVtbl[31]))((IDXGIFactory7*)Unsafe.AsPointer(ref this), dwCookie);
}
public interface Interface : IDXGIFactory6.Interface
{
[VtblIndex(30)]

View File

@@ -89,6 +89,7 @@ public unsafe partial struct IDXGIFactoryMedia : IDXGIFactoryMedia.Interface, IN
{
return ((delegate* unmanaged[Stdcall]<IDXGIFactoryMedia*, IUnknown*, Handle, DecodeSwapChainDescription*, IDXGIResource*, IDXGIOutput*, IDXGIDecodeSwapChain**, int>)(lpVtbl[4]))((IDXGIFactoryMedia*)Unsafe.AsPointer(ref this), pDevice, hSurface, pDesc, pYuvDecodeBuffers, pRestrictToOutput, ppSwapChain);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]

View File

@@ -369,6 +369,7 @@ public unsafe partial struct IDXGIInfoQueue : IDXGIInfoQueue.Interface, INativeG
{
return ((delegate* unmanaged[Stdcall]<IDXGIInfoQueue*, Guid, Bool32>)(lpVtbl[39]))((IDXGIInfoQueue*)Unsafe.AsPointer(ref this), Producer);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]

View File

@@ -129,6 +129,7 @@ public unsafe partial struct IDXGIKeyedMutex : IDXGIKeyedMutex.Interface, INativ
{
return ((delegate* unmanaged[Stdcall]<IDXGIKeyedMutex*, ulong, int>)(lpVtbl[9]))((IDXGIKeyedMutex*)Unsafe.AsPointer(ref this), Key);
}
public interface Interface : IDXGIDeviceSubObject.Interface
{
[VtblIndex(8)]

View File

@@ -105,6 +105,7 @@ public unsafe partial struct IDXGIObject : IDXGIObject.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIObject*, Guid*, void**, int>)(lpVtbl[6]))((IDXGIObject*)Unsafe.AsPointer(ref this), riid, ppParent);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]

View File

@@ -201,6 +201,7 @@ public unsafe partial struct IDXGIOutput : IDXGIOutput.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIOutput*, FrameStatistics*, int>)(lpVtbl[18]))((IDXGIOutput*)Unsafe.AsPointer(ref this), pStats);
}
public interface Interface : IDXGIObject.Interface
{
[VtblIndex(7)]

View File

@@ -233,6 +233,7 @@ public unsafe partial struct IDXGIOutput1 : IDXGIOutput1.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIOutput1*, IUnknown*, IDXGIOutputDuplication**, int>)(lpVtbl[22]))((IDXGIOutput1*)Unsafe.AsPointer(ref this), pDevice, ppOutputDuplication);
}
public interface Interface : IDXGIOutput.Interface
{
[VtblIndex(19)]

View File

@@ -241,6 +241,7 @@ public unsafe partial struct IDXGIOutput2 : IDXGIOutput2.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIOutput2*, Bool32>)(lpVtbl[23]))((IDXGIOutput2*)Unsafe.AsPointer(ref this));
}
public interface Interface : IDXGIOutput1.Interface
{
[VtblIndex(23)]

View File

@@ -249,6 +249,7 @@ public unsafe partial struct IDXGIOutput3 : IDXGIOutput3.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIOutput3*, Common.Format, IUnknown*, uint*, int>)(lpVtbl[24]))((IDXGIOutput3*)Unsafe.AsPointer(ref this), EnumFormat, pConcernedDevice, pFlags);
}
public interface Interface : IDXGIOutput2.Interface
{
[VtblIndex(24)]

View File

@@ -257,6 +257,7 @@ public unsafe partial struct IDXGIOutput4 : IDXGIOutput4.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIOutput4*, Common.Format, Common.ColorSpaceType, IUnknown*, uint*, int>)(lpVtbl[25]))((IDXGIOutput4*)Unsafe.AsPointer(ref this), Format, ColorSpace, pConcernedDevice, pFlags);
}
public interface Interface : IDXGIOutput3.Interface
{
[VtblIndex(25)]

View File

@@ -265,6 +265,7 @@ public unsafe partial struct IDXGIOutput5 : IDXGIOutput5.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIOutput5*, IUnknown*, uint, uint, Common.Format*, IDXGIOutputDuplication**, int>)(lpVtbl[26]))((IDXGIOutput5*)Unsafe.AsPointer(ref this), pDevice, Flags, SupportedFormatsCount, pSupportedFormats, ppOutputDuplication);
}
public interface Interface : IDXGIOutput4.Interface
{
[VtblIndex(26)]

View File

@@ -281,6 +281,7 @@ public unsafe partial struct IDXGIOutput6 : IDXGIOutput6.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGIOutput6*, uint*, int>)(lpVtbl[28]))((IDXGIOutput6*)Unsafe.AsPointer(ref this), pFlags);
}
public interface Interface : IDXGIOutput5.Interface
{
[VtblIndex(27)]

View File

@@ -169,6 +169,7 @@ public unsafe partial struct IDXGIOutputDuplication : IDXGIOutputDuplication.Int
{
return ((delegate* unmanaged[Stdcall]<IDXGIOutputDuplication*, int>)(lpVtbl[14]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this));
}
public interface Interface : IDXGIObject.Interface
{
[VtblIndex(7)]

View File

@@ -145,6 +145,7 @@ public unsafe partial struct IDXGIResource : IDXGIResource.Interface, INativeGui
{
return ((delegate* unmanaged[Stdcall]<IDXGIResource*, uint*, int>)(lpVtbl[11]))((IDXGIResource*)Unsafe.AsPointer(ref this), pEvictionPriority);
}
public interface Interface : IDXGIDeviceSubObject.Interface
{
[VtblIndex(8)]

View File

@@ -161,6 +161,7 @@ public unsafe partial struct IDXGIResource1 : IDXGIResource1.Interface, INativeG
{
return ((delegate* unmanaged[Stdcall]<IDXGIResource1*, Security.SECURITY_ATTRIBUTES*, uint, ushort*, Handle*, int>)(lpVtbl[13]))((IDXGIResource1*)Unsafe.AsPointer(ref this), pAttributes, dwAccess, lpName, pHandle);
}
public interface Interface : IDXGIResource.Interface
{
[VtblIndex(12)]

View File

@@ -137,6 +137,7 @@ public unsafe partial struct IDXGISurface : IDXGISurface.Interface, INativeGuid
{
return ((delegate* unmanaged[Stdcall]<IDXGISurface*, int>)(lpVtbl[10]))((IDXGISurface*)Unsafe.AsPointer(ref this));
}
public interface Interface : IDXGIDeviceSubObject.Interface
{
[VtblIndex(8)]

View File

@@ -153,6 +153,7 @@ public unsafe partial struct IDXGISurface1 : IDXGISurface1.Interface, INativeGui
{
return ((delegate* unmanaged[Stdcall]<IDXGISurface1*, RawRect*, int>)(lpVtbl[12]))((IDXGISurface1*)Unsafe.AsPointer(ref this), pDirtyRect);
}
public interface Interface : IDXGISurface.Interface
{
[VtblIndex(11)]

View File

@@ -161,6 +161,7 @@ public unsafe partial struct IDXGISurface2 : IDXGISurface2.Interface, INativeGui
{
return ((delegate* unmanaged[Stdcall]<IDXGISurface2*, Guid*, void**, uint*, int>)(lpVtbl[13]))((IDXGISurface2*)Unsafe.AsPointer(ref this), riid, ppParentResource, pSubresourceIndex);
}
public interface Interface : IDXGISurface1.Interface
{
[VtblIndex(13)]

View File

@@ -193,6 +193,7 @@ public unsafe partial struct IDXGISwapChain : IDXGISwapChain.Interface, INativeG
{
return ((delegate* unmanaged[Stdcall]<IDXGISwapChain*, uint*, int>)(lpVtbl[17]))((IDXGISwapChain*)Unsafe.AsPointer(ref this), pLastPresentCount);
}
public interface Interface : IDXGIDeviceSubObject.Interface
{
[VtblIndex(8)]

View File

@@ -281,6 +281,7 @@ public unsafe partial struct IDXGISwapChain1 : IDXGISwapChain1.Interface, INativ
{
return ((delegate* unmanaged[Stdcall]<IDXGISwapChain1*, Common.ModeRotation*, int>)(lpVtbl[28]))((IDXGISwapChain1*)Unsafe.AsPointer(ref this), pRotation);
}
public interface Interface : IDXGISwapChain.Interface
{
[VtblIndex(18)]

View File

@@ -337,6 +337,7 @@ public unsafe partial struct IDXGISwapChain2 : IDXGISwapChain2.Interface, INativ
{
return ((delegate* unmanaged[Stdcall]<IDXGISwapChain2*, Matrix3x2*, int>)(lpVtbl[35]))((IDXGISwapChain2*)Unsafe.AsPointer(ref this), pMatrix);
}
public interface Interface : IDXGISwapChain1.Interface
{
[VtblIndex(29)]

View File

@@ -369,6 +369,7 @@ public unsafe partial struct IDXGISwapChain3 : IDXGISwapChain3.Interface, INativ
{
return ((delegate* unmanaged[Stdcall]<IDXGISwapChain3*, uint, uint, uint, Common.Format, uint, uint*, IUnknown**, int>)(lpVtbl[39]))((IDXGISwapChain3*)Unsafe.AsPointer(ref this), BufferCount, Width, Height, Format, SwapChainFlags, pCreationNodeMask, ppPresentQueue);
}
public interface Interface : IDXGISwapChain2.Interface
{
[VtblIndex(36)]

View File

@@ -377,6 +377,7 @@ public unsafe partial struct IDXGISwapChain4 : IDXGISwapChain4.Interface, INativ
{
return ((delegate* unmanaged[Stdcall]<IDXGISwapChain4*, HDRMetadataType, uint, void*, int>)(lpVtbl[40]))((IDXGISwapChain4*)Unsafe.AsPointer(ref this), Type, Size, pMetaData);
}
public interface Interface : IDXGISwapChain3.Interface
{
[VtblIndex(40)]

View File

@@ -97,6 +97,7 @@ public unsafe partial struct IDXGISwapChainMedia : IDXGISwapChainMedia.Interface
{
return ((delegate* unmanaged[Stdcall]<IDXGISwapChainMedia*, uint, uint*, uint*, int>)(lpVtbl[5]))((IDXGISwapChainMedia*)Unsafe.AsPointer(ref this), DesiredPresentDuration, pClosestSmallerPresentDuration, pClosestLargerPresentDuration);
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]

View File

@@ -89,6 +89,7 @@ public unsafe partial struct IDXGraphicsAnalysis : IDXGraphicsAnalysis.Interface
{
((delegate* unmanaged[Stdcall]<IDXGraphicsAnalysis*, void>)(lpVtbl[4]))((IDXGraphicsAnalysis*)Unsafe.AsPointer(ref this));
}
public interface Interface : IUnknown.Interface
{
[VtblIndex(3)]