Skip to content

Commit 283d9e6

Browse files
committed
dxgi: Replace all flags enums/types with uint type
1 parent 3f326e5 commit 283d9e6

File tree

3 files changed

+36
-6
lines changed

3 files changed

+36
-6
lines changed

generation/WinSDK/Partitions/Dxgi/settings.rsp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ _D3DCOLORVALUE
1414
--namespace
1515
Windows.Win32.Graphics.Dxgi
1616
--with-type
17+
DXGI_ADAPTER_FLAG=uint
18+
DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS=uint
19+
DXGI_OFFER_RESOURCE_FLAGS=uint
1720
DXGI_OUTDUPL_FLAG=uint
21+
DXGI_OVERLAY_COLOR_SPACE_SUPPORT_FLAG=uint
22+
DXGI_OVERLAY_SUPPORT_FLAG=uint
23+
DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG=uint
1824
DXGI_SWAP_CHAIN_FLAG=uint
19-
DXGI_ADAPTER_FLAG=uint

generation/WinSDK/emitter.settings.rsp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,20 +1840,20 @@ IDXGIAdapter::GetDesc::pDesc=[RetVal]
18401840
IDXGIAdapter1::GetDesc1::pDesc=[RetVal]
18411841
IDXGIAdapter2::GetDesc2::pDesc=[RetVal]
18421842
IDXGIAdapter4::GetDesc3::pDesc=[RetVal]
1843-
IDXGIDevice4::OfferResources1::Flags=[AssociatedEnum("DXGI_OFFER_RESOURCE_FLAGS")]
1843+
IDXGIDevice4::OfferResources1::Flags=DXGI_OFFER_RESOURCE_FLAGS
18441844
IDXGIOutput::GetDesc::pDesc=[RetVal]
1845-
IDXGIOutput3::CheckOverlaySupport::pFlags=[AssociatedEnum("DXGI_OVERLAY_SUPPORT_FLAG")]
1846-
IDXGIOutput4::CheckOverlayColorSpaceSupport::pFlags=[AssociatedEnum("DXGI_OVERLAY_COLOR_SPACE_SUPPORT_FLAG")]
1845+
IDXGIOutput3::CheckOverlaySupport::pFlags=DXGI_OVERLAY_SUPPORT_FLAG
1846+
IDXGIOutput4::CheckOverlayColorSpaceSupport::pFlags=DXGI_OVERLAY_COLOR_SPACE_SUPPORT_FLAG
18471847
IDXGIOutput5::DuplicateOutput1::Flags=DXGI_OUTDUPL_FLAG
1848-
IDXGIOutput6::CheckHardwareCompositionSupport::pFlags=[AssociatedEnum("DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS")]
1848+
IDXGIOutput6::CheckHardwareCompositionSupport::pFlags=DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS
18491849
IDXGIOutput6::GetDesc1::pDesc=[RetVal]
18501850
IDXGIOutputDuplication::GetDesc::pDesc=[RetVal]
18511851
IDXGISurface::GetDesc::pDesc=[RetVal]
18521852
IDXGISwapChain::GetDesc::pDesc=[RetVal]
18531853
IDXGISwapChain::ResizeBuffers::SwapChainFlags=DXGI_SWAP_CHAIN_FLAG
18541854
IDXGISwapChain1::GetDesc1::pDesc=[RetVal]
18551855
IDXGISwapChain1::GetFullscreenDesc::pDesc=[RetVal]
1856-
IDXGISwapChain3::CheckColorSpaceSupport::pColorSpaceSupport=[AssociatedEnum("DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG")]
1856+
IDXGISwapChain3::CheckColorSpaceSupport::pColorSpaceSupport=DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG
18571857
IDXGISwapChain3::ResizeBuffers1::SwapChainFlags=DXGI_SWAP_CHAIN_FLAG
18581858
LPWPUCLOSEEVENT::hEvent=WSAEVENT
18591859
LPWPUCREATEEVENT::return=WSAEVENT

