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

Function ospSetCurrentDevice

ospray/api/API.cpp:178–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176OSPRAY_CATCH_END(nullptr)
177
178extern "C" void ospSetCurrentDevice(OSPDevice _device) OSPRAY_CATCH_BEGIN
179{
180 auto *device = (Device *)_device;
181
182 if ((device) && (!device->isCommitted())) {
183 throw std::runtime_error("You must commit the device before using it!");
184 }
185
186 Device::current = device;
187}
188OSPRAY_CATCH_END()
189
190extern "C" OSPDevice ospGetCurrentDevice() OSPRAY_CATCH_BEGIN

Callers 4

runWorkerFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
setCurrentMethod · 0.85

Calls 1

isCommittedMethod · 0.80

Tested by

no test coverage detected