MCPcopy Create free account
hub / github.com/RenderKit/oidn / setInt

Method setInt

core/device.cpp:206–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204 }
205
206 void Device::setInt(const std::string& name, int value)
207 {
208 if (name == "verbose")
209 {
210 if (!isEnvVar("OIDN_VERBOSE"))
211 {
212 verbose = value;
213 error.setVerbose(value);
214 }
215 else if (verbose != value)
216 printWarning("OIDN_VERBOSE environment variable overrides device parameter");
217 }
218 else
219 printWarning("unknown device parameter or type mismatch: '" + name + "'");
220
221 dirty = true;
222 }
223
224 void Device::commit()
225 {

Callers 4

oidnSetDeviceBoolFunction · 0.45
oidnSetDeviceIntFunction · 0.45
oidnSetFilterBoolFunction · 0.45
oidnSetFilterIntFunction · 0.45

Calls 2

isEnvVarFunction · 0.85
printWarningFunction · 0.85

Tested by

no test coverage detected