Lines Matching defs:dst

67 void clearMultisampleColorBuffer	(const tcu::PixelBufferAccess& dst, const Vec4& v,	const WindowRectangle& r)	{ tcu::clear(tcu::getSubregion(dst, 0, r.left, r.bottom, dst.getWidth(), r.width, r.height), v);				}
68 void clearMultisampleColorBuffer (const tcu::PixelBufferAccess& dst, const IVec4& v, const WindowRectangle& r) { tcu::clear(tcu::getSubregion(dst, 0, r.left, r.bottom, dst.getWidth(), r.width, r.height), v); }
69 void clearMultisampleColorBuffer (const tcu::PixelBufferAccess& dst, const UVec4& v, const WindowRectangle& r) { tcu::clear(tcu::getSubregion(dst, 0, r.left, r.bottom, dst.getWidth(), r.width, r.height), v.cast<int>()); }
70 void clearMultisampleDepthBuffer (const tcu::PixelBufferAccess& dst, float v, const WindowRectangle& r) { tcu::clearDepth(tcu::getSubregion(dst, 0, r.left, r.bottom, dst.getWidth(), r.width, r.height), v); }
71 void clearMultisampleStencilBuffer (const tcu::PixelBufferAccess& dst, int v, const WindowRectangle& r) { tcu::clearStencil(tcu::getSubregion(dst, 0, r.left, r.bottom, dst.getWidth(), r.width, r.height), v); }
368 const Vec4& dst = m_sampleRegister[regSampleNdx].clampedBlendDstColor; \
371 DE_UNREF(dst); \
384 case BLENDFUNC_DST_COLOR: SAMPLE_REGISTER_BLEND_FACTOR(FACTOR_NAME, dst.swizzle(0,1,2)) break; \
385 case BLENDFUNC_ONE_MINUS_DST_COLOR: SAMPLE_REGISTER_BLEND_FACTOR(FACTOR_NAME, Vec3(1.0f) - dst.swizzle(0,1,2)) break; \
388 case BLENDFUNC_DST_ALPHA: SAMPLE_REGISTER_BLEND_FACTOR(FACTOR_NAME, Vec3(dst.w())) break; \
389 case BLENDFUNC_ONE_MINUS_DST_ALPHA: SAMPLE_REGISTER_BLEND_FACTOR(FACTOR_NAME, Vec3(1.0f - dst.w())) break; \
394 case BLENDFUNC_SRC_ALPHA_SATURATE: SAMPLE_REGISTER_BLEND_FACTOR(FACTOR_NAME, Vec3(de::min(src.w(), 1.0f - dst.w()))) break; \
419 const Vec4& dst = m_sampleRegister[regSampleNdx].clampedBlendDstColor; \
422 DE_UNREF(dst); \
435 case BLENDFUNC_DST_COLOR: SAMPLE_REGISTER_BLEND_FACTOR(FACTOR_NAME, dst.w()) break; \
436 case BLENDFUNC_ONE_MINUS_DST_COLOR: SAMPLE_REGISTER_BLEND_FACTOR(FACTOR_NAME, 1.0f - dst.w()) break; \
439 case BLENDFUNC_DST_ALPHA: SAMPLE_REGISTER_BLEND_FACTOR(FACTOR_NAME, dst.w()) break; \
440 case BLENDFUNC_ONE_MINUS_DST_ALPHA: SAMPLE_REGISTER_BLEND_FACTOR(FACTOR_NAME, 1.0f - dst.w()) break; \
503 inline float multiply (float src, float dst) { return src*dst; }
504 inline float screen (float src, float dst) { return src + dst - src*dst; }
505 inline float darken (float src, float dst) { return de::min(src, dst); }
506 inline float lighten (float src, float dst) { return de::max(src, dst); }
507 inline float difference (float src, float dst) { return de::abs(dst-src); }
508 inline float exclusion (float src, float dst) { return src + dst - 2.0f*src*dst; }
510 inline float overlay (float src, float dst)
512 if (dst <= 0.5f)
513 return 2.0f*src*dst;
515 return 1.0f - 2.0f*(1.0f-src)*(1.0f-dst);
518 inline float colordodge (float src, float dst)
520 if (dst <= 0.0f)
523 return de::min(1.0f, dst/(1.0f-src));
528 inline float colorburn (float src, float dst)
530 if (dst >= 1.0f)
533 return 1.0f - de::min(1.0f, (1.0f-dst)/src);
538 inline float hardlight (float src, float dst)
541 return 2.0f*src*dst;
543 return 1.0f - 2.0f*(1.0f-src)*(1.0f-dst);
546 inline float softlight (float src, float dst)
549 return dst - (1.0f - 2.0f*src)*dst*(1.0f-dst);
550 else if (dst <= 0.25f)
551 return dst + (2.0f*src - 1.0f)*dst*((16.0f*dst - 12.0f)*dst + 3.0f);
553 return dst + (2.0f*src - 1.0f)*(deFloatSqrt(dst)-dst);
934 // Put dst color to register, doing srgb-to-linear conversion if needed.