| 126 | } |
| 127 | |
| 128 | void 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 | } |
no test coverage detected