Add device name to benchmark output file

This commit is contained in:
saschawillems 2017-08-22 21:00:48 +02:00
parent c2aef7809f
commit 0142c8b820

View file

@ -290,6 +290,7 @@ void VulkanExampleBase::benchmarkLoop()
result << std::fixed << std::setprecision(3); result << std::fixed << std::setprecision(3);
result << title << std::endl; result << title << std::endl;
result << deviceProperties.deviceName << std::endl;
result << ",iterations,time(ms),fps" << std::endl;; result << ",iterations,time(ms),fps" << std::endl;;
for (size_t i = 0; i < benchmark.iterationTime.size(); i++) { for (size_t i = 0; i < benchmark.iterationTime.size(); i++) {
result << "," << i << "," << benchmark.iterationTime[i] << "," << (1000.0 / benchmark.iterationTime[i]) << std::endl; result << "," << i << "," << benchmark.iterationTime[i] << "," << (1000.0 / benchmark.iterationTime[i]) << std::endl;