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

Method SetDestination

trinity/Shader/Parameter/Tr2FloatParameter.cpp:72–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void Tr2FloatParameter::SetDestination( void* dest, size_t size )
73{
74 if( size >= sizeof( float ) )
75 {
76 m_reroutedValue = (float*)dest;
77 *m_reroutedValue = m_value;
78
79 for( auto it = m_bindings.begin(); it != m_bindings.end(); ++it )
80 {
81 ( *it )->RerouteDestination( m_reroutedValue );
82 }
83 }
84 else
85 {
86 m_reroutedValue = NULL;
87
88 for( auto it = m_bindings.begin(); it != m_bindings.end(); ++it )
89 {
90 ( *it )->RerouteDestination( &m_value );
91 }
92 }
93}
94
95void Tr2FloatParameter::GetDestination( void*& dest, size_t& size )
96{

Callers 3

OnListModifiedMethod · 0.45
MapPassParametersMethod · 0.45

Calls 3

RerouteDestinationMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected