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

Function installErrorMsgFunc

ospray/api/Device.cpp:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21template <typename OSTREAM_T>
22static inline void installErrorMsgFunc(Device &device, OSTREAM_T &stream)
23{
24 device.error_fcn = [&](void *, OSPError e, const char *msg) {
25 stream << "OSPRAY ERROR [" << e << "]: " << msg << std::endl;
26 };
27}
28
29// Device definitions /////////////////////////////////////////////////////////
30

Callers 1

commitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected