Adds all benchmarks to the list
| 239 | |
| 240 | // Adds all benchmarks to the list |
| 241 | void addAllBenchmarks() |
| 242 | { |
| 243 | std::vector<std::pair<int, int>> sizes; |
| 244 | |
| 245 | // Filter: RT |
| 246 | #if defined(OIDN_FILTER_RT) |
| 247 | if (width < 0) |
| 248 | sizes = {{1920, 1080}, {3840, 2160}, {1280, 720}}; |
| 249 | else |
| 250 | sizes = {{width, height}}; |
| 251 | |
| 252 | for (const auto& size : sizes) |
| 253 | { |
| 254 | addBenchmark("RT", {"hdr", "alb", "nrm"}, size); |
| 255 | addBenchmark("RT", {"ldr", "alb", "nrm"}, size); |
| 256 | addBenchmark("RT", {"hdr", "calb", "cnrm"}, size); |
| 257 | addBenchmark("RT", {"ldr", "calb", "cnrm"}, size); |
| 258 | } |
| 259 | #endif |
| 260 | |
| 261 | // Filter: RTLightmap |
| 262 | #if defined(OIDN_FILTER_RTLIGHTMAP) |
| 263 | if (width < 0) |
| 264 | sizes = {{2048, 2048}, {4096, 4096}, {1024, 1024}}; |
| 265 | |
| 266 | for (const auto& size : sizes) |
| 267 | { |
| 268 | addBenchmark("RTLightmap", {"hdr"}, size); |
| 269 | } |
| 270 | #endif |
| 271 | } |
| 272 | |
| 273 | int main(int argc, char* argv[]) |
| 274 | { |