Update 40.0.14-preview metadata and start using Rect and RectF.

This commit is contained in:
Amer Koleci
2023-01-09 09:32:45 +01:00
parent 9068fd4784
commit 9cbc67cbb4
97 changed files with 2011 additions and 980 deletions

View File

@@ -80,7 +80,7 @@ public partial struct OutputDescription
public unsafe fixed ushort DeviceName[32];
/// <include file='../Dxgi.xml' path='doc/member[@name="DXGI_OUTPUT_DESC::DesktopCoordinates"]/*' />
public RawRect DesktopCoordinates;
public Rect DesktopCoordinates;
/// <include file='../Dxgi.xml' path='doc/member[@name="DXGI_OUTPUT_DESC::AttachedToDesktop"]/*' />
public Bool32 AttachedToDesktop;
@@ -200,7 +200,7 @@ public partial struct OutduplMoveRect
public System.Drawing.Point SourcePoint;
/// <include file='../Dxgi.xml' path='doc/member[@name="DXGI_OUTDUPL_MOVE_RECT::DestinationRect"]/*' />
public RawRect DestinationRect;
public Rect DestinationRect;
}
/// <include file='../Dxgi.xml' path='doc/member[@name="DXGI_OUTDUPL_DESC"]/*' />
@@ -366,10 +366,10 @@ public partial struct PresentParameters
public uint DirtyRectsCount;
/// <include file='../Dxgi.xml' path='doc/member[@name="DXGI_PRESENT_PARAMETERS::pDirtyRects"]/*' />
public unsafe RawRect* pDirtyRects;
public unsafe Rect* pDirtyRects;
/// <include file='../Dxgi.xml' path='doc/member[@name="DXGI_PRESENT_PARAMETERS::pScrollRect"]/*' />
public unsafe RawRect* pScrollRect;
public unsafe Rect* pScrollRect;
/// <include file='../Dxgi.xml' path='doc/member[@name="DXGI_PRESENT_PARAMETERS::pScrollOffset"]/*' />
public unsafe System.Drawing.Point* pScrollOffset;
@@ -553,7 +553,7 @@ public partial struct OutputDescription1
public unsafe fixed ushort DeviceName[32];
/// <include file='../Dxgi.xml' path='doc/member[@name="DXGI_OUTPUT_DESC1::DesktopCoordinates"]/*' />
public RawRect DesktopCoordinates;
public Rect DesktopCoordinates;
/// <include file='../Dxgi.xml' path='doc/member[@name="DXGI_OUTPUT_DESC1::AttachedToDesktop"]/*' />
public Bool32 AttachedToDesktop;

View File

