Compositor: Enable constant folding on operations
Only on current full frame operations that can be constant.
This commit is contained in:
parent
fc5be0b598
commit
5780de2ae0
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue