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

Function rtcNewDevice

kernels/common/rtcore.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 static MutexSys g_mutex;
18
19 RTC_API RTCDevice rtcNewDevice(const char* config)
20 {
21 RTC_CATCH_BEGIN;
22 RTC_TRACE(rtcNewDevice);
23 Lock<MutexSys> lock(g_mutex);
24 Device* device = new Device(config);
25 return (RTCDevice) device->refInc();
26 RTC_CATCH_END(nullptr);
27 return (RTCDevice) nullptr;
28 }
29
30#if defined(EMBREE_SYCL_SUPPORT)
31

Callers 15

test.cppFile · 0.85
initializeDeviceFunction · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85

Calls 1

refIncMethod · 0.80

Tested by

no test coverage detected