MCPcopy Create free account
hub / github.com/carbonengine/trinity / RebuildEffectHandles

Method RebuildEffectHandles

trinity/Shader/Parameter/Tr2FloatParameter.cpp:123–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void Tr2FloatParameter::RebuildEffectHandles( Tr2Shader* effectRes )
124{
125 if( !effectRes && m_reroutedValue )
126 {
127 // Ensure that rerouted values are not left with a dangling reference.
128 SetDestination( NULL, 0 );
129 }
130 m_isUsedByEffect = ( effectRes && !m_name.empty() && effectRes->GetConstant( m_name.c_str() ) );
131}
132
133bool Tr2FloatParameter::Initialize()
134{

Callers 3

ReleaseCachedDataMethod · 0.45
MapPassParametersMethod · 0.45

Calls 2

emptyMethod · 0.80
GetConstantMethod · 0.80

Tested by

no test coverage detected