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

Method setObjectParam

modules/cpu/ISPCDevice.cpp:471–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469///////////////////////////////////////////////////////////////////////////
470
471void ISPCDevice::setObjectParam(
472 OSPObject object, const char *name, OSPDataType type, const void *mem)
473{
474 if (type == OSP_UNKNOWN)
475 throw std::runtime_error("cannot set OSP_UNKNOWN parameter type");
476
477 if (type == OSP_BYTE || type == OSP_RAW) {
478 setParamOnObject(object, name, *(const byte_t *)mem);
479 return;
480 }
481
482 setParamFcns[type](object, name, mem);
483}
484
485void ISPCDevice::removeObjectParam(OSPObject _object, const char *name)
486{

Callers 1

ospSetParamFunction · 0.45

Calls 1

setParamOnObjectFunction · 0.70

Tested by

no test coverage detected