| 1092 | : VerifyApplication::Test(name,isa,VerifyApplication::TEST_SHOULD_PASS), sflags(sflags), quality(quality) {} |
| 1093 | |
| 1094 | VerifyApplication::TestReturnValue run(VerifyApplication* state, bool silent) |
| 1095 | { |
| 1096 | std::string cfg = state->rtcore + ",isa="+stringOfISA(isa); |
| 1097 | RTCDeviceRef device = rtcNewDevice(cfg.c_str()); |
| 1098 | errorHandler(nullptr,rtcGetDeviceError(device)); |
| 1099 | RTCSceneRef scene = rtcNewScene(device); |
| 1100 | rtcSetSceneFlags(scene,sflags.sflags); |
| 1101 | rtcSetSceneBuildQuality(scene,sflags.qflags); |
| 1102 | rtcCommitAndAttachAndReleaseGeometry(scene,rtcNewGeometry (device, RTC_GEOMETRY_TYPE_TRIANGLE),quality,1); |
| 1103 | rtcCommitAndAttachAndReleaseGeometry(scene,rtcNewGeometry (device, RTC_GEOMETRY_TYPE_TRIANGLE),quality,2); |
| 1104 | rtcCommitAndAttachAndReleaseGeometry(scene,rtcNewGeometry (device, RTC_GEOMETRY_TYPE_QUAD),quality,1); |
| 1105 | rtcCommitAndAttachAndReleaseGeometry(scene,rtcNewGeometry (device, RTC_GEOMETRY_TYPE_QUAD),quality,2); |
| 1106 | rtcCommitAndAttachAndReleaseGeometry(scene,rtcNewGeometry (device, RTC_GEOMETRY_TYPE_GRID),quality,1); |
| 1107 | rtcCommitAndAttachAndReleaseGeometry(scene,rtcNewGeometry (device, RTC_GEOMETRY_TYPE_GRID),quality,2); |
| 1108 | rtcCommitAndAttachAndReleaseGeometry(scene,rtcNewGeometry (device, RTC_GEOMETRY_TYPE_SUBDIVISION),quality,1); |
| 1109 | rtcCommitAndAttachAndReleaseGeometry(scene,rtcNewGeometry (device, RTC_GEOMETRY_TYPE_SUBDIVISION),quality,2); |
| 1110 | rtcCommitAndAttachAndReleaseGeometry(scene,rtcNewGeometry (device, RTC_GEOMETRY_TYPE_ROUND_BEZIER_CURVE),quality,1); |
| 1111 | rtcCommitAndAttachAndReleaseGeometry(scene,rtcNewGeometry (device, RTC_GEOMETRY_TYPE_ROUND_BEZIER_CURVE),quality,2); |
| 1112 | rtcCommitAndAttachAndReleaseGeometry(scene,rtcNewGeometry (device, RTC_GEOMETRY_TYPE_USER),quality,1); |
| 1113 | rtcCommitAndAttachAndReleaseGeometry(scene,rtcNewGeometry (device, RTC_GEOMETRY_TYPE_USER),quality,2); |
| 1114 | rtcCommitScene (scene); |
| 1115 | AssertNoError(device); |
| 1116 | return VerifyApplication::PASSED; |
| 1117 | } |
| 1118 | }; |
| 1119 | |
| 1120 | struct ManyBuildTest : public VerifyApplication::Test |
nothing calls this directly
no test coverage detected