Lines Matching defs:blend

21  * \brief Indexed blend operation tests (GL_EXT_draw_buffers_indexed)
192 void setCommonBlendState (const glw::Functions& gl, const BlendState& blend)
194 if (blend.enableBlend)
196 if (*blend.enableBlend)
202 if (blend.colorMask)
204 const BVec4& mask = *blend.colorMask;
209 if (blend.blendEq)
211 const Either<BlendEq, SeparateBlendEq>& blendEq = *blend.blendEq;
221 if (blend.blendFunc)
223 const Either<BlendFunc, SeparateBlendFunc>& blendFunc = *blend.blendFunc;
233 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to set common blend state.");
236 void setIndexedBlendState (const glw::Functions& gl, const BlendState& blend, deUint32 index)
238 if (blend.enableBlend)
240 if (*blend.enableBlend)
246 if (blend.colorMask)
248 const BVec4 mask = *blend.colorMask;
253 if (blend.blendEq)
255 const Either<BlendEq, SeparateBlendEq>& blendEq = *blend.blendEq;
265 if (blend.blendFunc)
267 const Either<BlendFunc, SeparateBlendFunc>& blendFunc = *blend.blendFunc;
277 GLU_EXPECT_NO_ERROR(gl.getError(), "Failed to set draw buffer specifig blend state.");
320 // Alpha should never be zero as advanced blend equations assume premultiplied alpha.
1073 const BlendState& blend)
1075 if (blend.enableBlend)
1077 if (*blend.enableBlend)
1083 if (blend.colorMask)
1085 const BVec4 mask = *blend.colorMask;
1090 if (blend.blendEq)
1092 const Either<BlendEq, SeparateBlendEq>& blendEq = *blend.blendEq;
1095 log << TestLog::Message << "Set blend equation: " << glu::getBlendEquationStr(blendEq.get<BlendEq>()) << "." << TestLog::EndMessage;
1097 log << TestLog::Message << "Set blend equation rgb: " << glu::getBlendEquationStr(blendEq.get<SeparateBlendEq>().rgb) << ", alpha: " << glu::getBlendEquationStr(blendEq.get<SeparateBlendEq>().alpha) << "." << TestLog::EndMessage;
1102 if (blend.blendFunc)
1104 const Either<BlendFunc, SeparateBlendFunc>& blendFunc = *blend.blendFunc;
1107 log << TestLog::Message << "Set blend function source: " << glu::getBlendFactorStr(blendFunc.get<BlendFunc>().src) << ", destination: " << glu::getBlendFactorStr(blendFunc.get<BlendFunc>().dst) << "." << TestLog::EndMessage;
1110 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;
1111 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;
1139 tcu::ScopedLogSection s(log, "PreCommonState", "First set common blend state");
1155 tcu::ScopedLogSection s(log, "PostCommonState", "After set common blend state");
1392 // Either don't set enable blend or disable blending
1403 // If pre common enables blend per attachment must disable it
1404 // If per attachment state changes blend state it must disable it
1664 TestCaseGroup* const preGroup = new TestCaseGroup(context, "overwrite_common", "Set common state and overwrite it with draw buffer blend state.");
1665 TestCaseGroup* const postGroup = new TestCaseGroup(context, "overwrite_indexed", "Set indexed blend state and overwrite it with common state.");
1666 TestCaseGroup* const randomGroup = new TestCaseGroup(context, "random", "Random indexed blend state tests.");