MCPcopy Create free account
hub / github.com/RenderKit/embree / rtcSetDeviceProperty

Function rtcSetDeviceProperty

kernels/common/rtcore.cpp:140–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 }
139
140 RTC_API void rtcSetDeviceProperty(RTCDevice hdevice, const RTCDeviceProperty prop, ssize_t val)
141 {
142 Device* device = (Device*) hdevice;
143 RTC_CATCH_BEGIN;
144 RTC_TRACE(rtcSetDeviceProperty);
145 const bool internal_prop = (size_t)prop >= 1000000 && (size_t)prop < 1000004;
146 if (!internal_prop) RTC_VERIFY_HANDLE(hdevice); // allow NULL device for special internal settings
147 Lock<MutexSys> lock(g_mutex);
148 device->setProperty(prop,val);
149 RTC_CATCH_END(device);
150 }
151
152 RTC_API RTCError rtcGetDeviceError(RTCDevice hdevice)
153 {

Callers 2

set_parameterMethod · 0.85
runMethod · 0.85

Calls 1

setPropertyMethod · 0.80

Tested by

no test coverage detected