Lines Matching refs:tcu
51 using tcu::RasterizationArguments;
52 using tcu::TriangleSceneSpec;
53 using tcu::PointSceneSpec;
54 using tcu::LineSceneSpec;
55 using tcu::LineInterpolationMethod;
95 …void drawPrimitives (tcu::Surface& result, const std::vector<tcu::Vec4>& vertexData, glw::GLe…
96 …void drawPrimitives (tcu::Surface& result, const std::vector<tcu::Vec4>& vertexData, const st…
131 …throw tcu::NotSupportedError(std::string("Render target size must be at least ") + de::toString(m_… in init()
139 …throw tcu::NotSupportedError(std::string("Support for line width ") + de::toString(m_lineWidth) + … in init()
141 …m_testCtx.getLog() << tcu::TestLog::Message << "ALIASED_LINE_WIDTH_RANGE = [" << range[0] << ", " … in init()
150 …throw tcu::NotSupportedError(std::string("Support for point size ") + de::toString(m_pointSize) + … in init()
152 …m_testCtx.getLog() << tcu::TestLog::Message << "ALIASED_POINT_SIZE_RANGE = [" << range[0] << ", " … in init()
160 …m_testCtx.getLog() << tcu::TestLog::Message << "Sample count = " << m_numSamples << tcu::TestLog::… in init()
161 …m_testCtx.getLog() << tcu::TestLog::Message << "SUBPIXEL_BITS = " << m_subpixelBits << tcu::TestLo… in init()
166 tcu::StringTemplate vertexSource (s_shaderVertexTemplate); in init()
167 tcu::StringTemplate fragmentSource (s_shaderFragmentTemplate); in init()
172 throw tcu::TestError("could not create shader"); in init()
185 void BaseRenderingCase::drawPrimitives (tcu::Surface& result, const std::vector<tcu::Vec4>& vertexD… in drawPrimitives()
188 const std::vector<tcu::Vec4> colorData(vertexData.size(), tcu::Vec4(1.0f, 1.0f, 1.0f, 1.0f)); in drawPrimitives()
193 …aseRenderingCase::drawPrimitives (tcu::Surface& result, const std::vector<tcu::Vec4>& vertexData, … in drawPrimitives()
228 …virtual void generateTriangles (int iteration, std::vector<tcu::Vec4>& outData, std::vector<Tria…
252 …const tcu::ScopedLogSection section (m_testCtx.getLog(), iterationDescription, iterationD… in iterate()
253 tcu::Surface resultImage (m_renderSize, m_renderSize); in iterate()
254 std::vector<tcu::Vec4> drawBuffer; in iterate()
304 …virtual void generateLines (int iteration, std::vector<tcu::Vec4>& outData, std::vector<LineSce…
338 …const tcu::ScopedLogSection section (m_testCtx.getLog(), iterationDescription, iterationDes… in iterate()
339 tcu::Surface resultImage (m_renderSize, m_renderSize); in iterate()
340 std::vector<tcu::Vec4> drawBuffer; in iterate()
411 …void generatePoints (int iteration, std::vector<tcu::Vec4>& outData, std::vector<PointSceneSpe…
440 …const tcu::ScopedLogSection section (m_testCtx.getLog(), iterationDescription, iterationDes… in iterate()
441 tcu::Surface resultImage (m_renderSize, m_renderSize); in iterate()
442 std::vector<tcu::Vec4> drawBuffer; in iterate()
495 void PointCase::generatePoints (int iteration, std::vector<tcu::Vec4>& outData, std::vector<PointSc… in generatePoints()
503 outData[0] = tcu::Vec4( 0.2f, 0.8f, 0.0f, 1.0f); in generatePoints()
504 outData[1] = tcu::Vec4( 0.5f, 0.2f, 0.0f, 1.0f); in generatePoints()
505 outData[2] = tcu::Vec4( 0.5f, 0.3f, 0.0f, 1.0f); in generatePoints()
506 outData[3] = tcu::Vec4(-0.5f, 0.2f, 0.0f, 1.0f); in generatePoints()
507 outData[4] = tcu::Vec4(-0.2f, -0.4f, 0.0f, 1.0f); in generatePoints()
508 outData[5] = tcu::Vec4(-0.4f, 0.2f, 0.0f, 1.0f); in generatePoints()
512 outData[0] = tcu::Vec4(-0.499f, 0.128f, 0.0f, 1.0f); in generatePoints()
513 outData[1] = tcu::Vec4(-0.501f, -0.3f, 0.0f, 1.0f); in generatePoints()
514 outData[2] = tcu::Vec4( 0.11f, -0.2f, 0.0f, 1.0f); in generatePoints()
515 outData[3] = tcu::Vec4( 0.11f, 0.2f, 0.0f, 1.0f); in generatePoints()
516 outData[4] = tcu::Vec4( 0.88f, 0.9f, 0.0f, 1.0f); in generatePoints()
517 outData[5] = tcu::Vec4( 0.4f, 1.2f, 0.0f, 1.0f); in generatePoints()
521 outData[0] = tcu::Vec4( -0.9f, -0.3f, 0.0f, 1.0f); in generatePoints()
522 outData[1] = tcu::Vec4( 0.3f, -0.9f, 0.0f, 1.0f); in generatePoints()
523 outData[2] = tcu::Vec4( -0.4f, -0.1f, 0.0f, 1.0f); in generatePoints()
524 outData[3] = tcu::Vec4(-0.11f, 0.2f, 0.0f, 1.0f); in generatePoints()
525 outData[4] = tcu::Vec4( 0.88f, 0.7f, 0.0f, 1.0f); in generatePoints()
526 outData[5] = tcu::Vec4( -0.4f, 0.4f, 0.0f, 1.0f); in generatePoints()
538 …stCtx.getLog() << tcu::TestLog::Message << "Rendering " << outPoints.size() << " point(s): (point … in generatePoints()
540 …m_testCtx.getLog() << tcu::TestLog::Message << "Point " << (pointNdx+1) << ":\t" << outPoints[poin… in generatePoints()
574 m_testCtx.getLog() << tcu::TestLog::Message in iterate()
576 << tcu::TestLog::EndMessage; in iterate()
593 m_testCtx.getLog() << tcu::TestLog::Message in iterate()
596 << tcu::TestLog::EndMessage; in iterate()
658 const tcu::RGBA threshold(12, 12, 12, 12); in iterate()
663 tcu::RGBA color(pixels[y * testAreaWidth + x]); in iterate()
664 TCU_CHECK(compareThreshold(color, tcu::RGBA::green(), threshold)); in iterate()
678 …void generateTriangles (int iteration, std::vector<tcu::Vec4>& outData, std::vector<TriangleSceneS…
691 void TrianglesCase::generateTriangles (int iteration, std::vector<tcu::Vec4>& outData, std::vector<… in generateTriangles()
699 outData[0] = tcu::Vec4( 0.2f, 0.8f, 0.0f, 1.0f); in generateTriangles()
700 outData[1] = tcu::Vec4( 0.5f, 0.2f, 0.0f, 1.0f); in generateTriangles()
701 outData[2] = tcu::Vec4( 0.5f, 0.3f, 0.0f, 1.0f); in generateTriangles()
702 outData[3] = tcu::Vec4(-0.5f, 0.2f, 0.0f, 1.0f); in generateTriangles()
703 outData[4] = tcu::Vec4(-1.5f, -0.4f, 0.0f, 1.0f); in generateTriangles()
704 outData[5] = tcu::Vec4(-0.4f, 0.2f, 0.0f, 1.0f); in generateTriangles()
708 outData[0] = tcu::Vec4(-0.499f, 0.128f, 0.0f, 1.0f); in generateTriangles()
709 outData[1] = tcu::Vec4(-0.501f, -0.3f, 0.0f, 1.0f); in generateTriangles()
710 outData[2] = tcu::Vec4( 0.11f, -0.2f, 0.0f, 1.0f); in generateTriangles()
711 outData[3] = tcu::Vec4( 0.11f, 0.2f, 0.0f, 1.0f); in generateTriangles()
712 outData[4] = tcu::Vec4( 0.88f, 0.9f, 0.0f, 1.0f); in generateTriangles()
713 outData[5] = tcu::Vec4( 0.4f, 1.2f, 0.0f, 1.0f); in generateTriangles()
717 outData[0] = tcu::Vec4( -0.9f, -0.3f, 0.0f, 1.0f); in generateTriangles()
718 outData[1] = tcu::Vec4( 1.1f, -0.9f, 0.0f, 1.0f); in generateTriangles()
719 outData[2] = tcu::Vec4( -1.1f, -0.1f, 0.0f, 1.0f); in generateTriangles()
720 outData[3] = tcu::Vec4(-0.11f, 0.2f, 0.0f, 1.0f); in generateTriangles()
721 outData[4] = tcu::Vec4( 0.88f, 0.7f, 0.0f, 1.0f); in generateTriangles()
722 outData[5] = tcu::Vec4( -0.4f, 0.4f, 0.0f, 1.0f); in generateTriangles()
736 …m_testCtx.getLog() << tcu::TestLog::Message << "Rendering " << outTriangles.size() << " triangle(s… in generateTriangles()
740 << tcu::TestLog::Message in generateTriangles()
745 << tcu::TestLog::EndMessage; in generateTriangles()
754 …void generateTriangles (int iteration, std::vector<tcu::Vec4>& outData, std::vector<TriangleSceneS…
762 void TriangleStripCase::generateTriangles (int iteration, std::vector<tcu::Vec4>& outData, std::vec… in generateTriangles()
770 outData[0] = tcu::Vec4(-0.504f, 0.8f, 0.0f, 1.0f); in generateTriangles()
771 outData[1] = tcu::Vec4(-0.2f, -0.2f, 0.0f, 1.0f); in generateTriangles()
772 outData[2] = tcu::Vec4(-0.2f, 0.199f, 0.0f, 1.0f); in generateTriangles()
773 outData[3] = tcu::Vec4( 0.5f, 0.201f, 0.0f, 1.0f); in generateTriangles()
774 outData[4] = tcu::Vec4( 1.5f, 0.4f, 0.0f, 1.0f); in generateTriangles()
778 outData[0] = tcu::Vec4(-0.499f, 0.129f, 0.0f, 1.0f); in generateTriangles()
779 outData[1] = tcu::Vec4(-0.501f, -0.3f, 0.0f, 1.0f); in generateTriangles()
780 outData[2] = tcu::Vec4( 0.11f, -0.2f, 0.0f, 1.0f); in generateTriangles()
781 outData[3] = tcu::Vec4( 0.11f, -0.31f, 0.0f, 1.0f); in generateTriangles()
782 outData[4] = tcu::Vec4( 0.88f, 0.9f, 0.0f, 1.0f); in generateTriangles()
786 outData[0] = tcu::Vec4( -0.9f, -0.3f, 0.0f, 1.0f); in generateTriangles()
787 outData[1] = tcu::Vec4( 1.1f, -0.9f, 0.0f, 1.0f); in generateTriangles()
788 outData[2] = tcu::Vec4(-0.87f, -0.1f, 0.0f, 1.0f); in generateTriangles()
789 outData[3] = tcu::Vec4(-0.11f, 0.19f, 0.0f, 1.0f); in generateTriangles()
790 outData[4] = tcu::Vec4( 0.88f, 0.7f, 0.0f, 1.0f); in generateTriangles()
808 …m_testCtx.getLog() << tcu::TestLog::Message << "Rendering triangle strip, " << outData.size() << "… in generateTriangles()
812 << tcu::TestLog::Message in generateTriangles()
814 << tcu::TestLog::EndMessage; in generateTriangles()
823 …void generateTriangles (int iteration, std::vector<tcu::Vec4>& outData, std::vector<TriangleSceneS…
831 void TriangleFanCase::generateTriangles (int iteration, std::vector<tcu::Vec4>& outData, std::vecto… in generateTriangles()
839 outData[0] = tcu::Vec4( 0.01f, 0.0f, 0.0f, 1.0f); in generateTriangles()
840 outData[1] = tcu::Vec4( 0.5f, 0.2f, 0.0f, 1.0f); in generateTriangles()
841 outData[2] = tcu::Vec4( 0.46f, 0.3f, 0.0f, 1.0f); in generateTriangles()
842 outData[3] = tcu::Vec4(-0.5f, 0.2f, 0.0f, 1.0f); in generateTriangles()
843 outData[4] = tcu::Vec4(-1.5f, -0.4f, 0.0f, 1.0f); in generateTriangles()
847 outData[0] = tcu::Vec4(-0.499f, 0.128f, 0.0f, 1.0f); in generateTriangles()
848 outData[1] = tcu::Vec4(-0.501f, -0.3f, 0.0f, 1.0f); in generateTriangles()
849 outData[2] = tcu::Vec4( 0.11f, -0.2f, 0.0f, 1.0f); in generateTriangles()
850 outData[3] = tcu::Vec4( 0.11f, 0.2f, 0.0f, 1.0f); in generateTriangles()
851 outData[4] = tcu::Vec4( 0.88f, 0.9f, 0.0f, 1.0f); in generateTriangles()
855 outData[0] = tcu::Vec4( -0.9f, -0.3f, 0.0f, 1.0f); in generateTriangles()
856 outData[1] = tcu::Vec4( 1.1f, -0.9f, 0.0f, 1.0f); in generateTriangles()
857 outData[2] = tcu::Vec4( 0.7f, -0.1f, 0.0f, 1.0f); in generateTriangles()
858 outData[3] = tcu::Vec4( 0.11f, 0.2f, 0.0f, 1.0f); in generateTriangles()
859 outData[4] = tcu::Vec4( 0.88f, 0.7f, 0.0f, 1.0f); in generateTriangles()
877 …m_testCtx.getLog() << tcu::TestLog::Message << "Rendering triangle fan, " << outData.size() << " v… in generateTriangles()
881 << tcu::TestLog::Message in generateTriangles()
883 << tcu::TestLog::EndMessage; in generateTriangles()
892 …void generateLines (int iteration, std::vector<tcu::Vec4>& outData, std::vector<LineSceneSpec::Sce…
900 void LinesCase::generateLines (int iteration, std::vector<tcu::Vec4>& outData, std::vector<LineScen… in generateLines()
908 outData[0] = tcu::Vec4( 0.01f, 0.0f, 0.0f, 1.0f); in generateLines()
909 outData[1] = tcu::Vec4( 0.5f, 0.2f, 0.0f, 1.0f); in generateLines()
910 outData[2] = tcu::Vec4( 0.46f, 0.3f, 0.0f, 1.0f); in generateLines()
911 outData[3] = tcu::Vec4(-0.3f, 0.2f, 0.0f, 1.0f); in generateLines()
912 outData[4] = tcu::Vec4(-1.5f, -0.4f, 0.0f, 1.0f); in generateLines()
913 outData[5] = tcu::Vec4( 0.1f, 0.5f, 0.0f, 1.0f); in generateLines()
917 outData[0] = tcu::Vec4(-0.499f, 0.128f, 0.0f, 1.0f); in generateLines()
918 outData[1] = tcu::Vec4(-0.501f, -0.3f, 0.0f, 1.0f); in generateLines()
919 outData[2] = tcu::Vec4( 0.11f, -0.2f, 0.0f, 1.0f); in generateLines()
920 outData[3] = tcu::Vec4( 0.11f, 0.2f, 0.0f, 1.0f); in generateLines()
921 outData[4] = tcu::Vec4( 0.88f, 0.9f, 0.0f, 1.0f); in generateLines()
922 outData[5] = tcu::Vec4( 0.18f, -0.2f, 0.0f, 1.0f); in generateLines()
926 outData[0] = tcu::Vec4( -0.9f, -0.3f, 0.0f, 1.0f); in generateLines()
927 outData[1] = tcu::Vec4( 1.1f, -0.9f, 0.0f, 1.0f); in generateLines()
928 outData[2] = tcu::Vec4( 0.7f, -0.1f, 0.0f, 1.0f); in generateLines()
929 outData[3] = tcu::Vec4( 0.11f, 0.2f, 0.0f, 1.0f); in generateLines()
930 outData[4] = tcu::Vec4( 0.88f, 0.7f, 0.0f, 1.0f); in generateLines()
931 outData[5] = tcu::Vec4( 0.8f, -0.7f, 0.0f, 1.0f); in generateLines()
944 …_testCtx.getLog() << tcu::TestLog::Message << "Rendering " << outLines.size() << " lines(s): (widt… in generateLines()
948 << tcu::TestLog::Message in generateLines()
952 << tcu::TestLog::EndMessage; in generateLines()
961 …void generateLines (int iteration, std::vector<tcu::Vec4>& outData, std::vector<LineSceneSpec::Sce…
969 void LineStripCase::generateLines (int iteration, std::vector<tcu::Vec4>& outData, std::vector<Line… in generateLines()
977 outData[0] = tcu::Vec4( 0.01f, 0.0f, 0.0f, 1.0f); in generateLines()
978 outData[1] = tcu::Vec4( 0.5f, 0.2f, 0.0f, 1.0f); in generateLines()
979 outData[2] = tcu::Vec4( 0.46f, 0.3f, 0.0f, 1.0f); in generateLines()
980 outData[3] = tcu::Vec4(-0.5f, 0.2f, 0.0f, 1.0f); in generateLines()
984 outData[0] = tcu::Vec4(-0.499f, 0.128f, 0.0f, 1.0f); in generateLines()
985 outData[1] = tcu::Vec4(-0.501f, -0.3f, 0.0f, 1.0f); in generateLines()
986 outData[2] = tcu::Vec4( 0.11f, -0.2f, 0.0f, 1.0f); in generateLines()
987 outData[3] = tcu::Vec4( 0.11f, 0.2f, 0.0f, 1.0f); in generateLines()
991 outData[0] = tcu::Vec4( -0.9f, -0.3f, 0.0f, 1.0f); in generateLines()
992 outData[1] = tcu::Vec4( 1.1f, -0.9f, 0.0f, 1.0f); in generateLines()
993 outData[2] = tcu::Vec4( 0.7f, -0.1f, 0.0f, 1.0f); in generateLines()
994 outData[3] = tcu::Vec4( 0.11f, 0.2f, 0.0f, 1.0f); in generateLines()
1007 …Ctx.getLog() << tcu::TestLog::Message << "Rendering line strip, width = " << m_lineWidth << ", " <… in generateLines()
1011 << tcu::TestLog::Message in generateLines()
1013 << tcu::TestLog::EndMessage; in generateLines()
1022 …void generateLines (int iteration, std::vector<tcu::Vec4>& outData, std::vector<LineSceneSpec::Sce…
1030 void LineLoopCase::generateLines (int iteration, std::vector<tcu::Vec4>& outData, std::vector<LineS… in generateLines()
1038 outData[0] = tcu::Vec4( 0.01f, 0.0f, 0.0f, 1.0f); in generateLines()
1039 outData[1] = tcu::Vec4( 0.5f, 0.2f, 0.0f, 1.0f); in generateLines()
1040 outData[2] = tcu::Vec4( 0.46f, 0.3f, 0.0f, 1.0f); in generateLines()
1041 outData[3] = tcu::Vec4(-0.5f, 0.2f, 0.0f, 1.0f); in generateLines()
1045 outData[0] = tcu::Vec4(-0.499f, 0.128f, 0.0f, 1.0f); in generateLines()
1046 outData[1] = tcu::Vec4(-0.501f, -0.3f, 0.0f, 1.0f); in generateLines()
1047 outData[2] = tcu::Vec4( 0.11f, -0.2f, 0.0f, 1.0f); in generateLines()
1048 outData[3] = tcu::Vec4( 0.11f, 0.2f, 0.0f, 1.0f); in generateLines()
1052 outData[0] = tcu::Vec4( -0.9f, -0.3f, 0.0f, 1.0f); in generateLines()
1053 outData[1] = tcu::Vec4( 1.1f, -0.9f, 0.0f, 1.0f); in generateLines()
1054 outData[2] = tcu::Vec4( 0.7f, -0.1f, 0.0f, 1.0f); in generateLines()
1055 outData[3] = tcu::Vec4( 0.11f, 0.2f, 0.0f, 1.0f); in generateLines()
1070 …Ctx.getLog() << tcu::TestLog::Message << "Rendering line loop, width = " << m_lineWidth << ", " <<… in generateLines()
1074 << tcu::TestLog::Message in generateLines()
1076 << tcu::TestLog::EndMessage; in generateLines()
1101 void generateTriangles (int iteration, std::vector<tcu::Vec4>& outData) const;
1128 …const tcu::ScopedLogSection section (m_testCtx.getLog(), iterationDescription, iterationDes… in iterate()
1132 tcu::Surface resultImage (m_renderSize, m_renderSize); in iterate()
1133 std::vector<tcu::Vec4> drawBuffer; in iterate()
1141 const std::vector<tcu::Vec4> colorBuffer (drawBuffer.size(), tcu::Vec4(0.5f, 0.5f, 0.5f, 1.0f)); in iterate()
1143 …og() << tcu::TestLog::Message << "Drawing gray triangles with shared edges.\nEnabling additive ble… in iterate()
1153 const tcu::RGBA triangleColor = tcu::RGBA(127, 127, 127, 255); in iterate()
1156 m_testCtx.getLog() << tcu::TestLog::Message << "Verifying result." << tcu::TestLog::EndMessage; in iterate()
1161 const tcu::RGBA color = resultImage.getPixel(x, y); in iterate()
1172 …m_testCtx.getLog() << tcu::TestLog::Message << "No overlapping fragments detected." << tcu::TestLo… in iterate()
1175 …m_testCtx.getLog() << tcu::TestLog::Message << "Overlapping fragments detected, image is not valid… in iterate()
1176 m_testCtx.getLog() << tcu::TestLog::ImageSet("Result of rendering", "Result of rendering") in iterate()
1177 << tcu::TestLog::Image("Result", "Result", resultImage) in iterate()
1178 << tcu::TestLog::EndImageSet; in iterate()
1190 …m_testCtx.getLog() << tcu::TestLog::Message << "Searching missing fragments." << tcu::TestLog::End… in iterate()
1195 const tcu::RGBA color = resultImage.getPixel(x, y); in iterate()
1206 …m_testCtx.getLog() << tcu::TestLog::Message << "No missing fragments detected." << tcu::TestLog::E… in iterate()
1209 …m_testCtx.getLog() << tcu::TestLog::Message << "Missing fragments detected, image is not valid." <… in iterate()
1213 m_testCtx.getLog() << tcu::TestLog::ImageSet("Result of rendering", "Result of rendering") in iterate()
1214 << tcu::TestLog::Image("Result", "Result", resultImage) in iterate()
1215 << tcu::TestLog::EndImageSet; in iterate()
1252 void FillRuleCase::generateTriangles (int iteration, std::vector<tcu::Vec4>& outData) const in generateTriangles()
1270 …const tcu::Vec2 center = tcu::Vec2(((float)row + 0.5f) / (float)numRows * 2.0f - 1.0f, ((float)co… in generateTriangles()
1272 const tcu::Vec2 sideH = quadSide * tcu::Vec2(deFloatCos(rotation), deFloatSin(rotation)); in generateTriangles()
1273 const tcu::Vec2 sideV = tcu::Vec2(sideH.y(), -sideH.x()); in generateTriangles()
1274 const tcu::Vec2 quad[4] = in generateTriangles()
1284 outData[6 * (col * numRows + row) + 0] = tcu::Vec4(quad[0].x(), quad[0].y(), 0.0f, 1.0f); in generateTriangles()
1285 outData[6 * (col * numRows + row) + 1] = tcu::Vec4(quad[1].x(), quad[1].y(), 0.0f, 1.0f); in generateTriangles()
1286 outData[6 * (col * numRows + row) + 2] = tcu::Vec4(quad[2].x(), quad[2].y(), 0.0f, 1.0f); in generateTriangles()
1287 outData[6 * (col * numRows + row) + 3] = tcu::Vec4(quad[2].x(), quad[2].y(), 0.0f, 1.0f); in generateTriangles()
1288 outData[6 * (col * numRows + row) + 4] = tcu::Vec4(quad[0].x(), quad[0].y(), 0.0f, 1.0f); in generateTriangles()
1289 outData[6 * (col * numRows + row) + 5] = tcu::Vec4(quad[3].x(), quad[3].y(), 0.0f, 1.0f); in generateTriangles()
1293 outData[6 * (col * numRows + row) + 0] = tcu::Vec4(quad[0].x(), quad[0].y(), 0.0f, 1.0f); in generateTriangles()
1294 outData[6 * (col * numRows + row) + 1] = tcu::Vec4(quad[1].x(), quad[1].y(), 0.0f, 1.0f); in generateTriangles()
1295 outData[6 * (col * numRows + row) + 2] = tcu::Vec4(quad[2].x(), quad[2].y(), 0.0f, 1.0f); in generateTriangles()
1296 outData[6 * (col * numRows + row) + 3] = tcu::Vec4(quad[0].x(), quad[0].y(), 0.0f, 1.0f); in generateTriangles()
1297 outData[6 * (col * numRows + row) + 4] = tcu::Vec4(quad[2].x(), quad[2].y(), 0.0f, 1.0f); in generateTriangles()
1298 outData[6 * (col * numRows + row) + 5] = tcu::Vec4(quad[3].x(), quad[3].y(), 0.0f, 1.0f); in generateTriangles()
1307 … outData[6 * (col * numRows + row) + 0] = tcu::Vec4(quad[0].x() * w0, quad[0].y() * w0, 0.0f, w0); in generateTriangles()
1308 … outData[6 * (col * numRows + row) + 1] = tcu::Vec4(quad[1].x() * w1, quad[1].y() * w1, 0.0f, w1); in generateTriangles()
1309 … outData[6 * (col * numRows + row) + 2] = tcu::Vec4(quad[2].x() * w2, quad[2].y() * w2, 0.0f, w2); in generateTriangles()
1310 … outData[6 * (col * numRows + row) + 3] = tcu::Vec4(quad[2].x() * w2, quad[2].y() * w2, 0.0f, w2); in generateTriangles()
1311 … outData[6 * (col * numRows + row) + 4] = tcu::Vec4(quad[0].x() * w0, quad[0].y() * w0, 0.0f, w0); in generateTriangles()
1312 … outData[6 * (col * numRows + row) + 5] = tcu::Vec4(quad[3].x() * w3, quad[3].y() * w3, 0.0f, w3); in generateTriangles()
1325 …const tcu::Vec2 center = (m_caseType == FILLRULECASE_CLIPPED_PARTIAL) ? (tcu::Vec2(0.5f, 0.5f)) :… in generateTriangles()
1327 const tcu::Vec2 sideH = quadSide * tcu::Vec2(deFloatCos(rotation), deFloatSin(rotation)); in generateTriangles()
1328 const tcu::Vec2 sideV = tcu::Vec2(sideH.y(), -sideH.x()); in generateTriangles()
1329 const tcu::Vec2 quad[4] = in generateTriangles()
1338 outData[0] = tcu::Vec4(quad[0].x(), quad[0].y(), 0.0f, 1.0f); in generateTriangles()
1339 outData[1] = tcu::Vec4(quad[1].x(), quad[1].y(), 0.0f, 1.0f); in generateTriangles()
1340 outData[2] = tcu::Vec4(quad[2].x(), quad[2].y(), 0.0f, 1.0f); in generateTriangles()
1341 outData[3] = tcu::Vec4(quad[2].x(), quad[2].y(), 0.0f, 1.0f); in generateTriangles()
1342 outData[4] = tcu::Vec4(quad[0].x(), quad[0].y(), 0.0f, 1.0f); in generateTriangles()
1343 outData[5] = tcu::Vec4(quad[3].x(), quad[3].y(), 0.0f, 1.0f); in generateTriangles()
1360 void generateVertices (std::vector<tcu::Vec4>& outData) const;
1361 …:vector<TriangleSceneSpec::SceneTriangle>& outTriangles, const std::vector<tcu::Vec4>& vertices) c…
1362 bool triangleOrder (const tcu::Vec4& v0, const tcu::Vec4& v1, const tcu::Vec4& v2) const;
1383 tcu::Surface resultImage(m_renderSize, m_renderSize); in iterate()
1384 std::vector<tcu::Vec4> drawBuffer; in iterate()
1399 …m_testCtx.getLog() << tcu::TestLog::Message << "Setting front face to " << glu::getWindingName(m_f… in iterate()
1400 …m_testCtx.getLog() << tcu::TestLog::Message << "Setting cull face to " << glu::getFaceName(m_cullM… in iterate()
1401 …m_testCtx.getLog() << tcu::TestLog::Message << "Drawing test pattern (" << glu::getPrimitiveTypeNa… in iterate()
1419 …if (verifyTriangleGroupRasterization(resultImage, scene, args, m_testCtx.getLog(), tcu::VERIFICATI… in iterate()
1428 void CullingTest::generateVertices (std::vector<tcu::Vec4>& outData) const in generateVertices()
1442 …:vector<TriangleSceneSpec::SceneTriangle>& outTriangles, const std::vector<tcu::Vec4>& vertices) c… in extractTriangles()
1456 const tcu::Vec4& v0 = vertices[vtxNdx + 0]; in extractTriangles()
1457 const tcu::Vec4& v1 = vertices[vtxNdx + 1]; in extractTriangles()
1458 const tcu::Vec4& v2 = vertices[vtxNdx + 2]; in extractTriangles()
1477 const tcu::Vec4& v0 = vertices[vtxNdx + 0]; in extractTriangles()
1478 const tcu::Vec4& v1 = vertices[vtxNdx + 1]; in extractTriangles()
1479 const tcu::Vec4& v2 = vertices[vtxNdx + 2]; in extractTriangles()
1498 const tcu::Vec4& v0 = vertices[0]; in extractTriangles()
1499 const tcu::Vec4& v1 = vertices[vtxNdx + 0]; in extractTriangles()
1500 const tcu::Vec4& v2 = vertices[vtxNdx + 1]; in extractTriangles()
1520 bool CullingTest::triangleOrder (const tcu::Vec4& v0, const tcu::Vec4& v1, const tcu::Vec4& v2) con… in triangleOrder()
1522 const tcu::Vec2 s0 = v0.swizzle(0, 1) / v0.w(); in triangleOrder()
1523 const tcu::Vec2 s1 = v1.swizzle(0, 1) / v1.w(); in triangleOrder()
1524 const tcu::Vec2 s2 = v2.swizzle(0, 1) / v2.w(); in triangleOrder()
1538 …void generateVertices (int iteration, std::vector<tcu::Vec4>& outVertices, std::vector<tcu::V…
1539 …eSpec::SceneTriangle>& outTriangles, const std::vector<tcu::Vec4>& vertices, const std::vector<tcu…
1567 …const tcu::ScopedLogSection section (m_testCtx.getLog(), "Iteration" + de::toString(m_ite… in iterate()
1568 tcu::Surface resultImage (m_renderSize, m_renderSize); in iterate()
1569 std::vector<tcu::Vec4> drawBuffer; in iterate()
1570 std::vector<tcu::Vec4> colorBuffer; in iterate()
1579 m_testCtx.getLog() << tcu::TestLog::Message << "Generated vertices:" << tcu::TestLog::EndMessage; in iterate()
1581 …m_testCtx.getLog() << tcu::TestLog::Message << "\t" << drawBuffer[vtxNdx] << ",\tcolor= " << color… in iterate()
1618 …ationTest::generateVertices (int iteration, std::vector<tcu::Vec4>& outVertices, std::vector<tcu::… in generateVertices()
1621 const tcu::Vec4 colors[] = in generateVertices()
1623 tcu::Vec4(1.0f, 0.0f, 0.0f, 1.0f), in generateVertices()
1624 tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f), in generateVertices()
1625 tcu::Vec4(0.0f, 0.0f, 1.0f, 1.0f), in generateVertices()
1655 …eSpec::SceneTriangle>& outTriangles, const std::vector<tcu::Vec4>& vertices, const std::vector<tcu… in extractTriangles()
1735 …void generateVertices (int iteration, std::vector<tcu::Vec4>& outVertices, std::vector<tcu::V…
1736 …LineSceneSpec::SceneLine>& outLines, const std::vector<tcu::Vec4>& vertices, const std::vector<tcu…
1743 tcu::ResultCollector m_result;
1764 …const tcu::ScopedLogSection section (m_testCtx.getLog(), "Iteration" + de::toString(m_itera… in iterate()
1765 tcu::Surface resultImage (m_renderSize, m_renderSize); in iterate()
1766 std::vector<tcu::Vec4> drawBuffer; in iterate()
1767 std::vector<tcu::Vec4> colorBuffer; in iterate()
1776 m_testCtx.getLog() << tcu::TestLog::Message << "Generated vertices:" << tcu::TestLog::EndMessage; in iterate()
1778 …m_testCtx.getLog() << tcu::TestLog::Message << "\t" << drawBuffer[vtxNdx] << ",\tcolor= " << color… in iterate()
1802 case tcu::LINEINTERPOLATION_STRICTLY_CORRECT: in iterate()
1807 case tcu::LINEINTERPOLATION_PROJECTED: in iterate()
1809 m_testCtx.getLog() << tcu::TestLog::Message in iterate()
1812 << tcu::TestLog::EndMessage; in iterate()
1816 case tcu::LINEINTERPOLATION_INCORRECT: in iterate()
1845 …ationTest::generateVertices (int iteration, std::vector<tcu::Vec4>& outVertices, std::vector<tcu::… in generateVertices()
1848 const tcu::Vec4 colors[] = in generateVertices()
1850 tcu::Vec4(1.0f, 0.0f, 0.0f, 1.0f), in generateVertices()
1851 tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f), in generateVertices()
1852 tcu::Vec4(0.0f, 0.0f, 1.0f, 1.0f), in generateVertices()
1882 …LineSceneSpec::SceneLine>& outLines, const std::vector<tcu::Vec4>& vertices, const std::vector<tcu… in extractLines()
1954 …tcu::TestCaseGroup* const primitives = new tcu::TestCaseGroup(m_testCtx, "primitives", "Primitive … in init()
1972 …tcu::TestCaseGroup* const limits = new tcu::TestCaseGroup(m_testCtx, "limits", "Primitive width li… in init()
1981 …tcu::TestCaseGroup* const fillRules = new tcu::TestCaseGroup(m_testCtx, "fill_rules", "Primitive f… in init()
2024 tcu::TestCaseGroup* const culling = new tcu::TestCaseGroup(m_testCtx, "culling", "Culling"); in init()
2040 …tcu::TestCaseGroup* const interpolation = new tcu::TestCaseGroup(m_testCtx, "interpolation", "Test… in init()
2046 …tcu::TestCaseGroup* const basic = new tcu::TestCaseGroup(m_testCtx, "basic", "Non-projective inter… in init()
2063 …tcu::TestCaseGroup* const projected = new tcu::TestCaseGroup(m_testCtx, "projected", "Projective i… in init()