本文整理汇总了C++中Program::addDependency方法的典型用法代码示例。如果您正苦于以下问题:C++ Program::addDependency方法的具体用法?C++ Program::addDependency怎么用?C++ Program::addDependency使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Program
的用法示例。
在下文中一共展示了Program::addDependency方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: resolveDependencies
//-----------------------------------------------------------------------
bool TriplanarTexturing::resolveDependencies(ProgramSet* programSet)
{
Program* psProgram = programSet->getCpuFragmentProgram();
Program* vsProgram = programSet->getCpuVertexProgram();
psProgram->addDependency("SGXLib_TriplanarTexturing");
vsProgram->addDependency(FFP_LIB_COMMON);
return true;
}
示例2: resolveDependencies
//-----------------------------------------------------------------------
bool HardwareSkinning::resolveDependencies(ProgramSet* programSet)
{
Program* vsProgram = programSet->getCpuVertexProgram();
vsProgram->addDependency(FFP_LIB_COMMON);
vsProgram->addDependency(FFP_LIB_TRANSFORM);
return true;
}
示例3: resolveDependencies
//-----------------------------------------------------------------------
bool DualQuaternionSkinning::resolveDependencies(ProgramSet* programSet)
{
Program* vsProgram = programSet->getCpuVertexProgram();
vsProgram->addDependency(FFP_LIB_COMMON);
vsProgram->addDependency(FFP_LIB_TRANSFORM);
vsProgram->addDependency(SGX_LIB_DUAL_QUATERNION);
return true;
}
示例4: resolveDependencies
//-----------------------------------------------------------------------
bool FFPLighting::resolveDependencies(ProgramSet* programSet)
{
Program* vsProgram = programSet->getCpuVertexProgram();
vsProgram->addDependency(FFP_LIB_COMMON);
vsProgram->addDependency(FFP_LIB_LIGHTING);
return true;
}
示例5: resolveDependencies
//-----------------------------------------------------------------------
bool FFPColour::resolveDependencies(ProgramSet* programSet)
{
Program* vsProgram = programSet->getCpuVertexProgram();
Program* psProgram = programSet->getCpuFragmentProgram();
vsProgram->addDependency(FFP_LIB_COMMON);
psProgram->addDependency(FFP_LIB_COMMON);
return true;
}
示例6:
//-----------------------------------------------------------------------
bool IntegratedPSSM3::resolveDependencies(ProgramSet* programSet)
{
Program* vsProgram = programSet->getCpuVertexProgram();
Program* psProgram = programSet->getCpuFragmentProgram();
vsProgram->addDependency(FFP_LIB_COMMON);
psProgram->addDependency(FFP_LIB_COMMON);
psProgram->addDependency(SGX_LIB_INTEGRATEDPSSM);
return true;
}
示例7: resolveDependencies
//-----------------------------------------------------------------------
bool ShaderExInstancedViewports::resolveDependencies(ProgramSet* programSet)
{
Program* vsProgram = programSet->getCpuVertexProgram();
Program* psProgram = programSet->getCpuFragmentProgram();
vsProgram->addDependency(FFP_LIB_COMMON);
vsProgram->addDependency(SGX_LIB_INSTANCED_VIEWPORTS);
psProgram->addDependency(FFP_LIB_COMMON);
psProgram->addDependency(SGX_LIB_INSTANCED_VIEWPORTS);
return true;
}
示例8: resolveDependencies
//-----------------------------------------------------------------------
bool RTShaderSRSSegmentedLights::resolveDependencies(ProgramSet* programSet)
{
Program* vsProgram = programSet->getCpuVertexProgram();
Program* psProgram = programSet->getCpuFragmentProgram();
vsProgram->addDependency(FFP_LIB_COMMON);
vsProgram->addDependency(SL_LIB_PERPIXELLIGHTING);
psProgram->addDependency(FFP_LIB_COMMON);
psProgram->addDependency(SL_LIB_PERPIXELLIGHTING);
return true;
}
示例9: resolveDependencies
//-----------------------------------------------------------------------
bool ShaderExReflectionMap::resolveDependencies(ProgramSet* programSet)
{
Program* vsProgram = programSet->getCpuVertexProgram();
Program* psProgram = programSet->getCpuFragmentProgram();
vsProgram->addDependency(FFP_LIB_COMMON);
vsProgram->addDependency(FFP_LIB_TEXTURING);
psProgram->addDependency(FFP_LIB_COMMON);
psProgram->addDependency(FFP_LIB_TEXTURING);
psProgram->addDependency(SGX_LIB_REFLECTIONMAP);
return true;
}
示例10: createCpuSubPrograms
//-----------------------------------------------------------------------
bool FFPTransform::createCpuSubPrograms(ProgramSet* programSet)
{
//! [param_resolve]
Program* vsProgram = programSet->getCpuVertexProgram();
Function* vsEntry = vsProgram->getEntryPointFunction();
// Resolve World View Projection Matrix.
UniformParameterPtr wvpMatrix = vsProgram->resolveAutoParameterInt(GpuProgramParameters::ACT_WORLDVIEWPROJ_MATRIX, 0);
// Resolve input position parameter.
ParameterPtr positionIn = vsEntry->resolveInputParameter(Parameter::SPS_POSITION, 0, Parameter::SPC_POSITION_OBJECT_SPACE, GCT_FLOAT4);
// Resolve output position parameter.
ParameterPtr positionOut = vsEntry->resolveOutputParameter(Parameter::SPS_POSITION, 0, Parameter::SPC_POSITION_PROJECTIVE_SPACE, GCT_FLOAT4);
if (!wvpMatrix || !positionIn || !positionOut)
{
OGRE_EXCEPT( Exception::ERR_INTERNAL_ERROR,
"Not all parameters could be constructed for the sub-render state.",
"FFPTransform::createCpuSubPrograms" );
}
//! [param_resolve]
// Add dependency.
vsProgram->addDependency(FFP_LIB_TRANSFORM);
FunctionInvocation* transformFunc = OGRE_NEW FunctionInvocation(FFP_FUNC_TRANSFORM, FFP_VS_TRANSFORM, 0);
transformFunc->pushOperand(wvpMatrix, Operand::OPS_IN);
transformFunc->pushOperand(positionIn, Operand::OPS_IN);
transformFunc->pushOperand(positionOut, Operand::OPS_OUT);
vsEntry->addAtomInstance(transformFunc);
return true;
}
示例11: resolveDependencies
//-----------------------------------------------------------------------
bool RTShaderSRSTexturedFog::resolveDependencies(ProgramSet* programSet)
{
if (mFogMode == FOG_NONE)
return true;
Program* vsProgram = programSet->getCpuVertexProgram();
Program* psProgram = programSet->getCpuFragmentProgram();
vsProgram->addDependency(FFP_LIB_FOG);
psProgram->addDependency(FFP_LIB_COMMON);
psProgram->addDependency(FFP_LIB_FOG);
psProgram->addDependency(FFP_LIB_TEXTURING);
return true;
}
示例12: resolveDependencies
//-----------------------------------------------------------------------
bool LayeredBlending::resolveDependencies(ProgramSet* programSet)
{
FFPTexturing::resolveDependencies(programSet);
Program* psProgram = programSet->getCpuProgram(GPT_FRAGMENT_PROGRAM);
psProgram->addDependency(SGX_LIB_LAYEREDBLENDING);
return true;
}
示例13: resolveDependencies
//-----------------------------------------------------------------------
bool LayeredBlending::resolveDependencies(ProgramSet* programSet)
{
FFPTexturing::resolveDependencies(programSet);
Program* psProgram = programSet->getCpuFragmentProgram();
psProgram->addDependency(SGX_LIB_LAYEREDBLENDING);
return true;
}
示例14: resolveDependencies
//-----------------------------------------------------------------------
bool FFPFog::resolveDependencies(ProgramSet* programSet)
{
if (mFogMode == FOG_NONE)
return true;
Program* vsProgram = programSet->getCpuVertexProgram();
Program* psProgram = programSet->getCpuFragmentProgram();
vsProgram->addDependency(FFP_LIB_FOG);
psProgram->addDependency(FFP_LIB_COMMON);
// Per pixel fog.
if (mCalcMode == CM_PER_PIXEL)
{
psProgram->addDependency(FFP_LIB_FOG);
}
return true;
}
示例15: createCpuSubPrograms
//-----------------------------------------------------------------------
bool FFPTransform::createCpuSubPrograms(ProgramSet* programSet)
{
Program* vsProgram = programSet->getCpuVertexProgram();
// Resolve World View Projection Matrix.
UniformParameterPtr wvpMatrix = vsProgram->resolveAutoParameterInt(GpuProgramParameters::ACT_WORLDVIEWPROJ_MATRIX, 0);
if (wvpMatrix.get() == NULL)
return false;
Function* vsEntry = vsProgram->getEntryPointFunction();
assert(vsEntry != NULL);
// Resolve input position parameter.
ParameterPtr positionIn = vsEntry->resolveInputParameter(Parameter::SPS_POSITION, 0, Parameter::SPC_POSITION_OBJECT_SPACE, GCT_FLOAT4);
if (positionIn.get() == NULL)
return false;
// Resolve output position parameter.
ParameterPtr positionOut = vsEntry->resolveOutputParameter(Parameter::SPS_POSITION, 0, Parameter::SPC_POSITION_PROJECTIVE_SPACE, GCT_FLOAT4);
if (positionOut.get() == NULL)
return false;
// Add dependency.
vsProgram->addDependency(FFP_LIB_TRANSFORM);
FunctionInvocation* transformFunc = OGRE_NEW FunctionInvocation(FFP_FUNC_TRANSFORM, FFP_VS_TRANSFORM, 0);
transformFunc->pushOperand(wvpMatrix, Operand::OPS_IN);
transformFunc->pushOperand(positionIn, Operand::OPS_IN);
transformFunc->pushOperand(positionOut, Operand::OPS_OUT);
vsEntry->addAtomInstace(transformFunc);
return true;
}