Output device info, benchmark result file optional

Refs #269
This commit is contained in:
saschawillems 2018-01-19 21:43:00 +01:00
parent 9e073bdd3b
commit f252284fa5
2 changed files with 17 additions and 12 deletions

View file

@ -275,9 +275,11 @@ void VulkanExampleBase::renderFrame()
void VulkanExampleBase::renderLoop()
{
if (benchmark.active) {
benchmark.run([=] { render(); });
benchmark.run([=] { render(); }, vulkanDevice->properties);
vkDeviceWaitIdle(device);
benchmark.saveResults(title, deviceProperties.deviceName);
if (benchmark.filename != "") {
benchmark.saveResults();
}
return;
}