MCPcopy Create free account
hub / github.com/ValveSoftware/steam-audio / CEmbreeDevice

Method CEmbreeDevice

core/src/core/api_embree_device.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32// --------------------------------------------------------------------------------------------------------------------
33
34CEmbreeDevice::CEmbreeDevice(CContext* context,
35 IPLEmbreeDeviceSettings* settings)
36{
37#if defined(IPL_USES_EMBREE) && (defined(IPL_CPU_X86) || defined(IPL_CPU_X64))
38 auto _context = context->mHandle.get();
39 if (!_context)
40 throw Exception(Status::Failure);
41
42 new (&mHandle) Handle<EmbreeDevice>(ipl::make_shared<EmbreeDevice>(), _context);
43#endif
44}
45
46IEmbreeDevice* CEmbreeDevice::retain()
47{

Callers

nothing calls this directly

Calls 2

ExceptionClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected