Home | History | Annotate | Download | only in functional

Lines Matching full:blend

21  * \brief Indexed blend operation tests (GL_EXT_draw_buffers_indexed)
185 void setCommonBlendState (const glw::Functions& gl, const BlendState& blend)
187 if (blend.enableBlend)
189 if (*blend.enableBlend)
195 if (blend.colorMask)
197 const BVec4& mask = *blend.colorMask;
202 if (blend.blendEq)
204 const Either<BlendEq, SeparateBlendEq>& blendEq = *blend.blendEq;
214 if (blend.blendFunc)
216 const Either<BlendFunc, SeparateBlendFunc>& blendFunc = *blend.blendFunc;
226 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to set common blend state.");
229 void setIndexedBlendState (const glw::Functions& gl, const BlendState& blend, deUint32 index)
231 if (blend.enableBlend)
233 if (*blend.enableBlend)
239 if (blend.colorMask)
241 const BVec4 mask = *blend.colorMask;
246 if (blend.blendEq)
248 const Either<BlendEq, SeparateBlendEq>& blendEq = *blend.blendEq;
258 if (blend.blendFunc)
260 const Either<BlendFunc, SeparateBlendFunc>& blendFunc = *blend.blendFunc;
270 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to set draw buffer specifig blend state.");
313 // Alpha should never be zero as advanced blend equations assume premultiplied alpha.
1050 const BlendState& blend)
1052 if (blend.enableBlend)
1054 if (*blend.enableBlend)
1060 if (blend.colorMask)
1062 const BVec4 mask = *blend.colorMask;
1067 if (blend.blendEq)
1069 const Either<BlendEq, SeparateBlendEq>& blendEq = *blend.blendEq;
1072 log << TestLog::Message << "Set blend equation: " << glu::getBlendEquationStr(blendEq.get<BlendEq>()) << "." << TestLog::EndMessage;
1074 log << TestLog::Message << "Set blend equation rgb: " << glu::getBlendEquationStr(blendEq.get<SeparateBlendEq>().rgb) << ", alpha: " << glu::getBlendEquationStr(blendEq.get<SeparateBlendEq>().alpha) << "." << TestLog::EndMessage;
1079 if (blend.blendFunc)
1081 const Either<BlendFunc, SeparateBlendFunc>& blendFunc = *blend.blendFunc;
1084 log << TestLog::Message << "Set blend function source: " << glu::getBlendFactorStr(blendFunc.get<BlendFunc>().src) << ", destination: " << glu::getBlendFactorStr(blendFunc.get<BlendFunc>().dst) << "." << TestLog::EndMessage;
1087 log << TestLog::Message << "Set blend function rgb source: " << glu::getBlendFactorStr(blendFunc.get<SeparateBlendFunc>().rgb.src) << ", destination: " << glu::getBlendFactorStr(blendFunc.get<SeparateBlendFunc>().rgb.dst) << "." << TestLog::EndMessage;
1088 log << TestLog::Message << "Set blend function alpha source: " << glu::getBlendFactorStr(blendFunc.get<SeparateBlendFunc>().alpha.src) << ", destination: " << glu::getBlendFactorStr(blendFunc.get<SeparateBlendFunc>().alpha.dst) << "." << TestLog::EndMessage;
1116 tcu::ScopedLogSection s(log, "PreCommonState", "First set common blend state");
1132 tcu::ScopedLogSection s(log, "PostCommonState", "After set common blend state");
1369 // Either don't set enable blend or disable blending
1380 // If pre common enables blend per attachment must disable it
1381 // If per attachment state changes blend state it must disable it
1641 TestCaseGroup* const preGroup = new TestCaseGroup(context, "overwrite_common", "Set common state and overwrite it with draw buffer blend state.");
1642 TestCaseGroup* const postGroup = new TestCaseGroup(context, "overwrite_indexed", "Set indexed blend state and overwrite it with common state.");
1643 TestCaseGroup* const randomGroup = new TestCaseGroup(context, "random", "Random indexed blend state tests.");