Home
last modified time | relevance | path

Searched refs:vtxNdx (Results 1 – 19 of 19) sorted by relevance

/third_party/vk-gl-cts/modules/gles2/functional/
Des2fRasterizationTests.cpp811 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateTriangles() local
815 << "\t" << outData[vtxNdx] in generateTriangles()
880 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateTriangles() local
884 << "\t" << outData[vtxNdx] in generateTriangles()
1010 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateLines() local
1014 << "\t" << outData[vtxNdx] in generateLines()
1073 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateLines() local
1077 << "\t" << outData[vtxNdx] in generateLines()
1435 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateVertices() local
1437 outData[vtxNdx].x() = rnd.getFloat(-0.9f, 0.9f); in generateVertices()
[all …]
Des2fBufferTestUtil.cpp362 static inline tcu::Vec4 fetchVtxColor (const deUint8* ptr, int vtxNdx) in fetchVtxColor() argument
364 return tcu::RGBA(*(ptr + vtxNdx*3 + 0), in fetchVtxColor()
365 *(ptr + vtxNdx*3 + 1), in fetchVtxColor()
366 *(ptr + vtxNdx*3 + 2), in fetchVtxColor()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fRasterizationTests.cpp960 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateTriangles() local
964 << "\t" << outData[vtxNdx] in generateTriangles()
1029 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateTriangles() local
1033 << "\t" << outData[vtxNdx] in generateTriangles()
1159 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateLines() local
1163 << "\t" << outData[vtxNdx] in generateLines()
1222 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateLines() local
1226 << "\t" << outData[vtxNdx] in generateLines()
1584 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateVertices() local
1586 outData[vtxNdx].x() = rnd.getFloat(-0.9f, 0.9f); in generateVertices()
[all …]
Des3fShaderBuiltinVarTests.cpp845 for (int vtxNdx = 0; vtxNdx < numVertices; vtxNdx += 3) in init() local
850 const int triNdx = vtxNdx/3; in init()
860 m_positions[vtxNdx+0] = tcu::Vec4(x0, y0, 0.0f, 1.0f); in init()
861 m_positions[vtxNdx+1] = tcu::Vec4(x0+w, y0+h, 0.0f, 1.0f); in init()
862 m_positions[vtxNdx+2] = tcu::Vec4(x0, y0+h, 0.0f, 1.0f); in init()
866 m_positions[vtxNdx+0] = tcu::Vec4(x0+w, y0+h, 0.0f, 1.0f); in init()
867 m_positions[vtxNdx+1] = tcu::Vec4(x0, y0, 0.0f, 1.0f); in init()
868 m_positions[vtxNdx+2] = tcu::Vec4(x0+w, y0, 0.0f, 1.0f); in init()
Des3fTransformFeedbackTests.cpp695 int vtxNdx = outNdx%3; in getAttributeIndex() local
696 return (triNdx%2 != 0 && vtxNdx < 2) ? (triNdx+1-vtxNdx) : (triNdx+vtxNdx); in getAttributeIndex()
/third_party/vk-gl-cts/framework/randomshaders/
DrsgProgramExecutor.cpp50 ValueAccess getValue (const VariableType& type, int vtxNdx);
51 ConstValueAccess getValue (const VariableType& type, int vtxNdx) const;
62 ValueAccess VaryingStorage::getValue (const VariableType& type, int vtxNdx) in getValue() argument
64 return ValueAccess(type, &m_value[type.getScalarSize()*vtxNdx]); in getValue()
67 ConstValueAccess VaryingStorage::getValue (const VariableType& type, int vtxNdx) const in getValue()
69 return ConstValueAccess(type, &m_value[type.getScalarSize()*vtxNdx]); in getValue()
243 for (int vtxNdx = packetStart; vtxNdx < packetEnd; vtxNdx++) in execute() local
245 int y = (vtxNdx/gridVtxWidth); in execute()
246 int x = vtxNdx - y*gridVtxWidth; in execute()
250 interpolateVertexInput(access, vtxNdx-packetStart, input->getValueRange(), xf, yf); in execute()
[all …]
/third_party/vk-gl-cts/modules/gles3/stress/
Des3sOcclusionQueryTests.cpp188 int vtxNdx = m_rnd.getInt(0, NUM_GENERATED_VERTICES-1); in iterate() local
189 occluderVertices[4*i ] = vertices[4*vtxNdx]; in iterate()
190 occluderVertices[4*i + 1] = vertices[4*vtxNdx + 1]; in iterate()
191 occluderVertices[4*i + 2] = vertices[4*vtxNdx + 2]; in iterate()
192 occluderVertices[4*i + 3] = vertices[4*vtxNdx + 3]; in iterate()
199 int vtxNdx = m_rnd.getInt(0, NUM_GENERATED_VERTICES-1); in iterate() local
200 targetVertices[4*i ] = vertices[4*vtxNdx]; in iterate()
201 targetVertices[4*i + 1] = vertices[4*vtxNdx + 1]; in iterate()
202 targetVertices[4*i + 2] = vertices[4*vtxNdx + 2]; in iterate()
203 targetVertices[4*i + 3] = vertices[4*vtxNdx + 3]; in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/rasterization/
DvktRasterizationTests.cpp2215 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateTriangles() local
2219 << "\t" << outData[vtxNdx] in generateTriangles()
2290 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateTriangles() local
2294 << "\t" << outData[vtxNdx] in generateTriangles()
4682 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateLines() local
4686 << "\t" << outData[vtxNdx] in generateLines()
5109 for (int vtxNdx = 0; vtxNdx < (int)outData.size(); ++vtxNdx) in generateVertices() local
5111 outData[vtxNdx].x() = rnd.getFloat(-0.9f, 0.9f); in generateVertices()
5112 outData[vtxNdx].y() = rnd.getFloat(-0.9f, 0.9f); in generateVertices()
5113 outData[vtxNdx].z() = 0.0f; in generateVertices()
[all …]
/third_party/vk-gl-cts/modules/glshared/
DglsLongStressCase.cpp386 const int vtxNdx = (int)m_posBuf.size()/2; in addTextToBuffer() local
388 m_ndxBuf.push_back(deUint16(vtxNdx+0)); in addTextToBuffer()
389 m_ndxBuf.push_back(deUint16(vtxNdx+1)); in addTextToBuffer()
390 m_ndxBuf.push_back(deUint16(vtxNdx+2)); in addTextToBuffer()
392 m_ndxBuf.push_back(deUint16(vtxNdx+2)); in addTextToBuffer()
393 m_ndxBuf.push_back(deUint16(vtxNdx+1)); in addTextToBuffer()
394 m_ndxBuf.push_back(deUint16(vtxNdx+3)); in addTextToBuffer()
1009 for (int vtxNdx = 0; vtxNdx < numVertices; vtxNdx++) in generateRandomAttribData() local
1011 …data[vtxNdx*numComponents + compNdx] = rnd.getFloat(attrSpec.minValue.f[compNdx], attrSpec.maxValu… in generateRandomAttribData()
1019 for (int vtxNdx = 0; vtxNdx < numVertices; vtxNdx++) in generateRandomAttribData() local
[all …]
DglsFragOpInteractionCase.cpp547 for (int vtxNdx = 0; vtxNdx < 4; vtxNdx++) in iterate() local
549 const int fNdx = (attribNdx+vtxNdx+m_iterNdx)%DE_LENGTH_OF_ARRAY(vtxInterpFactors); in iterate()
554 …case 1: setVertex(layoutEntry.pointer, vtxNdx, interpolateRange(valueRange, f.toWidth<1>())); brea… in iterate()
555 …case 2: setVertex(layoutEntry.pointer, vtxNdx, interpolateRange(valueRange, f.toWidth<2>())); brea… in iterate()
556 …case 3: setVertex(layoutEntry.pointer, vtxNdx, interpolateRange(valueRange, f.toWidth<3>())); brea… in iterate()
557 …case 4: setVertex(layoutEntry.pointer, vtxNdx, interpolateRange(valueRange, f.toWidth<4>())); brea… in iterate()
DglsShaderRenderCase.cpp205 int vtxNdx = ((y * (gridSize+1)) + x); in QuadGrid() local
207 m_positions[vtxNdx] = Vec4(fx, fy, 0.0f, 1.0f); in QuadGrid()
208 m_attribOne[vtxNdx] = 1.0f; in QuadGrid()
209 m_screenPos[vtxNdx] = Vec4(sx, sy, 0.0f, 1.0f) * viewportScale; in QuadGrid()
210 m_coords[vtxNdx] = getCoords(sx, sy); in QuadGrid()
211 m_unitCoords[vtxNdx] = getUnitCoords(sx, sy); in QuadGrid()
214 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy); in QuadGrid()
652 int vtxNdx = ((y * (gridSize+1)) + x); in computeVertexReference() local
662 colors[vtxNdx] = color; in computeVertexReference()
DglsRandomShaderCase.cpp167 for (int vtxNdx = 0; vtxNdx < numVertices; vtxNdx++) in init() local
169 int y = vtxNdx / (m_gridWidth+1); in init()
170 int x = vtxNdx - y*(m_gridWidth+1); in init()
173 float* dst = &vtxArray.getVertices()[vtxNdx*numComponents]; in init()
DglsBufferTestUtil.cpp523 static inline tcu::Vec4 fetchVtxColor (const deUint8* ptr, int vtxNdx) in fetchVtxColor() argument
525 return tcu::RGBA(*(ptr + vtxNdx*3 + 0), in fetchVtxColor()
526 *(ptr + vtxNdx*3 + 1), in fetchVtxColor()
527 *(ptr + vtxNdx*3 + 2), in fetchVtxColor()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcShaderRenderCase.cpp262 int vtxNdx = ((y * (gridSize + 1)) + x); in QuadGrid() local
264 m_positions[vtxNdx] = Vec4(fx, fy, 0.0f, 1.0f); in QuadGrid()
265 m_attribOne[vtxNdx] = 1.0f; in QuadGrid()
266 m_screenPos[vtxNdx] = Vec4(sx, sy, 0.0f, 1.0f) * viewportScale; in QuadGrid()
267 m_coords[vtxNdx] = getCoords(sx, sy); in QuadGrid()
268 m_unitCoords[vtxNdx] = getUnitCoords(sx, sy); in QuadGrid()
271 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy); in QuadGrid()
724 int vtxNdx = ((y * (gridSize + 1)) + x); in computeVertexReference() local
734 colors[vtxNdx] = color; in computeVertexReference()
/third_party/vk-gl-cts/modules/internal/
DditFrameworkTests.cpp651 for (int vtxNdx = 0; vtxNdx < DE_LENGTH_OF_ARRAY(c.vtx); vtxNdx++) in ConstantInterpolationTest() local
653 c.vtx[vtxNdx].x() = rnd.getFloat()*2.0f - 1.0f; in ConstantInterpolationTest()
654 c.vtx[vtxNdx].y() = rnd.getFloat()*2.0f - 1.0f; in ConstantInterpolationTest()
655 c.vtx[vtxNdx].z() = depth; in ConstantInterpolationTest()
656 c.vtx[vtxNdx].w() = 1.0f; in ConstantInterpolationTest()
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fTessellationTests.cpp3876 for (int vtxNdx = 0; vtxNdx < (int)prim0Vertices.size(); vtxNdx++) in iterate() local
3878 if (prim0Vertices[vtxNdx] != prim1Vertices[vtxNdx]) in iterate()
3880 …log << TestLog::Message << "Failure: tessellation coordinate at index " << vtxNdx << " differs bet… in iterate()
3881 …Note: the coordinate is " << prim0Vertices[vtxNdx] << " for the first primitive and " << prim1Vert… in iterate()
3931 for (int vtxNdx = 0; vtxNdx < (int)coordsA.size(); vtxNdx++) in compare() local
3933 if (coordsA[vtxNdx] != coordsB[vtxNdx]) in compare()
3935 …) << TestLog::Message << "Failure: tessellation coordinate at index " << vtxNdx << " differs betwe… in compare()
3936 …ssage << "Note: the coordinate is " << coordsA[vtxNdx] << " for the first program and " << coordsB… in compare()
4181 for(int vtxNdx = numVerticesRead; vtxNdx < numVerticesRead + patchNumVertices; vtxNdx++) in iterate() local
4183 const Vec3& vtx = tfResult.varying[vtxNdx]; in iterate()
[all …]
Des31fPrimitiveBoundingBoxTests.cpp4203 for (int vtxNdx = 0; vtxNdx < 6; ++vtxNdx) in generateAttributeData() local
4204 data[ndx * 6 * 2 + 2*vtxNdx].z() = rnd.getFloat(0.0f, 1.0); in generateAttributeData()
4207 for (int vtxNdx = 0; vtxNdx < 6; ++vtxNdx) in generateAttributeData() local
4208 data[ndx * 6 * 2 + 2*vtxNdx].w() = rnd.getFloat(0.0f, 1.0); in generateAttributeData()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRender.cpp239 int vtxNdx = ((y * (gridSize+1)) + x); in QuadGrid() local
241 m_positions[vtxNdx] = tcu::Vec4(fx, fy, 0.0f, 1.0f); in QuadGrid()
242 m_coords[vtxNdx] = getCoords(sx, sy); in QuadGrid()
243 m_unitCoords[vtxNdx] = getUnitCoords(sx, sy); in QuadGrid()
244 m_attribOne[vtxNdx] = 1.0f; in QuadGrid()
246 m_screenPos[vtxNdx] = tcu::Vec4(sx, sy, 0.0f, 1.0f) * viewportScale; in QuadGrid()
249 m_userAttribs[attribNdx][vtxNdx] = getUserAttrib(attribNdx, sx, sy); in QuadGrid()
2370 const int vtxNdx = ((y * (gridSize+1)) + x); in computeVertexReference() local
2380 colors[vtxNdx] = color; in computeVertexReference()
/third_party/vk-gl-cts/framework/common/
DtcuRasterizationVerifier.cpp2423 for (int vtxNdx = 0; vtxNdx < 3; ++vtxNdx) in calculateTriangleCoverage() local
2425 const int otherVtxNdx = (vtxNdx + 1) % 3; in calculateTriangleCoverage()
2427 const DVec2 edge = triangleSubPixelSpace[otherVtxNdx] - triangleSubPixelSpace[vtxNdx]; in calculateTriangleCoverage()
2428 const DVec2 v = pixelCenterPosition - triangleSubPixelSpace[vtxNdx]; in calculateTriangleCoverage()