--------------------------------------------------------------------------------------
| 159 | |
| 160 | // -------------------------------------------------------------------------------------- |
| 161 | void Tr2Shader::ApplyAllStateForPass( uint32_t techniqueIndex, uint32_t passIndex, Tr2RenderContext& renderContext ) const |
| 162 | { |
| 163 | auto& technique = m_effect.techniques[techniqueIndex]; |
| 164 | |
| 165 | const Tr2Pass& pass = technique.passes[passIndex]; |
| 166 | |
| 167 | renderContext.m_esm.ApplyShaderProgram( pass.shaderProgram ); |
| 168 | |
| 169 | renderContext.m_esm.ApplyRenderStates( pass.renderStates ); |
| 170 | } |
| 171 | |
| 172 | // -------------------------------------------------------------------------------------- |
| 173 | uint32_t Tr2Shader::ApplyShaderOverride( uint32_t techniqueIndex, uint32_t passIndex, const Tr2Shader& overrideShader, uint32_t overridePassIndex, Tr2RenderContext& renderContext ) const |
no test coverage detected