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

Function ospGetCurrentDevice

ospray/api/API.cpp:190–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188OSPRAY_CATCH_END()
189
190extern "C" OSPDevice ospGetCurrentDevice() OSPRAY_CATCH_BEGIN
191{
192 auto *ptr = Device::current.ptr;
193 if (ptr)
194 ptr->refInc();
195 return (OSPDevice)ptr;
196}
197OSPRAY_CATCH_END(nullptr)
198
199extern "C" void ospDeviceSetParam(OSPDevice _object,

Callers 3

mainFunction · 0.85
initializeOSPRayFunction · 0.85
currentMethod · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68