scripts/ChangesSinceLastRelease.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,28 @@ Windows.Win32.Graphics.Dxgi.IDXGISwapChain.ResizeBuffers : SwapChainFlags : [Ass
6565
Windows.Win32.Graphics.Dxgi.IDXGISwapChain.ResizeBuffers : SwapChainFlags...UInt32 => DXGI_SWAP_CHAIN_FLAG
6666
Windows.Win32.Graphics.Dxgi.IDXGISwapChain3.ResizeBuffers1 : SwapChainFlags : [AssociatedEnum(DXGI_SWAP_CHAIN_FLAG),In] => [In]
6767
Windows.Win32.Graphics.Dxgi.IDXGISwapChain3.ResizeBuffers1 : SwapChainFlags...UInt32 => DXGI_SWAP_CHAIN_FLAG
68+
# dxgi: Replace all flags enums/types with uint type
69+
Windows.Win32.Graphics.Dxgi.DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS.DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_CURSOR_STRETCHED value init changed Int32->UInt32
70+
Windows.Win32.Graphics.Dxgi.DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS.DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_FULLSCREEN value init changed Int32->UInt32
71+
Windows.Win32.Graphics.Dxgi.DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS.DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_WINDOWED value init changed Int32->UInt32
72+
Windows.Win32.Graphics.Dxgi.DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS.value__...System.Int32 => System.UInt32
73+
Windows.Win32.Graphics.Dxgi.DXGI_OFFER_RESOURCE_FLAGS.DXGI_OFFER_RESOURCE_FLAG_ALLOW_DECOMMIT value init changed Int32->UInt32
74+
Windows.Win32.Graphics.Dxgi.DXGI_OFFER_RESOURCE_FLAGS.value__...System.Int32 => System.UInt32
75+
Windows.Win32.Graphics.Dxgi.DXGI_OVERLAY_COLOR_SPACE_SUPPORT_FLAG.DXGI_OVERLAY_COLOR_SPACE_SUPPORT_FLAG_PRESENT value init changed Int32->UInt32
76+
Windows.Win32.Graphics.Dxgi.DXGI_OVERLAY_COLOR_SPACE_SUPPORT_FLAG.value__...System.Int32 => System.UInt32
77+
Windows.Win32.Graphics.Dxgi.DXGI_OVERLAY_SUPPORT_FLAG.DXGI_OVERLAY_SUPPORT_FLAG_DIRECT value init changed Int32->UInt32
78+
Windows.Win32.Graphics.Dxgi.DXGI_OVERLAY_SUPPORT_FLAG.DXGI_OVERLAY_SUPPORT_FLAG_SCALING value init changed Int32->UInt32
79+
Windows.Win32.Graphics.Dxgi.DXGI_OVERLAY_SUPPORT_FLAG.value__...System.Int32 => System.UInt32
80+
Windows.Win32.Graphics.Dxgi.DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG.DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG_OVERLAY_PRESENT value init changed Int32->UInt32
81+
Windows.Win32.Graphics.Dxgi.DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG.DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG_PRESENT value init changed Int32->UInt32
82+
Windows.Win32.Graphics.Dxgi.DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG.value__...System.Int32 => System.UInt32
83+
Windows.Win32.Graphics.Dxgi.IDXGIDevice4.OfferResources1 : Flags : [AssociatedEnum(DXGI_OFFER_RESOURCE_FLAGS),In] => [In]
84+
Windows.Win32.Graphics.Dxgi.IDXGIDevice4.OfferResources1 : Flags...UInt32 => DXGI_OFFER_RESOURCE_FLAGS
85+
Windows.Win32.Graphics.Dxgi.IDXGIOutput3.CheckOverlaySupport : pFlags : [AssociatedEnum(DXGI_OVERLAY_SUPPORT_FLAG),Out] => [Out]
86+
Windows.Win32.Graphics.Dxgi.IDXGIOutput3.CheckOverlaySupport : pFlags...UInt32* => DXGI_OVERLAY_SUPPORT_FLAG*
87+
Windows.Win32.Graphics.Dxgi.IDXGIOutput4.CheckOverlayColorSpaceSupport : pFlags : [AssociatedEnum(DXGI_OVERLAY_COLOR_SPACE_SUPPORT_FLAG),Out] => [Out]
88+
Windows.Win32.Graphics.Dxgi.IDXGIOutput4.CheckOverlayColorSpaceSupport : pFlags...UInt32* => DXGI_OVERLAY_COLOR_SPACE_SUPPORT_FLAG*
89+
Windows.Win32.Graphics.Dxgi.IDXGIOutput6.CheckHardwareCompositionSupport : pFlags : [AssociatedEnum(DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS),Out] => [Out]
90+
Windows.Win32.Graphics.Dxgi.IDXGIOutput6.CheckHardwareCompositionSupport : pFlags...UInt32* => DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS*
91+
Windows.Win32.Graphics.Dxgi.IDXGISwapChain3.CheckColorSpaceSupport : pColorSpaceSupport : [AssociatedEnum(DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG),Out] => [Out]
92+
Windows.Win32.Graphics.Dxgi.IDXGISwapChain3.CheckColorSpaceSupport : pColorSpaceSupport...UInt32* => DXGI_SWAP_CHAIN_COLOR_SPACE_SUPPORT_FLAG*

0 commit comments

Comments
 (0)