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

Method getViewersBitDepth

Engine/Settings.cpp:2428–2443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2426// "Viewers" pane
2427
2428ImageBitDepthEnum
2429Settings::getViewersBitDepth() const
2430{
2431 if (!appPTR->isTextureFloatSupported()) {
2432 return eImageBitDepthByte;
2433 }
2434 int v = _texturesMode->getValue();
2435
2436 if (v == 0) {
2437 return eImageBitDepthByte;
2438 } else if (v == 1) {
2439 return eImageBitDepthFloat;
2440 } else {
2441 return eImageBitDepthByte;
2442 }
2443}
2444
2445int
2446Settings::getViewerTilesPowerOf2() const

Callers 2

getBitDepthMethod · 0.80

Calls 2

getValueMethod · 0.45

Tested by

no test coverage detected