| 183 | } |
| 184 | |
| 185 | void Run() |
| 186 | { |
| 187 | std::cout << std::endl << "run performance tests ..." << std::endl; |
| 188 | |
| 189 | commands->Begin(); |
| 190 | { |
| 191 | MeasureTime( |
| 192 | ( "MIP-map generation of " + std::to_string(config.numTextures) + " textures with size " + |
| 193 | std::to_string(config.textureSize) + " and " + std::to_string(config.arrayLayers) + " array layers" ), |
| 194 | std::bind(&PerformanceTest::TestMIPMapGeneration, this) |
| 195 | ); |
| 196 | MeasureTime( |
| 197 | ( "MIP-map generation of " + std::to_string(config.numTextures) + " textures with size " + |
| 198 | std::to_string(config.textureSize) + " and only first " + std::to_string(config.numMipMaps) + " MIP-maps of first array layer" ), |
| 199 | std::bind(&PerformanceTest::TestSubMIPMapGeneration, this) |
| 200 | ); |
| 201 | } |
| 202 | commands->End(); |
| 203 | commandQueue->Submit(*commands); |
| 204 | } |
| 205 | |
| 206 | }; |
| 207 | |