windows-rs icon indicating copy to clipboard operation
windows-rs copied to clipboard

Feature search does not list required features for `IDXGIFactory2::CreateSwapChainForHwnd`

Open zopsicle opened this issue 1 year ago • 2 comments

Summary

For IDXGIFactory2::CreateSwapChainForHwnd to be available, the feature Win32_Graphics_Dxgi_Common must be enabled. Neither searching for IDXGIFactory2 nor CreateSwapChainForHwnd on https://microsoft.github.io/windows-rs/features lists Win32_Graphics_Dxgi_Common as a required feature.

Screenshot of search results for IDXGIFactory2

Screenshot of search results for CreateSwapChainForHwnd

Crate manifest

No response

Crate code

No response

zopsicle avatar Mar 05 '24 19:03 zopsicle

The CreateSwapChainForHwnd method is missing altogether, hmm.

riverar avatar Mar 05 '24 20:03 riverar

I don't think the index currently includes methods at all. The feature requirements indicate what is required to define the particular type (the interface in this case). Methods that refer to types in non-parent modules may have additional feature requirements.

kennykerr avatar Mar 05 '24 22:03 kennykerr