MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/HBAOPlus / BackBufferResized

Method BackBufferResized

samples/D3D11/src/DeviceManager.cpp:366–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366void
367DeviceManager::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
384HRESULT
385DeviceManager::ChangeBackBufferFormat(DXGI_FORMAT format, UINT sampleCount)

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected