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

Method VerifyApplication

tutorials/verify/verify.cpp:6214–6966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6212 /////////////////////////////////////////////////////////////////////////////////
6213
6214 VerifyApplication::VerifyApplication ()
6215 : Application(Application::FEATURE_RTCORE),
6216 intensity(1.0f),
6217 numPassedTests(0), numFailedTests(0), numFailedAndIgnoredTests(0),
6218 tests(new TestGroup("",false,false)),
6219 device(nullptr),
6220 user_specified_tests(false), flatten(true), parallel(true), cdash(false),
6221 database(""), update_database(false), benchmark_tolerance(0.05f),
6222 usecolors(true)
6223 {
6224 rtcore = ""; // do not start threads nor set affinity for normal tests
6225 device = rtcNewDevice(rtcore.c_str());
6226
6227#if defined(__WIN32__)
6228 usecolors = false;
6229#endif
6230
6231 GeometryType gtypes[] = { TRIANGLE_MESH, TRIANGLE_MESH_MB, GRID_MESH, GRID_MESH_MB, QUAD_MESH, QUAD_MESH_MB, SUBDIV_MESH, SUBDIV_MESH_MB };
6232 GeometryType gtypes_all[] = { TRIANGLE_MESH, TRIANGLE_MESH_MB, QUAD_MESH, QUAD_MESH_MB, GRID_MESH, GRID_MESH_MB, SUBDIV_MESH, SUBDIV_MESH_MB,
6233 BEZIER_GEOMETRY, BEZIER_GEOMETRY_MB, BSPLINE_GEOMETRY, BSPLINE_GEOMETRY_MB, CATMULL_GEOMETRY, CATMULL_GEOMETRY_MB,
6234 LINE_GEOMETRY, LINE_GEOMETRY_MB };
6235
6236 /* create list of all ISAs to test */
6237#if defined(EMBREE_TARGET_SSE2)
6238 if (hasISA(SSE2)) isas.push_back(SSE2);
6239#endif
6240#if defined(EMBREE_TARGET_SSE42)
6241 if (hasISA(SSE42)) isas.push_back(SSE42);
6242#endif
6243#if defined(EMBREE_TARGET_AVX)
6244 if (hasISA(AVX)) isas.push_back(AVX);
6245#endif
6246#if defined(EMBREE_TARGET_AVX2)
6247 if (hasISA(AVX2)) isas.push_back(AVX2);
6248#endif
6249#if defined(EMBREE_TARGET_AVX512)
6250 if (hasISA(AVX512)) isas.push_back(AVX512);
6251#endif
6252
6253 /* create list of all intersect modes to test */
6254 intersectModes.push_back(MODE_INTERSECT1);
6255 intersectModes.push_back(MODE_INTERSECT4);
6256 intersectModes.push_back(MODE_INTERSECT8);
6257 intersectModes.push_back(MODE_INTERSECT16);
6258
6259 /* create a list of all intersect variants for each intersect mode */
6260 intersectVariants.push_back(VARIANT_INTERSECT_COHERENT);
6261 intersectVariants.push_back(VARIANT_OCCLUDED_COHERENT);
6262 intersectVariants.push_back(VARIANT_INTERSECT_INCOHERENT);
6263 intersectVariants.push_back(VARIANT_OCCLUDED_INCOHERENT);
6264 intersectVariants.push_back(VARIANT_INTERSECT_OCCLUDED_COHERENT);
6265
6266 /* create list of all scene flags to test */
6267 sceneFlags.push_back(SceneFlags(RTC_SCENE_FLAG_NONE, RTC_BUILD_QUALITY_MEDIUM));
6268 sceneFlags.push_back(SceneFlags(RTC_SCENE_FLAG_ROBUST, RTC_BUILD_QUALITY_MEDIUM));
6269 sceneFlags.push_back(SceneFlags(RTC_SCENE_FLAG_COMPACT, RTC_BUILD_QUALITY_MEDIUM));
6270 sceneFlags.push_back(SceneFlags(RTC_SCENE_FLAG_ROBUST | RTC_SCENE_FLAG_COMPACT,RTC_BUILD_QUALITY_MEDIUM));
6271 sceneFlags.push_back(SceneFlags(RTC_SCENE_FLAG_NONE, RTC_BUILD_QUALITY_HIGH));

Callers

nothing calls this directly

Calls 15

rtcNewDeviceFunction · 0.85
SceneFlagsClass · 0.85
rtcGetDevicePropertyFunction · 0.85
pushFunction · 0.85
stringOfISAFunction · 0.85
has_variantFunction · 0.85
regex_matchFunction · 0.85
pushMethod · 0.80
popMethod · 0.80
benchmark_loopMethod · 0.80
hasISAFunction · 0.70

Tested by

no test coverage detected