MCPcopy Create free account
hub / github.com/RenderKit/embree / progressMonitor

Method progressMonitor

kernels/common/scene.cpp:1092–1100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1090 }
1091
1092 void Scene::progressMonitor(double dn)
1093 {
1094 if (progress_monitor_function) {
1095 size_t n = size_t(dn) + progress_monitor_counter.fetch_add(size_t(dn));
1096 if (!progress_monitor_function(progress_monitor_ptr, n / (double(numPrimitives())))) {
1097 throw_RTCError(RTC_ERROR_CANCELLED,"progress monitor forced termination");
1098 }
1099 }
1100 }
1101
1102}

Callers 3

buildMethod · 0.80
buildMethod · 0.80
operator()Method · 0.80

Calls 1

numPrimitivesFunction · 0.85

Tested by

no test coverage detected