MCPcopy Create free account
hub / github.com/RenderKit/ospray / TearDown

Method TearDown

apps/ospBenchmark/BaseFixture.cpp:60–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void 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}

Callers

nothing calls this directly

Calls 7

mapMethod · 0.80
writePPMFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
resetAccumulationMethod · 0.45
renderFrameMethod · 0.45
unmapMethod · 0.45

Tested by

no test coverage detected