| 411 | namespace TrinityALImpl |
| 412 | { |
| 413 | ALResult GetVideoAdapter( unsigned adapterIndex, IDXGIAdapter1** adapter, IDXGIOutput** output ) |
| 414 | { |
| 415 | if( !s_factory ) |
| 416 | { |
| 417 | CR_RETURN_HR( InitializeDirect3D() ); |
| 418 | } |
| 419 | if( adapterIndex >= s_adapters.size() ) |
| 420 | { |
| 421 | return E_INVALIDARG; |
| 422 | } |
| 423 | *adapter = s_adapters[adapterIndex].m_adapter; |
| 424 | ( *adapter )->AddRef(); |
| 425 | *output = s_adapters[adapterIndex].m_output; |
| 426 | ( *output )->AddRef(); |
| 427 | return S_OK; |
| 428 | } |
| 429 | |
| 430 | ALResult Destroy() |
| 431 | { |
no test coverage detected