| 364 | } |
| 365 | |
| 366 | void |
| 367 | DeviceManager::BackBufferResized() |
| 368 | { |
| 369 | if(m_SwapChain == NULL) |
| 370 | return; |
| 371 | |
| 372 | DXGI_SURFACE_DESC backSD; |
| 373 | backSD.Format = m_SwapChainDesc.BufferDesc.Format; |
| 374 | backSD.Width = m_SwapChainDesc.BufferDesc.Width; |
| 375 | backSD.Height = m_SwapChainDesc.BufferDesc.Height; |
| 376 | backSD.SampleDesc = m_SwapChainDesc.SampleDesc; |
| 377 | |
| 378 | for(auto it = m_vControllers.begin(); it != m_vControllers.end(); it++) |
| 379 | { |
| 380 | (*it)->BackBufferResized(m_Device, &backSD); |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | HRESULT |
| 385 | DeviceManager::ChangeBackBufferFormat(DXGI_FORMAT format, UINT sampleCount) |