static
| 30 | |
| 31 | // static |
| 32 | void AlphaBlendingState::Apply(ref_ptr<GraphicsContext> context) |
| 33 | { |
| 34 | // For Metal Rendering these settings must be set in the pipeline state. |
| 35 | auto const apiVersion = context->GetApiVersion(); |
| 36 | if (apiVersion == dp::ApiVersion::OpenGLES3) |
| 37 | { |
| 38 | GLFunctions::glBlendEquation(gl_const::GLAddBlend); |
| 39 | GLFunctions::glBlendFunc(gl_const::GLSrcAlpha, gl_const::GLOneMinusSrcAlpha); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | Blending::Blending(bool isEnabled) : m_isEnabled(isEnabled) {} |
| 44 |
no test coverage detected