• Home
  • Raw
  • Download

Lines Matching refs:Vec4

48 using tcu::Vec4;
117 std::vector<Vec4> genVertices (const VkPrimitiveTopology topology, const Vec4& offset, const float … in genVertices()
124 std::vector<Vec4> vertices; in genVertices()
131 vertices.push_back(offset + Vec4(0.0f, 0.0f, slope/2.0f + z, w)); in genVertices()
132 vertices.push_back(offset + Vec4( -hp, -hp, z, w)); in genVertices()
133 vertices.push_back(offset + Vec4( hp, -hp, slope + z, w)); in genVertices()
134 vertices.push_back(offset + Vec4( -hp, hp, z, w)); in genVertices()
135 vertices.push_back(offset + Vec4( hp, hp, slope + z, w)); in genVertices()
139 vertices.push_back(offset + Vec4(-p, -p, z, w)); in genVertices()
140 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 in genVertices()
141 vertices.push_back(offset + Vec4( p, p, slope + z, w)); in genVertices()
142 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); // line 1 in genVertices()
143 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); in genVertices()
144 vertices.push_back(offset + Vec4(-p, p, z, w)); // line 2 in genVertices()
148 vertices.push_back(Vec4()); in genVertices()
149 vertices.push_back(offset + Vec4(-p, -p, z, w)); in genVertices()
150 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 in genVertices()
151 vertices.push_back(Vec4()); in genVertices()
152 vertices.push_back(Vec4()); in genVertices()
153 vertices.push_back(offset + Vec4( p, p, slope + z, w)); in genVertices()
154 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); // line 1 in genVertices()
155 vertices.push_back(Vec4()); in genVertices()
156 vertices.push_back(Vec4()); in genVertices()
157 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); in genVertices()
158 vertices.push_back(offset + Vec4(-p, p, z, w)); // line 2 in genVertices()
159 vertices.push_back(Vec4()); in genVertices()
163 vertices.push_back(offset + Vec4(-p, -p, z, w)); in genVertices()
164 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 in genVertices()
165 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); // line 1 in genVertices()
166 vertices.push_back(offset + Vec4(-p, p, z, w)); // line 2 in genVertices()
170 vertices.push_back(Vec4()); in genVertices()
171 vertices.push_back(offset + Vec4(-p, -p, z, w)); in genVertices()
172 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 in genVertices()
173 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); // line 1 in genVertices()
174 vertices.push_back(offset + Vec4(-p, p, z, w)); // line 2 in genVertices()
175 vertices.push_back(Vec4()); in genVertices()
179 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); in genVertices()
180 vertices.push_back(offset + Vec4(-p, -p, z, w)); in genVertices()
181 vertices.push_back(offset + Vec4(-p, p, z, w)); // triangle 0 in genVertices()
182 vertices.push_back(offset + Vec4(-p, p, z, w)); in genVertices()
183 vertices.push_back(offset + Vec4( p, p, slope + z, w)); in genVertices()
184 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); // triangle 1 in genVertices()
188 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); in genVertices()
189 vertices.push_back(Vec4()); in genVertices()
190 vertices.push_back(offset + Vec4(-p, -p, z, w)); in genVertices()
191 vertices.push_back(Vec4()); in genVertices()
192 vertices.push_back(offset + Vec4(-p, p, z, w)); // triangle 0 in genVertices()
193 vertices.push_back(Vec4()); in genVertices()
194 vertices.push_back(offset + Vec4(-p, p, z, w)); in genVertices()
195 vertices.push_back(Vec4()); in genVertices()
196 vertices.push_back(offset + Vec4( p, p, slope + z, w)); in genVertices()
197 vertices.push_back(Vec4()); in genVertices()
198 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); // triangle 1 in genVertices()
199 vertices.push_back(Vec4()); in genVertices()
203 vertices.push_back(offset + Vec4(-p, -p, z, w)); in genVertices()
204 vertices.push_back(offset + Vec4(-p, p, z, w)); in genVertices()
205 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); // triangle 0 in genVertices()
206 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // triangle 1 in genVertices()
210 vertices.push_back(offset + Vec4(-p, -p, z, w)); in genVertices()
211 vertices.push_back(Vec4()); in genVertices()
212 vertices.push_back(offset + Vec4(-p, p, z, w)); in genVertices()
213 vertices.push_back(Vec4()); in genVertices()
214 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); // triangle 0 in genVertices()
215 vertices.push_back(Vec4()); in genVertices()
216 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // triangle 1 in genVertices()
217 vertices.push_back(Vec4()); in genVertices()
221 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); in genVertices()
222 vertices.push_back(offset + Vec4(-p, -p, z, w)); in genVertices()
223 vertices.push_back(offset + Vec4(-p, p, z, w)); // triangle 0 in genVertices()
224 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // triangle 1 in genVertices()
238 bool inline isColorInRange (const Vec4& color, const Vec4& minColor, const Vec4& maxColor) in isColorInRange()
247 …ixels, const IVec2& regionOffset, const IVec2& regionSize, const Vec4& color, const Vec4& colorThr… in countPixels()
249 const Vec4 minColor = color - colorThreshold; in countPixels()
250 const Vec4 maxColor = color + colorThreshold; in countPixels()
268 int countPixels (const tcu::ConstPixelBufferAccess pixels, const Vec4& color, const Vec4& colorThre… in countPixels()
282 const tcu::Vec4 color = pixels.getPixel(x, y); in checkFragColors()
472 …const std::vector<Vec4> vertices = genVertices(topology, Vec4(0.0f, 0.0f, cases[caseNdx].zPos, … in testPrimitivesInside()
482 …t numBlackPixels = countPixels(drawContext.getColorPixels(), Vec4(0.0f, 0.0f, 0.0f, 1.0f), Vec4()); in testPrimitivesInside()
528 …const std::vector<Vec4> vertices = genVertices(topology, Vec4(0.0f, 0.0f, cases[caseNdx].zPos, … in testPrimitivesOutside()
539 …t numBlackPixels = countPixels(drawContext.getColorPixels(), Vec4(0.0f, 0.0f, 0.0f, 1.0f), Vec4()); in testPrimitivesOutside()
568 Vec4 color; in testPrimitivesDepthClamp()
571 …near clipping plane, depth clamp disabled", -0.5f, false, IVec2(0, 0), Vec4(0.0f, 0.0f, 0.0f, 1… in testPrimitivesDepthClamp()
572 …e near clipping plane, depth clamp enabled", -0.5f, true, IVec2(0, 0), Vec4(1.0f, 0.0f, 0.0f, 1… in testPrimitivesDepthClamp()
573 …ping plane, depth clamp disabled", 0.5f, false, IVec2(RENDER_SIZE/2, 0), Vec4(0.0f, 0.0f, 0.0f, 1… in testPrimitivesDepthClamp()
574 …ipping plane, depth clamp enabled", 0.5f, true, IVec2(RENDER_SIZE/2, 0), Vec4(1.0f, 1.0f, 0.0f, 1… in testPrimitivesDepthClamp()
618 …const std::vector<Vec4> vertices = genVertices(topology, Vec4(0.0f, 0.0f, cases[caseNdx].zPos, … in testPrimitivesDepthClamp()
629 …awContext.getColorPixels(), cases[caseNdx].regionOffset, regionSize, cases[caseNdx].color, Vec4()); in testPrimitivesDepthClamp()
660 Vec4 color; in testPrimitivesDepthClip()
663 …he near clipping plane, depth clip enabled", -0.5f, true, IVec2(0, 0), Vec4(0.0f, 0.0f, 0.0f, 1… in testPrimitivesDepthClip()
664 … near clipping plane, depth clip disabled", -0.5f, false, IVec2(0, 0), Vec4(1.0f, 0.0f, 0.0f, 1… in testPrimitivesDepthClip()
665 …lipping plane, depth clip enabled", 0.5f, true, IVec2(RENDER_SIZE/2, 0), Vec4(0.0f, 0.0f, 0.0f, 1… in testPrimitivesDepthClip()
666 …pping plane, depth clip disabled", 0.5f, false, IVec2(RENDER_SIZE/2, 0), Vec4(1.0f, 1.0f, 0.0f, 1… in testPrimitivesDepthClip()
712 …const std::vector<Vec4> vertices = genVertices(topology, Vec4(0.0f, 0.0f, cases[caseNdx].zPos, … in testPrimitivesDepthClip()
725 …awContext.getColorPixels(), cases[caseNdx].regionOffset, regionSize, cases[caseNdx].color, Vec4()); in testPrimitivesDepthClip()
742 …const std::vector<Vec4> vertices = genVertices(topology, Vec4(0.0f, 0.0f, cases[caseNdx].zPos, … in testPrimitivesDepthClip()
755 …awContext.getColorPixels(), cases[caseNdx].regionOffset, regionSize, cases[caseNdx].color, Vec4()); in testPrimitivesDepthClip()
797 std::vector<Vec4> vertices; in testLargePoints()
802 vertices.push_back(Vec4( -p, -p, 0.1f, 1.0f)); in testLargePoints()
803 vertices.push_back(Vec4( -p, p, 0.2f, 1.0f)); in testLargePoints()
804 vertices.push_back(Vec4( p, p, 0.4f, 1.0f)); in testLargePoints()
805 vertices.push_back(Vec4( p, -p, 0.6f, 1.0f)); in testLargePoints()
806 vertices.push_back(Vec4(0.0f, -p, 0.8f, 1.0f)); in testLargePoints()
807 vertices.push_back(Vec4( p, 0.0f, 0.7f, 1.0f)); in testLargePoints()
808 vertices.push_back(Vec4(0.0f, p, 0.5f, 1.0f)); in testLargePoints()
809 vertices.push_back(Vec4( -p, 0.0f, 0.3f, 1.0f)); in testLargePoints()
826 …t numBlackPixels = countPixels(drawContext.getColorPixels(), Vec4(0.0f, 0.0f, 0.0f, 1.0f), Vec4()); in testLargePoints()
831 for (std::vector<Vec4>::iterator i = vertices.begin(); i != vertices.end(); ++i) in testLargePoints()
833 if (countPixels(drawContext.getColorPixels(), Vec4(1.0f, i->z(), 0.0f, 1.0f), Vec4(0.01f)) == 0) in testLargePoints()
864 …const tcu::Vec4 position = rr::readVertexAttribFloat(inputs[0], packets[packetNdx]->instanceNdx, p… in shadeVertices()
889 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, tcu::Vec4(1.0f, depth, 0.0f, 1.0f)); in shadeFragments()
905 std::vector<Vec4> vertices; in testWideLines()
912 vertices.push_back(Vec4(-p, -q, 0.1f, 1.0f)); in testWideLines()
913 vertices.push_back(Vec4(-p, q, 0.9f, 1.0f)); // line 0 in testWideLines()
914 vertices.push_back(Vec4(-q, p, 0.1f, 1.0f)); in testWideLines()
915 vertices.push_back(Vec4( q, p, 0.9f, 1.0f)); // line 1 in testWideLines()
916 vertices.push_back(Vec4( p, q, 0.1f, 1.0f)); in testWideLines()
917 vertices.push_back(Vec4( p, -q, 0.9f, 1.0f)); // line 2 in testWideLines()
918 vertices.push_back(Vec4( q, -p, 0.1f, 1.0f)); in testWideLines()
919 vertices.push_back(Vec4(-q, -p, 0.9f, 1.0f)); // line 3 in testWideLines()
926 vertices.push_back(Vec4( -p, 0.0f, 0.1f, 1.0f)); in testWideLines()
927 vertices.push_back(Vec4(0.0f, -p, 0.9f, 1.0f)); // line 0 in testWideLines()
928 vertices.push_back(Vec4(0.0f, -p, 0.1f, 1.0f)); in testWideLines()
929 vertices.push_back(Vec4( p, 0.0f, 0.9f, 1.0f)); // line 1 in testWideLines()
930 vertices.push_back(Vec4( p, 0.0f, 0.1f, 1.0f)); in testWideLines()
931 vertices.push_back(Vec4(0.0f, p, 0.9f, 1.0f)); // line 2 in testWideLines()
932 vertices.push_back(Vec4(0.0f, p, 0.1f, 1.0f)); in testWideLines()
933 vertices.push_back(Vec4( -p, 0.0f, 0.9f, 1.0f)); // line 3 in testWideLines()
958 …if (countPixels(drawContext.getColorPixels(), Vec4(0.0f, 0.0f, 0.0f, 1.0f), Vec4()) == NUM_RENDER_… in testWideLines()
966 std::vector<Vec4> refVertices; in testWideLines()
976 …const tcu::Vec4 lineNormalDir = (strictLines) ? tcu::Vec4(lineDir.y(), -lineDir.x(), 0.0f, 0.0f) … in testWideLines()
977 …: (xMajorAxis) ? tcu::Vec4(0.0f, 1.0f, 0.0f, 0.0f) : tcu::Vec4(1.0f, 0.0f, 0.0f, 0.0f); // Line ca… in testWideLines()
979 const tcu::Vec4 wideLineVertices[] = in testWideLines()
981 tcu::Vec4(vertices[vertexNdx0] + lineNormalDir * halfWidth), in testWideLines()
982 tcu::Vec4(vertices[vertexNdx0] - lineNormalDir * halfWidth), in testWideLines()
983 tcu::Vec4(vertices[vertexNdx1] - lineNormalDir * halfWidth), in testWideLines()
984 tcu::Vec4(vertices[vertexNdx1] + lineNormalDir * halfWidth) in testWideLines()
1373 std::vector<Vec4> vertices; in testClipDistance()
1380 vertices.push_back(Vec4(x, -1.0f, 0.0f, 1.0f)); in testClipDistance()
1381 vertices.push_back(Vec4(x, 1.0f, 0.0f, 1.0f)); in testClipDistance()
1382 vertices.push_back(Vec4(x + dx, -1.0f, 0.0f, 1.0f)); in testClipDistance()
1384 vertices.push_back(Vec4(x, 1.0f, 0.0f, 1.0f)); in testClipDistance()
1385 vertices.push_back(Vec4(x + dx, 1.0f, 0.0f, 1.0f)); in testClipDistance()
1386 vertices.push_back(Vec4(x + dx, -1.0f, 0.0f, 1.0f)); in testClipDistance()
1408 …numBlackPixels = countPixels(drawContext.getColorPixels(), Vec4(0.0f, 0.0f, 0.0f, 1.0f), Vec4()); in testClipDistance()
1412 …ntext.getColorPixels(), IVec2(0, RENDER_SIZE/2), clipRegion, Vec4(0.0f, 0.0f, 0.0f, 1.0f), Vec4()); in testClipDistance()
1482 std::vector<Vec4> vertices; in testComplementarity()
1504 const Vec4 p0 = Vec4(x, -1.0f, 0.0f, sign * clipDistances[ndxBase + 0]); in testComplementarity()
1505 const Vec4 p1 = Vec4(x, 1.0f, 0.0f, sign * clipDistances[ndxBase + 1]); in testComplementarity()
1506 const Vec4 p2 = Vec4(x + dx, 1.0f, 0.0f, sign * clipDistances[ndxBase + 2]); in testComplementarity()
1507 const Vec4 p3 = Vec4(x + dx, -1.0f, 0.0f, sign * clipDistances[ndxBase + 3]); in testComplementarity()
1536 …numGrayPixels = countPixels(drawContext.getColorPixels(), Vec4(0.5f, 0.5f, 0.5f, 1.0f), Vec4(0.02… in testComplementarity()