• Home
  • Raw
  • Download

Lines Matching refs:bbox

94 static ProjectedBBox projectBoundingBox (const BoundingBox& bbox)  in projectBoundingBox()  argument
96 const float wMin = de::max(0.0f, bbox.min.w()); // clamp to w=0 as extension requires in projectBoundingBox()
97 const float wMax = de::max(0.0f, bbox.max.w()); in projectBoundingBox()
100 retVal.min = tcu::min(bbox.min.swizzle(0, 1, 2) / wMin, in projectBoundingBox()
101 bbox.min.swizzle(0, 1, 2) / wMax); in projectBoundingBox()
102 retVal.max = tcu::max(bbox.max.swizzle(0, 1, 2) / wMin, in projectBoundingBox()
103 bbox.max.swizzle(0, 1, 2) / wMax); in projectBoundingBox()
107 static tcu::IVec4 getViewportBoundingBoxArea (const ProjectedBBox& bbox, const tcu::IVec2& viewport… in getViewportBoundingBoxArea() argument
112 vertexBox.x() = (bbox.min.x() * 0.5f + 0.5f) * (float)viewportSize.x(); in getViewportBoundingBoxArea()
113 vertexBox.y() = (bbox.min.y() * 0.5f + 0.5f) * (float)viewportSize.y(); in getViewportBoundingBoxArea()
114 vertexBox.z() = (bbox.max.x() * 0.5f + 0.5f) * (float)viewportSize.x(); in getViewportBoundingBoxArea()
115 vertexBox.w() = (bbox.max.y() * 0.5f + 0.5f) * (float)viewportSize.y(); in getViewportBoundingBoxArea()
235 bool verifyState (glu::CallLogWrapper& gl, const BoundingBox& bbox) const;
302 bool QueryCase::verifyState (glu::CallLogWrapper& gl, const BoundingBox& bbox) const in verifyState()
323 if (state[ndx] != bbox.getComponentAccess(ndx)) in verifyState()
332 << bbox.min.x() << ", " << bbox.min.y() << ", " << bbox.min.z() << ", " << bbox.min.w() << ", " in verifyState()
333 << bbox.max.x() << ", " << bbox.max.y() << ", " << bbox.max.z() << ", " << bbox.max.w() << "]" in verifyState()
357 …if (state[ndx] != StateQueryUtil::roundGLfloatToNearestIntegerHalfDown<glw::GLint>(bbox.getCompone… in verifyState()
358 …state[ndx] != StateQueryUtil::roundGLfloatToNearestIntegerHalfUp<glw::GLint>(bbox.getComponentAcce… in verifyState()
370 …ndDown = StateQueryUtil::roundGLfloatToNearestIntegerHalfDown<glw::GLint>(bbox.getComponentAccess(… in verifyState()
371 …const glw::GLint roundUp = StateQueryUtil::roundGLfloatToNearestIntegerHalfUp<glw::GLint>(bbox.get… in verifyState()
406 …if (state[ndx] != StateQueryUtil::roundGLfloatToNearestIntegerHalfDown<glw::GLint64>(bbox.getCompo… in verifyState()
407 …state[ndx] != StateQueryUtil::roundGLfloatToNearestIntegerHalfUp<glw::GLint64>(bbox.getComponentAc… in verifyState()
419 …Down = StateQueryUtil::roundGLfloatToNearestIntegerHalfDown<glw::GLint64>(bbox.getComponentAccess(… in verifyState()
420 …undUp = StateQueryUtil::roundGLfloatToNearestIntegerHalfUp<glw::GLint64>(bbox.getComponentAccess(… in verifyState()
457 if (state[ndx] != ((bbox.getComponentAccess(ndx) != 0.0f) ? (GL_TRUE) : (GL_FALSE))) in verifyState()
472 builder << ((bbox.getComponentAccess(ndx) != 0.0f) ? ("GL_TRUE") : ("GL_FALSE")); in verifyState()
554 BoundingBox bbox; member
781 config.bbox.min = tcu::Vec4(config.patternPos.x(), config.patternPos.y(), 0.0f, 1.0f); in generateRandomConfig()
782 …config.bbox.max = tcu::Vec4(config.patternPos.x() + config.patternSize.x(), config.patternPos.y(… in generateRandomConfig()
787 config.bbox.min.x() -= rnd.getFloat() * 0.5f; in generateRandomConfig()
788 config.bbox.min.y() -= rnd.getFloat() * 0.5f; in generateRandomConfig()
789 config.bbox.min.z() -= rnd.getFloat() * 0.5f; in generateRandomConfig()
791 config.bbox.max.x() += rnd.getFloat() * 0.5f; in generateRandomConfig()
792 config.bbox.max.y() += rnd.getFloat() * 0.5f; in generateRandomConfig()
793 config.bbox.max.z() += rnd.getFloat() * 0.5f; in generateRandomConfig()
798 config.bbox.min.x() += rnd.getFloat() * 0.4f * config.patternSize.x(); in generateRandomConfig()
799 config.bbox.min.y() += rnd.getFloat() * 0.4f * config.patternSize.y(); in generateRandomConfig()
801 config.bbox.max.x() -= rnd.getFloat() * 0.4f * config.patternSize.x(); in generateRandomConfig()
802 config.bbox.max.y() -= rnd.getFloat() * 0.4f * config.patternSize.y(); in generateRandomConfig()
864 << "\t" << config.bbox.min << "\n" in setupRender()
865 << "\t" << config.bbox.max << "\n" in setupRender()
869 …gl.primitiveBoundingBox(config.bbox.min.x(), config.bbox.min.y(), config.bbox.min.z(), config.bbox in setupRender()
870 config.bbox.max.x(), config.bbox.max.y(), config.bbox.max.z(), config.bbox.max.w()); in setupRender()
895 …gl.uniform4f(bboxMinPos, config.bbox.min.x(), config.bbox.min.y(), config.bbox.min.z(), config.bbo… in setupRender()
896 …gl.uniform4f(bboxMaxPos, config.bbox.max.x(), config.bbox.max.y(), config.bbox.max.z(), config.bbo… in setupRender()
1313 const ProjectedBBox projectedBBox = projectBoundingBox(config.bbox); in verifyRenderResult()
1834 const ProjectedBBox projectedBBox = projectBoundingBox(config.bbox); in verifyRenderResult()
2409 …wport, const std::vector<GeneratedPoint>& refPoints, const ProjectedBBox& bbox, int& logFloodCount…
2410 …wport, const std::vector<GeneratedPoint>& refPoints, const ProjectedBBox& bbox, int& logFloodCount…
2411 …::Surface& viewport, const GeneratedPoint& refPoint, const ProjectedBBox& bbox, ResultPointType po…
2412 …tcu::Surface& viewport, const GeneratedPoint& refPoint, const tcu::IVec4& bbox, ResultPointType po…
2743 config.bbox.min -= tcu::Vec4(0.07f * patternScale.x(), 0.07f * patternScale.y(), 0.0f, 0.0f); in generateConfig()
2744 config.bbox.max += tcu::Vec4(0.07f * patternScale.x(), 0.07f * patternScale.y(), 0.0f, 0.0f); in generateConfig()
2748 config.bbox.min -= tcu::Vec4(0.05f * patternScale.x(), 0.02f * patternScale.y(), 0.0f, 0.0f); in generateConfig()
2749 config.bbox.max += tcu::Vec4(0.05f * patternScale.x(), 0.03f * patternScale.y(), 0.0f, 0.0f); in generateConfig()
2826 const ProjectedBBox projectedBBox = projectBoundingBox(config.bbox); in verifyRenderResult()
2982 …wport, const std::vector<GeneratedPoint>& refPoints, const ProjectedBBox& bbox, int& logFloodCount… in verifyNarrowPointPattern() argument
2993 if (refPoint.center.x() < bbox.min.x() - epsilon || in verifyNarrowPointPattern()
2994 refPoint.center.y() < bbox.min.y() - epsilon || in verifyNarrowPointPattern()
2995 refPoint.center.x() > bbox.max.x() + epsilon || in verifyNarrowPointPattern()
2996 refPoint.center.y() > bbox.max.y() + epsilon) in verifyNarrowPointPattern()
3044 …wport, const std::vector<GeneratedPoint>& refPoints, const ProjectedBBox& bbox, int& logFloodCount… in verifyWidePointPattern() argument
3053 if (refPoint.center.x() >= bbox.min.x() && in verifyWidePointPattern()
3054 refPoint.center.y() >= bbox.min.y() && in verifyWidePointPattern()
3055 refPoint.center.x() <= bbox.max.x() && in verifyWidePointPattern()
3056 refPoint.center.y() <= bbox.max.y()) in verifyWidePointPattern()
3059 anyError |= !verifyWidePoint(viewport, refPoint, bbox, POINT_FULL, logFloodCounter); in verifyWidePointPattern()
3061 else if (refPoint.center.x() >= bbox.min.x() + (float)refPoint.size / 2.0f && in verifyWidePointPattern()
3062 refPoint.center.y() >= bbox.min.y() - (float)refPoint.size / 2.0f && in verifyWidePointPattern()
3063 refPoint.center.x() <= bbox.max.x() + (float)refPoint.size / 2.0f && in verifyWidePointPattern()
3064 refPoint.center.y() <= bbox.max.y() - (float)refPoint.size / 2.0f) in verifyWidePointPattern()
3067 anyError |= !verifyWidePoint(viewport, refPoint, bbox, POINT_PARTIAL, logFloodCounter); in verifyWidePointPattern()
3074 …::Surface& viewport, const GeneratedPoint& refPoint, const ProjectedBBox& bbox, ResultPointType po… in verifyWidePoint() argument
3079 …const tcu::IVec4 viewportBBoxArea = getViewportBoundingBoxArea(bbox, tcu::IVec2(viewport.getWidth(… in verifyWidePoint()
3134 …tcu::Surface& viewport, const GeneratedPoint& refPoint, const tcu::IVec4& bbox, ResultPointType po… in verifyWidePointAt() argument
3148 if (y < bbox.y() || y < 0) in verifyWidePointAt()
3150 if (y < bbox.y()) in verifyWidePointAt()
3176 … widthClipped = (pointType == POINT_PARTIAL) && (range.x() <= bbox.x() || range.y() >= bbox.z()); in verifyWidePointAt()
3185 if (y >= bbox.w() || y >= viewport.getHeight()) in verifyWidePointAt()
3187 if (y >= bbox.w()) in verifyWidePointAt()
3213 … bboxClipped = (pointType == POINT_PARTIAL) && (range.x() <= bbox.x() || range.y() >= bbox.z()-1); in verifyWidePointAt()
3241 …pped = (pointType == POINT_PARTIAL) && (unionRange.x() <= bbox.x() || unionRange.y() >= bbox.z()-… in verifyWidePointAt()