| 55 | { |
| 56 | |
| 57 | HRESULT CreateDeviceInt( |
| 58 | uint32_t Adapter, |
| 59 | Tr2WindowHandle hFocusWindow, |
| 60 | const Tr2PresentParametersAL& pPresentationParameters ) |
| 61 | { |
| 62 | USE_MAIN_THREAD_RENDER_CONTEXT(); |
| 63 | |
| 64 | #ifdef _WIN32 |
| 65 | HANDLE heapsBefore[256]; |
| 66 | const uint32_t countBefore = ::GetProcessHeaps( 256, heapsBefore ); |
| 67 | #endif |
| 68 | |
| 69 | const HRESULT hr = renderContext.CreateDevice( Adapter, hFocusWindow, pPresentationParameters ); |
| 70 | |
| 71 | #if defined( __ANDROID__ ) |
| 72 | while( !g_windowResized ) |
| 73 | { |
| 74 | } |
| 75 | #endif |
| 76 | |
| 77 | #ifdef _WIN32 |
| 78 | HANDLE heapsAfter[256]; |
| 79 | const uint32_t countAfter = ::GetProcessHeaps( 256, heapsAfter ); |
| 80 | |
| 81 | if( countAfter > countBefore ) |
| 82 | { |
| 83 | const int count = countAfter - countBefore; |
| 84 | CCP_LOG( "Direct3D::CreateDevice created %d heaps", count ); |
| 85 | |
| 86 | for( uint32_t i = countBefore; i != countAfter; ++i ) |
| 87 | { |
| 88 | g_D3DCreatedHeaps.push_back( heapsAfter[i] ); |
| 89 | } |
| 90 | } |
| 91 | #endif |
| 92 | |
| 93 | Tr2Renderer::InitializeSystemShaderOptions(); |
| 94 | |
| 95 | return hr; |
| 96 | } |
| 97 | |
| 98 | BlueStructureDefinition Tr2UpscalingTechniqueInfoDefinition[] = { |
| 99 | { "technique", Be::UINT32_1, 0, Tr2UpsclaingAL_UpscalingTechnique_Chooser }, |
no test coverage detected