I've got a dxgiswapchain and d3d11device, and I would like to fetch a HWND from either of the two.
void OnPresent(IDXGISwapChain *swapChain) {
ID3D11Device *device = NULL;
swapChain->GetDevice(__uuidof(ID3D11Device), (void**)&device);
}
How can I do so? I briefly remember it being possible with d3d9, so I'm not sure if the same is possible with dxgi/d3d11.