| 298 | } |
| 299 | |
| 300 | ALResult Tr2VideoAdapterInfo::GetAdapterModeCount( unsigned adapterIndex, |
| 301 | Tr2RenderContextEnum::PixelFormat backBufferFormat, |
| 302 | unsigned& count ) |
| 303 | { |
| 304 | CHECK_INIT; |
| 305 | CHECK_VALID_ADAPTER; |
| 306 | |
| 307 | count = 0; |
| 308 | |
| 309 | auto& output = s_adapters[adapterIndex]; |
| 310 | CR_RETURN_HR( PopulateDisplayModes( output, static_cast<DXGI_FORMAT>( backBufferFormat ) ) ); |
| 311 | |
| 312 | count = unsigned( output.m_displayModes[static_cast<DXGI_FORMAT>( backBufferFormat )].size() ); |
| 313 | return S_OK; |
| 314 | } |
| 315 | |
| 316 | ALResult Tr2VideoAdapterInfo::GetAdapterMode( unsigned adapterIndex, |
| 317 | Tr2RenderContextEnum::PixelFormat backBufferFormat, |
nothing calls this directly
no test coverage detected