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

Function convertScene

tutorials/next_hit/next_hit_device.cpp:113–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111};
112
113RTCScene convertScene(ISPCScene* scene_in)
114{
115 RTCFeatureFlags feature_mask = RTC_FEATURE_FLAG_NONE;
116 RTCScene scene_out = ConvertScene(g_device, g_ispc_scene, RTC_BUILD_QUALITY_MEDIUM, RTC_SCENE_FLAG_FILTER_FUNCTION_IN_ARGUMENTS | RTC_SCENE_FLAG_ROBUST, &feature_mask);
117 g_feature_mask = (RTCFeatureFlags) (feature_mask | RTC_FEATURE_FLAG_FILTER_FUNCTION_IN_ARGUMENTS);
118
119 /* commit changes to scene */
120 return scene_out;
121}
122
123/* Filter callback function that gathers all hits */
124RTC_SYCL_INDIRECTLY_CALLABLE void gather_all_hits(const RTCFilterFunctionNArguments* args)

Callers 1

device_renderFunction · 0.70

Calls 1

ConvertSceneFunction · 0.85

Tested by

no test coverage detected