Compositor: Enable constant folding on operations

Only on current full frame operations that can be constant.
This commit is contained in:
Manuel Castilla 2021-07-06 16:16:49 +02:00
parent fc5be0b598
commit 5780de2ae0
6 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,7 @@ ColorBalanceASCCDLOperation::ColorBalanceASCCDLOperation()
this->m_inputValueOperation = nullptr;
this->m_inputColorOperation = nullptr;
this->setResolutionInputSocketIndex(1);
flags.can_be_constant = true;
}
void ColorBalanceASCCDLOperation::initExecution()

View File

@ -46,6 +46,7 @@ ColorBalanceLGGOperation::ColorBalanceLGGOperation()
this->m_inputValueOperation = nullptr;
this->m_inputColorOperation = nullptr;
this->setResolutionInputSocketIndex(1);
flags.can_be_constant = true;
}
void ColorBalanceLGGOperation::initExecution()

View File

@ -33,6 +33,7 @@ ColorCorrectionOperation::ColorCorrectionOperation()
this->m_redChannelEnabled = true;
this->m_greenChannelEnabled = true;
this->m_blueChannelEnabled = true;
flags.can_be_constant = true;
}
void ColorCorrectionOperation::initExecution()
{

View File

@ -26,6 +26,7 @@ ExposureOperation::ExposureOperation()
this->addInputSocket(DataType::Value);
this->addOutputSocket(DataType::Color);
this->m_inputProgram = nullptr;
flags.can_be_constant = true;
}
void ExposureOperation::initExecution()

View File

@ -28,6 +28,7 @@ GammaOperation::GammaOperation()
this->addOutputSocket(DataType::Color);
this->m_inputProgram = nullptr;
this->m_inputGammaProgram = nullptr;
flags.can_be_constant = true;
}
void GammaOperation::initExecution()
{

View File

@ -25,6 +25,7 @@ IDMaskOperation::IDMaskOperation()
this->addInputSocket(DataType::Value);
this->addOutputSocket(DataType::Value);
this->flags.complex = true;
flags.can_be_constant = true;
}
void *IDMaskOperation::initializeTileData(rcti *rect)