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

Method getCurrentProgress

modules/cpu/fb/FrameBuffer.cpp:166–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166float FrameBuffer::getCurrentProgress() const
167{
168#ifdef OSPRAY_TARGET_SYCL
169 // TODO: Continually polling this will cause a lot of USM thrashing
170 return 0.f;
171#else
172 return static_cast<float>(getSh()->numPixelsRendered)
173 / getNumPixels().long_product();
174#endif
175}
176
177void FrameBuffer::cancelFrame()
178{

Callers 1

getProgressMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected