Adds a benchmark to the list
| 68 | |
| 69 | // Adds a benchmark to the list |
| 70 | void addBenchmark(const std::string& filter, const std::vector<std::string>& inputs, const std::pair<int, int>& size) |
| 71 | { |
| 72 | Benchmark bench; |
| 73 | bench.name = filter; |
| 74 | bench.name += "."; |
| 75 | for (size_t i = 0; i < inputs.size(); ++i) |
| 76 | { |
| 77 | if (i > 0) bench.name += "_"; |
| 78 | bench.name += inputs[i]; |
| 79 | } |
| 80 | bench.name += "." + toString(size.first) + "x" + toString(size.second); |
| 81 | |
| 82 | bench.filter = filter; |
| 83 | bench.inputs = inputs; |
| 84 | bench.width = size.first; |
| 85 | bench.height = size.second; |
| 86 | |
| 87 | benchmarks.push_back(bench); |
| 88 | } |
| 89 | |
| 90 | std::shared_ptr<ImageBuffer> newImage(DeviceRef& device, int width, int height) |
| 91 | { |
no test coverage detected