directX creating the swapchain
问题 In my book there i code to create swap chain. IDXGIDevice * dxgiDevice = 0; mD3dDevice->QueryInterface( __uuidof( IDXGIDevice ),( void ** ) & dxgiDevice ); IDXGIAdapter * dxgiAdapter = 0; dxgiDevice->GetParent( __uuidof( IDXGIAdapter ),( void ** ) & dxgiAdapter ); IDXGIFactory * dxgiFactory = 0; dxgiAdapter->GetParent( __uuidof( IDXGIFactory ),( void ** ) & dxgiFactory ); dxgiFactory->CreateSwapChain( mD3dDevice, & sd, & mSwapChain ); For this code there is no explanation, i check few mor