void PostShaderStage::initData(RenderAction *pAction) { PostShaderStageDataUnrecPtr pData = NULL; pData = setupStageData(pAction->getActivePartition()->getViewportWidth (), pAction->getActivePartition()->getViewportHeight()); pData->setWidth (pAction->getActivePartition()->getViewportWidth ()); pData->setHeight(pAction->getActivePartition()->getViewportHeight()); this->setData(pData, _iDataSlotId, pAction); }
void PostShaderStage::initData(Viewport *pViewport, RenderActionBase *pAction ) { PostShaderStageDataUnrecPtr pData;// = pAction->getData<PostShaderStageData *>(_iDataSlotId); //if(pData == NULL) //{ pData = setupStageData(pViewport->getPixelWidth(), pViewport->getPixelHeight()); pData->setWidth (pViewport->getPixelWidth ()); pData->setHeight(pViewport->getPixelHeight()); this->setData(pData, _iDataSlotId, pAction); //} }