MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / isGPURenderingEnabledInProject

Method isGPURenderingEnabledInProject

Engine/Project.cpp:1342–1360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1340}
1341
1342bool
1343Project::isGPURenderingEnabledInProject() const
1344{
1345 if (!appPTR->getCurrentSettings()->isOpenGLRenderingEnabled()) {
1346 return false;
1347 }
1348 int index = _imp->gpuSupport->getValue();
1349
1350 if (index == 0) {
1351 return true;
1352 } else if (index == 1) {
1353 return false;
1354 } else if (index == 2) {
1355 return !getApp()->isBackground();
1356 }
1357 assert(false);
1358
1359 return false;
1360}
1361
1362std::list<ImagePlaneDesc>
1363Project::getProjectDefaultLayers() const

Callers 1

Calls 5

getAppFunction · 0.85
getCurrentSettingsMethod · 0.80
getValueMethod · 0.45
isBackgroundMethod · 0.45

Tested by

no test coverage detected