| 153 | public: |
| 154 | |
| 155 | void Load(const std::string& rendererModule, const TestConfig& testConfig) |
| 156 | { |
| 157 | // Store test configuration |
| 158 | config = testConfig; |
| 159 | |
| 160 | // Load renderer |
| 161 | renderer = LLGL::RenderSystem::Load(rendererModule); |
| 162 | |
| 163 | // Create render context |
| 164 | LLGL::RenderContextDescriptor contextDesc; |
| 165 | { |
| 166 | contextDesc.videoMode.resolution = { 640, 480 }; |
| 167 | } |
| 168 | context = renderer->CreateRenderContext(contextDesc); |
| 169 | |
| 170 | // Create command buffer |
| 171 | commands = renderer->CreateCommandBuffer(); |
| 172 | commandQueue = renderer->GetCommandQueue(); |
| 173 | |
| 174 | // Create timer query |
| 175 | LLGL::QueryHeapDescriptor queryDesc; |
| 176 | { |
| 177 | queryDesc.type = LLGL::QueryType::TimeElapsed; |
| 178 | } |
| 179 | timerQuery = renderer->CreateQueryHeap(queryDesc); |
| 180 | |
| 181 | // Create resources |
| 182 | CreateTextures(config.numTextures * 2); |
| 183 | } |
| 184 | |
| 185 | void Run() |
| 186 | { |
no test coverage detected