| 111 | } |
| 112 | |
| 113 | RTCScene convertScene(ISPCScene* scene_in) |
| 114 | { |
| 115 | for (unsigned int i=0; i<scene_in->numGeometries; i++) |
| 116 | { |
| 117 | ISPCGeometry* geometry = scene_in->geometries[i]; |
| 118 | if (geometry->type == SUBDIV_MESH) { |
| 119 | data.subdiv_mode = true; break; |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | RTCFeatureFlags feature_mask = RTC_FEATURE_FLAG_NONE; |
| 124 | RTCScene scene_out = ConvertScene(g_device, g_ispc_scene, RTC_BUILD_QUALITY_MEDIUM, RTC_SCENE_FLAG_NONE, &feature_mask); |
| 125 | if (g_use_scene_features) g_feature_mask = feature_mask; |
| 126 | rtcSetSceneProgressMonitorFunction(scene_out,monitorProgressFunction,nullptr); |
| 127 | |
| 128 | /* commit changes to scene */ |
| 129 | return scene_out; |
| 130 | } |
| 131 | |
| 132 | AffineSpace3fa calculate_interpolated_space (ISPCInstance* instance, float gtime) |
| 133 | { |
no test coverage detected