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

Function SetConstants

trinity/Tr2RenderUtils.cpp:128–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void SetConstants( Tr2ConstantBufferAL& buffer, unsigned constantTypeMask, const unsigned registerIndex, Tr2RenderContext& renderContext )
129{
130 for( unsigned i = SHADER_TYPE_FIRST; i != SHADER_TYPE_COUNT && constantTypeMask; ++i )
131 {
132 if( constantTypeMask & ( 1 << i ) )
133 {
134 renderContext.SetConstants( buffer, static_cast<ShaderType>( i ), registerIndex );
135 constantTypeMask &= ~( 1 << i );
136 }
137 }
138}

Callers 2

FillAndSetConstantsFunction · 0.70

Calls 1

SetConstantsMethod · 0.45

Tested by

no test coverage detected