MCPcopy Create free account
hub / github.com/RenderKit/ospray / ospray_module_init_cpu

Function ospray_module_init_cpu

modules/cpu/ModuleInit.cpp:26–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24extern "C" OSPError OSPRAY_DLLEXPORT
25#ifdef OSPRAY_TARGET_SYCL
26ospray_module_init_gpu
27#else
28ospray_module_init_cpu
29#endif
30 (int16_t versionMajor, int16_t versionMinor, int16_t /*versionPatch*/)
31{
32 auto status = moduleVersionCheck(versionMajor, versionMinor);
33
34 if (status == OSP_NO_ERROR) {
35#ifdef OSPRAY_TARGET_SYCL
36 api::Device::registerType<ospray::api::ISPCDevice>("gpu");
37#else
38 api::Device::registerType<ospray::api::ISPCDevice>("cpu");
39#endif
40
41 registerAllCameras();
42 registerAllImageOps();
43 registerAllGeometries();
44 registerAllLights();
45 registerAllMaterials();
46 registerAllRenderers();
47 registerAllTextures();
48#ifdef OSPRAY_ENABLE_VOLUMES
49 registerAllTransferFunctions();
50#endif
51 }
52
53 return status;
54}

Callers

nothing calls this directly

Calls 9

moduleVersionCheckFunction · 0.85
registerAllCamerasFunction · 0.85
registerAllImageOpsFunction · 0.85
registerAllGeometriesFunction · 0.85
registerAllLightsFunction · 0.85
registerAllMaterialsFunction · 0.85
registerAllRenderersFunction · 0.85
registerAllTexturesFunction · 0.85

Tested by

no test coverage detected