Lines Matching refs:blendState
145 const gl::BlendState &blendState = state.getBlendState(); in syncState() local
146 if (blendState.sourceBlendRGB != mCurBlendState.sourceBlendRGB || in syncState()
147 blendState.destBlendRGB != mCurBlendState.destBlendRGB || in syncState()
148 blendState.sourceBlendAlpha != mCurBlendState.sourceBlendAlpha || in syncState()
149 blendState.destBlendAlpha != mCurBlendState.destBlendAlpha) in syncState()
165 const gl::BlendState &blendState = state.getBlendState(); in syncState() local
166 if (blendState.blendEquationRGB != mCurBlendState.blendEquationRGB || in syncState()
167 blendState.blendEquationAlpha != mCurBlendState.blendEquationAlpha) in syncState()
187 const gl::BlendState &blendState = state.getBlendState(); in syncState() local
188 if (blendState.colorMaskRed != mCurBlendState.colorMaskRed || in syncState()
189 blendState.colorMaskGreen != mCurBlendState.colorMaskGreen || in syncState()
190 blendState.colorMaskBlue != mCurBlendState.colorMaskBlue || in syncState()
191 blendState.colorMaskAlpha != mCurBlendState.colorMaskAlpha) in syncState()
330 const gl::BlendState &blendState = glState.getBlendState(); in setBlendDepthRasterStates() local
350 setBlendEnabled(blendState.blend); in setBlendDepthRasterStates()
353 setBlendColor(blendState, blendColor); in setBlendDepthRasterStates()
356 setBlendFuncsEquations(blendState); in setBlendDepthRasterStates()
362 setColorMask(framebuffer, blendState.colorMaskRed, blendState.colorMaskBlue, in setBlendDepthRasterStates()
363 blendState.colorMaskGreen, blendState.colorMaskAlpha); in setBlendDepthRasterStates()
702 void StateManager9::setBlendColor(const gl::BlendState &blendState, const gl::ColorF &blendColor) in setBlendColor() argument
704 if (!blendState.blend) in setBlendColor()
707 if (blendState.sourceBlendRGB != GL_CONSTANT_ALPHA && in setBlendColor()
708 blendState.sourceBlendRGB != GL_ONE_MINUS_CONSTANT_ALPHA && in setBlendColor()
709 blendState.destBlendRGB != GL_CONSTANT_ALPHA && in setBlendColor()
710 blendState.destBlendRGB != GL_ONE_MINUS_CONSTANT_ALPHA) in setBlendColor()
725 void StateManager9::setBlendFuncsEquations(const gl::BlendState &blendState) in setBlendFuncsEquations() argument
727 if (!blendState.blend) in setBlendFuncsEquations()
732 device->SetRenderState(D3DRS_SRCBLEND, gl_d3d9::ConvertBlendFunc(blendState.sourceBlendRGB)); in setBlendFuncsEquations()
733 device->SetRenderState(D3DRS_DESTBLEND, gl_d3d9::ConvertBlendFunc(blendState.destBlendRGB)); in setBlendFuncsEquations()
734 device->SetRenderState(D3DRS_BLENDOP, gl_d3d9::ConvertBlendOp(blendState.blendEquationRGB)); in setBlendFuncsEquations()
736 if (blendState.sourceBlendRGB != blendState.sourceBlendAlpha || in setBlendFuncsEquations()
737 blendState.destBlendRGB != blendState.destBlendAlpha || in setBlendFuncsEquations()
738 blendState.blendEquationRGB != blendState.blendEquationAlpha) in setBlendFuncsEquations()
743 gl_d3d9::ConvertBlendFunc(blendState.sourceBlendAlpha)); in setBlendFuncsEquations()
745 gl_d3d9::ConvertBlendFunc(blendState.destBlendAlpha)); in setBlendFuncsEquations()
747 gl_d3d9::ConvertBlendOp(blendState.blendEquationAlpha)); in setBlendFuncsEquations()
754 mCurBlendState.sourceBlendRGB = blendState.sourceBlendRGB; in setBlendFuncsEquations()
755 mCurBlendState.destBlendRGB = blendState.destBlendRGB; in setBlendFuncsEquations()
756 mCurBlendState.blendEquationRGB = blendState.blendEquationRGB; in setBlendFuncsEquations()
757 mCurBlendState.blendEquationAlpha = blendState.blendEquationAlpha; in setBlendFuncsEquations()