| 58 | } |
| 59 | |
| 60 | void BaseFixture::TearDown(::benchmark::State &) |
| 61 | { |
| 62 | if (!dumpFinalImageDir.empty() && !name.empty()) { |
| 63 | std::string of = name; |
| 64 | std::replace(of.begin(), of.end(), '/', '_'); |
| 65 | |
| 66 | framebuffer.resetAccumulation(); |
| 67 | framebuffer.renderFrame(renderer, camera, world); |
| 68 | auto *fb = (uint32_t *)framebuffer.map(OSP_FB_COLOR); |
| 69 | utility::writePPM( |
| 70 | dumpFinalImageDir + "/" + of + ".ppm", imgSize.x, imgSize.y, fb); |
| 71 | framebuffer.unmap(fb); |
| 72 | } |
| 73 | |
| 74 | Shutdown(); |
| 75 | } |
nothing calls this directly
no test coverage detected