@@ -85,17 +85,17 @@ public unsafe partial struct IDXGIDecodeSwapChain : IDXGIDecodeSwapChain.Interfa
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGIDecodeSwapChain::SetSourceRect"]/*' />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(4)]
public HResult SetSourceRect(RawRect* pRect)
public HResult SetSourceRect(Rect* pRect)
{
return ((delegate* unmanaged[Stdcall]<IDXGIDecodeSwapChain*, RawRect*, int>)(lpVtbl[4]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect);
return ((delegate* unmanaged[Stdcall]<IDXGIDecodeSwapChain*, Rect*, int>)(lpVtbl[4]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect);
}
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGIDecodeSwapChain::SetTargetRect"]/*' />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(5)]
public HResult SetTargetRect(RawRect* pRect)
public HResult SetTargetRect(Rect* pRect)
{
return ((delegate* unmanaged[Stdcall]<IDXGIDecodeSwapChain*, RawRect*, int>)(lpVtbl[5]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect);
return ((delegate* unmanaged[Stdcall]<IDXGIDecodeSwapChain*, Rect*, int>)(lpVtbl[5]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect);
}
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGIDecodeSwapChain::SetDestSize"]/*' />
@@ -109,17 +109,17 @@ public unsafe partial struct IDXGIDecodeSwapChain : IDXGIDecodeSwapChain.Interfa
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGIDecodeSwapChain::GetSourceRect"]/*' />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(7)]
public HResult GetSourceRect(RawRect* pRect)
public HResult GetSourceRect(Rect* pRect)
{
return ((delegate* unmanaged[Stdcall]<IDXGIDecodeSwapChain*, RawRect*, int>)(lpVtbl[7]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect);
return ((delegate* unmanaged[Stdcall]<IDXGIDecodeSwapChain*, Rect*, int>)(lpVtbl[7]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect);
}
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGIDecodeSwapChain::GetTargetRect"]/*' />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(8)]
public HResult GetTargetRect(RawRect* pRect)
public HResult GetTargetRect(Rect* pRect)
{
return ((delegate* unmanaged[Stdcall]<IDXGIDecodeSwapChain*, RawRect*, int>)(lpVtbl[8]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect);
return ((delegate* unmanaged[Stdcall]<IDXGIDecodeSwapChain*, Rect*, int>)(lpVtbl[8]))((IDXGIDecodeSwapChain*)Unsafe.AsPointer(ref this), pRect);
}
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGIDecodeSwapChain::GetDestSize"]/*' />
@@ -152,19 +152,19 @@ public unsafe partial struct IDXGIDecodeSwapChain : IDXGIDecodeSwapChain.Interfa
HResult PresentBuffer(uint BufferToPresent, uint SyncInterval, uint Flags);
[VtblIndex(4)]
HResult SetSourceRect(RawRect* pRect);
HResult SetSourceRect(Rect* pRect);
[VtblIndex(5)]
HResult SetTargetRect(RawRect* pRect);
HResult SetTargetRect(Rect* pRect);
[VtblIndex(6)]
HResult SetDestSize(uint Width, uint Height);
[VtblIndex(7)]
HResult GetSourceRect(RawRect* pRect);
HResult GetSourceRect(Rect* pRect);
[VtblIndex(8)]
HResult GetTargetRect(RawRect* pRect);
HResult GetTargetRect(Rect* pRect);
[VtblIndex(9)]
HResult GetDestSize(uint* pWidth, uint* pHeight);

View File

@@ -125,9 +125,9 @@ public unsafe partial struct IDXGIOutputDuplication : IDXGIOutputDuplication.Int
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGIOutputDuplication::GetFrameDirtyRects"]/*' />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(9)]
public HResult GetFrameDirtyRects(uint DirtyRectsBufferSize, RawRect* pDirtyRectsBuffer, uint* pDirtyRectsBufferSizeRequired)
public HResult GetFrameDirtyRects(uint DirtyRectsBufferSize, Rect* pDirtyRectsBuffer, uint* pDirtyRectsBufferSizeRequired)
{
return ((delegate* unmanaged[Stdcall]<IDXGIOutputDuplication*, uint, RawRect*, uint*, int>)(lpVtbl[9]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), DirtyRectsBufferSize, pDirtyRectsBuffer, pDirtyRectsBufferSizeRequired);
return ((delegate* unmanaged[Stdcall]<IDXGIOutputDuplication*, uint, Rect*, uint*, int>)(lpVtbl[9]))((IDXGIOutputDuplication*)Unsafe.AsPointer(ref this), DirtyRectsBufferSize, pDirtyRectsBuffer, pDirtyRectsBufferSizeRequired);
}
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGIOutputDuplication::GetFrameMoveRects"]/*' />
@@ -179,7 +179,7 @@ public unsafe partial struct IDXGIOutputDuplication : IDXGIOutputDuplication.Int
HResult AcquireNextFrame(uint TimeoutInMilliseconds, OutduplFrameInfo* pFrameInfo, IDXGIResource** ppDesktopResource);
[VtblIndex(9)]
HResult GetFrameDirtyRects(uint DirtyRectsBufferSize, RawRect* pDirtyRectsBuffer, uint* pDirtyRectsBufferSizeRequired);
HResult GetFrameDirtyRects(uint DirtyRectsBufferSize, Rect* pDirtyRectsBuffer, uint* pDirtyRectsBufferSizeRequired);
[VtblIndex(10)]
HResult GetFrameMoveRects(uint MoveRectsBufferSize, OutduplMoveRect* pMoveRectBuffer, uint* pMoveRectsBufferSizeRequired);

View File

@@ -149,9 +149,9 @@ public unsafe partial struct IDXGISurface1 : IDXGISurface1.Interface, INativeGui
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGISurface1::ReleaseDC"]/*' />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(12)]
public HResult ReleaseDC(RawRect* pDirtyRect)
public HResult ReleaseDC(Rect* pDirtyRect)
{
return ((delegate* unmanaged[Stdcall]<IDXGISurface1*, RawRect*, int>)(lpVtbl[12]))((IDXGISurface1*)Unsafe.AsPointer(ref this), pDirtyRect);
return ((delegate* unmanaged[Stdcall]<IDXGISurface1*, Rect*, int>)(lpVtbl[12]))((IDXGISurface1*)Unsafe.AsPointer(ref this), pDirtyRect);
}
public interface Interface : IDXGISurface.Interface
@@ -160,7 +160,7 @@ public unsafe partial struct IDXGISurface1 : IDXGISurface1.Interface, INativeGui
HResult GetDC(Bool32 Discard, IntPtr* phdc);
[VtblIndex(12)]
HResult ReleaseDC(RawRect* pDirtyRect);
HResult ReleaseDC(Rect* pDirtyRect);
}
}

View File

@@ -149,9 +149,9 @@ public unsafe partial struct IDXGISurface2 : IDXGISurface2.Interface, INativeGui
/// <inheritdoc cref="IDXGISurface1.ReleaseDC" />
[MethodImpl(MethodImplOptions.AggressiveInlining)]
[VtblIndex(12)]
public HResult ReleaseDC(RawRect* pDirtyRect)
public HResult ReleaseDC(Rect* pDirtyRect)
{
return ((delegate* unmanaged[Stdcall]<IDXGISurface2*, RawRect*, int>)(lpVtbl[12]))((IDXGISurface2*)Unsafe.AsPointer(ref this), pDirtyRect);
return ((delegate* unmanaged[Stdcall]<IDXGISurface2*, Rect*, int>)(lpVtbl[12]))((IDXGISurface2*)Unsafe.AsPointer(ref this), pDirtyRect);
}
/// <include file='../Dxgi.xml' path='doc/member[@name="IDXGISurface2::GetResource"]/*' />