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

Method supportsRenderScale

Engine/EffectInstance.cpp:3161–3170  ·  view source on GitHub ↗

* @brief Does this effect supports rendering at a different scale than 1 ? * There is no OFX property for this purpose. The only solution found for OFX is that if a isIdentity * with renderscale != 1 fails, the host retries with renderscale = 1 (and upscaled images). * If the renderScale support was not set, this throws an exception. **/

Source from the content-addressed store, hash-verified

3159 * If the renderScale support was not set, this throws an exception.
3160 **/
3161bool
3162EffectInstance::supportsRenderScale() const
3163{
3164 if (_imp->supportsRenderScale == eSupportsMaybe) {
3165 qDebug() << "EffectInstance::supportsRenderScale should be set before calling supportsRenderScale(), or use supportsRenderScaleMaybe() instead";
3166 throw std::runtime_error("supportsRenderScale not set");
3167 }
3168
3169 return _imp->supportsRenderScale == eSupportsYes;
3170}
3171
3172EffectInstance::SupportsEnum
3173EffectInstance::supportsRenderScaleMaybe() const

Callers 2

getRegionsOfInterestMethod · 0.80
getInputsRoIsFunctorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected