/external/s2-geometry-library-java/src/com/google/common/geometry/ |
D | S2Polyline.java | 39 private final int numVertices; field in S2Polyline 49 this.numVertices = vertices.size(); in S2Polyline() 50 this.vertices = vertices.toArray(new S2Point[numVertices]); in S2Polyline() 59 this.numVertices = src.numVertices(); in S2Polyline() 88 public int numVertices() { in numVertices() method in S2Polyline 89 return numVertices; in numVertices() 103 for (int i = 1; i < numVertices(); ++i) { in getArclengthAngle() 124 for (int i = 1; i < numVertices(); ++i) { in interpolate() 128 for (int i = 1; i < numVertices(); ++i) { in interpolate() 139 return vertex(numVertices() - 1); in interpolate() [all …]
|
D | S2Loop.java | 72 private final int numVertices; field in S2Loop 92 this.numVertices = vertices.size(); in S2Loop() 93 this.vertices = new S2Point[numVertices]; in S2Loop() 126 numVertices = 4; in S2Loop() 127 vertices = new S2Point[numVertices]; in S2Loop() 142 this.numVertices = src.numVertices(); in S2Loop() 183 public int numVertices() { in numVertices() method in S2Loop 184 return numVertices; in numVertices() 204 if (numVertices() != other.numVertices()) { in compareTo() 205 return this.numVertices() - other.numVertices(); in compareTo() [all …]
|
D | S2Polygon.java | 65 private int numVertices; field in S2Polygon 74 this.numVertices = 0; in S2Polygon() 95 this.numVertices = loop.numVertices(); in S2Polygon() 107 this.numVertices = src.numVertices; in S2Polygon() 154 this.numVertices += loop.numVertices(); in init() 197 numVertices = 0; in release() 212 for (int j = 0; j < lp.numVertices(); ++j) { in isValid() 468 public S2LoopSequenceIndex(int[] numVertices) { in S2LoopSequenceIndex() argument 470 for (int edges : numVertices) { in S2LoopSequenceIndex() 474 loopToFirstIndex = new int[numVertices.length]; in S2LoopSequenceIndex() [all …]
|
/external/deqp/framework/referencerenderer/ |
D | rrPrimitiveAssembler.hpp | 80 …static void exec (Iterator outputIterator, VertexPacket* const* vertices, size_t numVertices, rr::… in exec() 84 for (size_t ndx = 0; ndx + 2 < numVertices; ndx += 3) in exec() 97 …static void exec (Iterator outputIterator, VertexPacket* const* vertices, size_t numVertices, rr::… in exec() 99 if (numVertices < 3) in exec() 111 if (ndx >= numVertices) in exec() 121 if (ndx >= numVertices) in exec() 142 …static void exec (Iterator outputIterator, VertexPacket* const* vertices, size_t numVertices, rr::… in exec() 144 if (numVertices == 0) in exec() 152 for (size_t ndx = 1; ndx + 1 < numVertices; ++ndx) in exec() 205 …static void exec (Iterator outputIterator, VertexPacket* const* vertices, size_t numVertices, rr::… in exec() [all …]
|
D | rrPrimitivePacket.cpp | 31 GeometryEmitter::GeometryEmitter (VertexPacketAllocator& vpalloc, size_t numVertices) in GeometryEmitter() argument 34 , m_maxVertices (numVertices) in GeometryEmitter()
|
D | rrPrimitivePacket.hpp | 56 GeometryEmitter (VertexPacketAllocator& vpalloc, size_t numVertices);
|
/external/deqp/framework/randomshaders/ |
D | rsgProgramExecutor.cpp | 47 VaryingStorage (const VariableType& type, int numVertices); 57 VaryingStorage::VaryingStorage (const VariableType& type, int numVertices) in VaryingStorage() argument 58 : m_value(type.getScalarSize()*numVertices) in VaryingStorage() 75 VaryingStore (int numVertices); 85 VaryingStore::VaryingStore (int numVertices) in VaryingStore() argument 86 : m_numVertices(numVertices) in VaryingStore() 215 int numVertices = gridVtxWidth*gridVtxHeight; in execute() local 217 VaryingStore varyingStore(numVertices); in execute() 222 int numPackets = numVertices + ((numVertices%EXEC_VEC_WIDTH) ? 1 : 0); in execute() 235 int packetEnd = deMin32((packetNdx+1)*EXEC_VEC_WIDTH, numVertices); in execute()
|
/external/deqp/modules/gles3/functional/ |
D | es3fRasterizerDiscardTests.cpp | 129 int numVertices; in generateVertices() local 133 case GL_POINTS: numVertices = numPrimitives; break; in generateVertices() 134 case GL_LINES: numVertices = 2*numPrimitives; break; in generateVertices() 135 case GL_LINE_STRIP: numVertices = numPrimitives+1; break; in generateVertices() 136 case GL_LINE_LOOP: numVertices = numPrimitives+2; break; in generateVertices() 137 case GL_TRIANGLES: numVertices = 3*numPrimitives; break; in generateVertices() 138 case GL_TRIANGLE_STRIP: numVertices = numPrimitives+2; break; in generateVertices() 139 case GL_TRIANGLE_FAN: numVertices = numPrimitives+2; break; in generateVertices() 142 numVertices = 0; in generateVertices() 145 dst.resize(numVertices * 4); in generateVertices() [all …]
|
D | es3fPrimitiveRestartTests.cpp | 324 int numVertices = row*numCols + col + 1; in init() local 326 for (int i = 0; i < numVertices; i++) in init() 328 … float fx = centerX + 0.9f * deFloatCos((float)i*2.0f*DE_PI / (float)numVertices) / (float)numCols; in init() 329 … float fy = centerY + 0.9f * deFloatSin((float)i*2.0f*DE_PI / (float)numVertices) / (float)numRows; in init() 355 int numVertices = stripNdx + 1; in init() local 357 for (int i = 0; i < numVertices; i++) in init() 427 int numVertices = rowNdx + 1; in init() local 429 for (int i = 0; i < numVertices; i++) in init()
|
D | es3fShaderPrecisionTests.cpp | 339 const int numVertices = 4; in iterate() local 356 vertexArrays.push_back(glu::va::Float("a_position", 4, numVertices, 0, &position[0])); in iterate() 357 vertexArrays.push_back(glu::va::Float("a_in0", 1, numVertices, 0, &in0Arr[0])); in iterate() 358 vertexArrays.push_back(glu::va::Float("a_in1", 1, numVertices, 0, &in1Arr[0])); in iterate() 553 const int numVertices = 4; in iterate() local 572 vertexArrays.push_back(glu::va::Float("a_position", 4, numVertices, 0, &position[0])); in iterate() 573 vertexArrays.push_back(glu::va::Int32("a_in0", 1, numVertices, 0, &in0Arr[0])); in iterate() 574 vertexArrays.push_back(glu::va::Int32("a_in1", 1, numVertices, 0, &in1Arr[0])); in iterate() 747 const int numVertices = 4; in iterate() local 766 vertexArrays.push_back(glu::va::Float("a_position", 4, numVertices, 0, &position[0])); in iterate() [all …]
|
D | es3fSyncTests.cpp | 111 int numVertices = 3*numPrimitives; in generateVertices() local 112 dst.resize(numVertices * 4); in generateVertices() 114 for (int i = 0; i < numVertices; i++) in generateVertices()
|
D | es3fShaderBuiltinVarTests.cpp | 729 …void renderReference (const tcu::PixelBufferAccess& dst, const int numVertices, const deUint1… 772 const int numVertices = MAX_VERTICES; in init() local 774 const int numQuads = numVertices/6 + (numVertices%6 != 0 ? 1 : 0); in init() 816 m_colors.resize(numVertices); in init() 843 m_positions.resize(numVertices); in init() 844 DE_ASSERT(numVertices%3 == 0); in init() 845 for (int vtxNdx = 0; vtxNdx < numVertices; vtxNdx += 3) in init() 953 void VertexIDCase::renderReference (const tcu::PixelBufferAccess& dst, const int numVertices, const… in renderReference() argument 980 rr::PrimitiveList(rr::PRIMITIVETYPE_TRIANGLES, numVertices, rr::DrawIndices(indices)))); in renderReference()
|
/external/angle/src/libANGLE/renderer/vulkan/ |
D | VertexArrayVk.cpp | 144 size_t numVertices = 1; in GetVertexCount() local 156 numVertices += static_cast<size_t>(bytes) / stride; in GetVertexCount() 159 return numVertices; in GetVertexCount() 444 size_t numVertices = GetVertexCount(srcBuffer, binding, srcFormatSize); in convertVertexBufferGPU() local 445 if (numVertices == 0) in convertVertexBufferGPU() 453 ANGLE_TRY(dstBuffer->allocateForVertexConversion(contextVk, numVertices * dstFormatSize, in convertVertexBufferGPU() 462 params.vertexCount = numVertices; in convertVertexBufferGPU() 489 size_t numVertices = GetVertexCount(srcBuffer, binding, srcFormatSize); in convertVertexBufferCPU() local 490 if (numVertices == 0) in convertVertexBufferCPU() 503 ANGLE_TRY(dstBufferHelper->allocateForVertexConversion(contextVk, numVertices * dstFormatSize, in convertVertexBufferCPU() [all …]
|
/external/s2-geometry-library-java/tests/com/google/common/geometry/ |
D | S2PolygonBuilderTest.java | 252 for (int i = 0; i < line.numVertices(); ++i) { in getVertices() 265 if (a.numVertices() != b.numVertices()) { in loopsEqual() 268 for (int offset = 0; offset < a.numVertices(); ++offset) { in loopsEqual() 271 for (int i = 0; i < a.numVertices(); ++i) { in loopsEqual() 306 for (int j = 0; j < loop.numVertices(); ++j) { in findMissingLoops()
|
D | S2LoopTest.java | 183 for (int i = 1; i <= loop.numVertices(); ++i) { in rotate() 415 "Checking " + a.numVertices() + " vs. " + b.numVertices() + ", contained = " + contained in suppressedTestLoopRelations2() 487 for (int i = 0; i < s1.numVertices(); i++) { 513 for (int i = 1; i <= loop.numVertices(); ++i) { 536 for (int i = 0; i < loop.numVertices() + 2; ++i) { 539 if (i < loop.numVertices()) { 544 if (i == loop.numVertices() + 1) { 549 for (int j = 0; j < loop.numVertices(); ++j) {
|
/external/deqp/external/vulkancts/modules/vulkan/robustness/ |
D | vktRobustnessVertexAccessTests.cpp | 61 deUint32 numVertices, 88 deUint32 numVertices, 137 deUint32 numVertices, 216 deUint32 numVertices, 239 deUint32 numVertices, 260 deUint32 numVertices, in VertexAccessTest() argument 267 , m_numVertices (numVertices) in VertexAccessTest() 392 deUint32 numVertices, in DrawAccessTest() argument 395 …ext, name, description, inputFormat, numVertexValues, numInstanceValues, numVertices, numInstances) in DrawAccessTest() 490 deUint32 numVertices, in VertexAccessInstance() argument [all …]
|
/external/skia/src/gpu/ganesh/ |
D | GrThreadSafeCache.h | 112 int numVertices() const { return fNumVertices; } in numVertices() function 137 VertexData(const void* vertices, int numVertices, size_t vertexSize) in VertexData() argument 139 , fNumVertices(numVertices) in VertexData() 143 VertexData(sk_sp<GrGpuBuffer> gpuBuffer, int numVertices, size_t vertexSize) in VertexData() argument 145 , fNumVertices(numVertices) in VertexData()
|
/external/deqp/external/vulkancts/modules/vulkan/tessellation/ |
D | vktTessellationCommonEdgeTests.cpp | 129 const int numVertices = (caseDef.primitiveType == TESSPRIMITIVETYPE_TRIANGLES ? 3 : 4); in initPrograms() local 136 << "layout(vertices = " << numVertices << ") out;\n" in initPrograms() 265 const int numVertices = (gridWidth+1)*(gridHeight+1); in test() local 268 const int totalNumPosComps = numPosCompsPerVertex*numVertices; in test() 271 gridTessParams.reserve(numVertices); in test() 280 gridTessParams.push_back((float)(i*(gridWidth+1) + j) / (float)(numVertices-1)); in test() 327 DE_ASSERT(static_cast<int>(gridTessParams.size()) == numVertices); in test()
|
/external/deqp/modules/glshared/ |
D | glsShaderPerformanceMeasurer.cpp | 308 deInt64 numVertices = (deInt64)getNumVertices(m_gridSizeX, m_gridSizeY) * numQuadGrids; in iterate() local 310 double mvertPerSecond = (double)numVertices / (double)totalTime; in iterate() 328 deInt64 numVertices = (deInt64)getNumVertices(m_gridSizeX, m_gridSizeY) * numQuadGrids; in logMeasurementInfo() local 330 double mvertPerSecond = (double)numVertices / (double)totalTime; in logMeasurementInfo() 336 …x-fragment ratio", "Fragments/Vertices", QP_KEY_TAG_NONE, (float)numPixels / (float)numVertices) in logMeasurementInfo()
|
D | glsFragOpInteractionCase.cpp | 79 static void computeVertexLayout (const vector<rsg::ShaderInput*>& attributes, int numVertices, vect… in computeVertexLayout() argument 94 …layout->push_back(glu::va::Float(var->getName(), numComps, numVertices, 0 /* computed later */, (c… in computeVertexLayout() 108 VertexDataStorage (const vector<rsg::ShaderInput*>& attributes, int numVertices); 124 VertexDataStorage::VertexDataStorage (const vector<rsg::ShaderInput*>& attributes, int numVertices) in VertexDataStorage() argument 127 computeVertexLayout(attributes, numVertices, &m_layout, &stride); in VertexDataStorage() 128 m_data.resize(stride * numVertices); in VertexDataStorage() 516 const int numVertices = 4; in iterate() local 517 VertexDataStorage vertexData (m_vertexShader.getInputs(), numVertices); in iterate()
|
D | glsRandomShaderCase.cpp | 78 VertexArray::VertexArray (const rsg::ShaderInput* input, int numVertices) in VertexArray() argument 80 , m_vertices (input->getVariable()->getType().getNumElements() * numVertices) in VertexArray() 155 int numVertices = (m_gridWidth+1)*(m_gridHeight+1); in init() local 162 VertexArray vtxArray(input, numVertices); in init() 167 for (int vtxNdx = 0; vtxNdx < numVertices; vtxNdx++) in init()
|
D | glsLongStressCase.cpp | 991 …>& attrDataBuf, int& dataSizeBytesDst, const VarSpec& attrSpec, const int numVertices, Random& rnd) in generateRandomAttribData() argument 1001 dataSizeBytesDst = numComponents*componentSize*numVertices; in generateRandomAttribData() 1009 for (int vtxNdx = 0; vtxNdx < numVertices; vtxNdx++) in generateRandomAttribData() 1019 for (int vtxNdx = 0; vtxNdx < numVertices; vtxNdx++) in generateRandomAttribData() 1027 …>& attrDataBuf, int& dataSizeBytesDst, const VarSpec& attrSpec, const int numVertices, Random& rnd) in generateRandomPositionAttribData() argument 1033 … offsetInBuf = generateRandomAttribData(attrDataBuf, dataSizeBytesDst, attrSpec, numVertices, rnd); in generateRandomPositionAttribData() 1039 for (int vtxNdx = 0; vtxNdx < numVertices; vtxNdx++) in generateRandomPositionAttribData() 1042 for (int triNdx = 0; triNdx < numVertices-2; triNdx++) in generateRandomPositionAttribData() 1063 …s, const vector<VarSpec>& attrSpecs, const string& posAttrName, const int numVertices, Random& rnd) in generateAttribs() argument 1072 …k(generateRandomPositionAttribData(attrDataBuf, attrDataSizes[i], attrSpecs[i], numVertices, rnd)); in generateAttribs() [all …]
|
/external/angle/src/libANGLE/renderer/metal/ |
D | VertexArrayMtl.mm | 141 size_t numVertices = 1; 146 numVertices += static_cast<size_t>(bytes) / binding.getStride(); 148 return numVertices; 163 size_t numVertices = 1; 168 numVertices += static_cast<size_t>(bytes) / binding.getStride(); 170 return numVertices; 978 size_t numVertices = GetVertexCount(srcBuffer, binding, srcFormatSize); 979 if (numVertices == 0) 1016 numVertices = GetVertexCountWithConversion( 1039 convertedFormat, stride, numVertices, [all …]
|
/external/deqp/modules/gles3/stress/ |
D | es3sSyncTests.cpp | 99 int numVertices = 3*numPrimitives; in generateVertices() local 100 dst.resize(numVertices * 4); in generateVertices() 102 for (int i = 0; i < numVertices; i++) in generateVertices()
|
/external/skia/src/gpu/ganesh/ops/ |
D | TriangulatingPathRenderer.cpp | 61 static sk_sp<SkData> create_data(int numVertices, bool isLinear, SkScalar tol) { in create_data() argument 62 TessInfo info { numVertices, isLinear, tol }; in create_data() 321 fMesh = CreateMesh(target, fVertexData->refGpuBuffer(), 0, fVertexData->numVertices()); in createNonAAMesh() 352 fMesh = CreateMesh(target, fVertexData->refGpuBuffer(), 0, fVertexData->numVertices()); in createNonAAMesh()
|