MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetAdapterModeCount

Method GetAdapterModeCount

trinityal/dx11/Tr2VideoAdapterInfoALDx11.cpp:300–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300ALResult 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
316ALResult Tr2VideoAdapterInfo::GetAdapterMode( unsigned adapterIndex,
317 Tr2RenderContextEnum::PixelFormat backBufferFormat,

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
PopulateDisplayModesFunction · 0.70

Tested by

no test coverage detected