Home
last modified time | relevance | path

Searched refs:numVertices (Results 1 – 25 of 65) sorted by relevance

123

/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2Polyline.java39 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 …]
DS2Loop.java72 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 …]
DS2Polygon.java65 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/
DrrPrimitiveAssembler.hpp80 …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 …]
DrrPrimitivePacket.cpp31 GeometryEmitter::GeometryEmitter (VertexPacketAllocator& vpalloc, size_t numVertices) in GeometryEmitter() argument
34 , m_maxVertices (numVertices) in GeometryEmitter()
DrrPrimitivePacket.hpp56 GeometryEmitter (VertexPacketAllocator& vpalloc, size_t numVertices);
/external/deqp/framework/randomshaders/
DrsgProgramExecutor.cpp47 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/
Des3fRasterizerDiscardTests.cpp129 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 …]
Des3fPrimitiveRestartTests.cpp324 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()
Des3fShaderPrecisionTests.cpp339 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 …]
Des3fSyncTests.cpp111 int numVertices = 3*numPrimitives; in generateVertices() local
112 dst.resize(numVertices * 4); in generateVertices()
114 for (int i = 0; i < numVertices; i++) in generateVertices()
Des3fShaderBuiltinVarTests.cpp729 …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/deqp/external/vulkancts/modules/vulkan/robustness/
DvktRobustnessVertexAccessTests.cpp60 deUint32 numVertices,
86 deUint32 numVertices,
130 deUint32 numVertices,
198 deUint32 numVertices,
216 deUint32 numVertices,
237 deUint32 numVertices, in VertexAccessTest() argument
244 , m_numVertices (numVertices) in VertexAccessTest()
362 deUint32 numVertices, in DrawAccessTest() argument
365 …ext, name, description, inputFormat, numVertexValues, numInstanceValues, numVertices, numInstances) in DrawAccessTest()
443 deUint32 numVertices, in VertexAccessInstance() argument
[all …]
/external/skqp/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/rendering/
DBackgroundRenderer.java83 int numVertices = 4; in createOnGlThread() local
84 if (numVertices != QUAD_COORDS.length / COORDS_PER_VERTEX) { in createOnGlThread()
95 ByteBuffer.allocateDirect(numVertices * TEXCOORDS_PER_VERTEX * FLOAT_SIZE); in createOnGlThread()
102 ByteBuffer.allocateDirect(numVertices * TEXCOORDS_PER_VERTEX * FLOAT_SIZE); in createOnGlThread()
/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS2PolygonBuilderTest.java252 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()
DS2LoopTest.java183 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/skia/src/gpu/
DGrThreadSafeCache.h111 int numVertices() const { return fNumVertices; } in numVertices() function
136 VertexData(const void* vertices, int numVertices, size_t vertexSize) in VertexData() argument
138 , fNumVertices(numVertices) in VertexData()
142 VertexData(sk_sp<GrGpuBuffer> gpuBuffer, int numVertices, size_t vertexSize) in VertexData() argument
144 , fNumVertices(numVertices) in VertexData()
/external/deqp/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationCommonEdgeTests.cpp127 const int numVertices = (caseDef.primitiveType == TESSPRIMITIVETYPE_TRIANGLES ? 3 : 4); in initPrograms() local
134 << "layout(vertices = " << numVertices << ") out;\n" in initPrograms()
263 const int numVertices = (gridWidth+1)*(gridHeight+1); in test() local
266 const int totalNumPosComps = numPosCompsPerVertex*numVertices; in test()
269 gridTessParams.reserve(numVertices); in test()
278 gridTessParams.push_back((float)(i*(gridWidth+1) + j) / (float)(numVertices-1)); in test()
325 DE_ASSERT(static_cast<int>(gridTessParams.size()) == numVertices); in test()
/external/deqp/modules/glshared/
DglsShaderPerformanceMeasurer.cpp306 deInt64 numVertices = (deInt64)getNumVertices(m_gridSizeX, m_gridSizeY) * numQuadGrids; in iterate() local
308 double mvertPerSecond = (double)numVertices / (double)totalTime; in iterate()
326 deInt64 numVertices = (deInt64)getNumVertices(m_gridSizeX, m_gridSizeY) * numQuadGrids; in logMeasurementInfo() local
328 double mvertPerSecond = (double)numVertices / (double)totalTime; in logMeasurementInfo()
334 …x-fragment ratio", "Fragments/Vertices", QP_KEY_TAG_NONE, (float)numPixels / (float)numVertices) in logMeasurementInfo()
DglsFragOpInteractionCase.cpp79 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()
DglsRandomShaderCase.cpp78 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()
/external/angle/src/libANGLE/renderer/vulkan/
DVertexArrayVk.cpp127 size_t numVertices = 1; in GetVertexCount() local
132 numVertices += static_cast<size_t>(bytes) / binding.getStride(); in GetVertexCount()
134 return numVertices; in GetVertexCount()
393 size_t numVertices = GetVertexCount(srcBuffer, binding, srcFormatSize); in convertVertexBufferGPU() local
394 if (numVertices == 0) in convertVertexBufferGPU()
403 ANGLE_TRY(conversion->data.allocate(contextVk, numVertices * destFormatSize, nullptr, nullptr, in convertVertexBufferGPU()
413 params.vertexCount = numVertices; in convertVertexBufferGPU()
442 size_t numVertices = GetVertexCount(srcBuffer, binding, srcFormatSize); in convertVertexBufferCPU() local
443 if (numVertices == 0) in convertVertexBufferCPU()
454 contextVk, &conversion->data, srcBytes, numVertices * dstFormatSize, 0, numVertices, in convertVertexBufferCPU()
/external/deqp/modules/gles3/stress/
Des3sSyncTests.cpp99 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/angle/src/libANGLE/renderer/metal/
DVertexArrayMtl.mm142 size_t numVertices = 1;
147 numVertices += static_cast<size_t>(bytes) / binding.getStride();
149 return numVertices;
818 size_t numVertices = GetVertexCount(srcBuffer, binding, srcFormatSize);
819 if (numVertices == 0)
872 convertedFormat, stride, numVertices,
878 convertedFormat, stride, numVertices, conversion));
911 size_t numVertices,
921 contextMtl, &conversion->data, srcBytes, numVertices * targetStride, 0, numVertices,
934 size_t numVertices,
[all …]
/external/skia/src/gpu/ops/
DGrTriangulatingPathRenderer.cpp58 static sk_sp<SkData> create_data(int numVertices, bool isLinear, SkScalar tol) { in create_data() argument
59 TessInfo info { numVertices, isLinear, tol }; in create_data()
384 fMesh = CreateMesh(target, fVertexData->refGpuBuffer(), 0, fVertexData->numVertices()); in createNonAAMesh()
415 fMesh = CreateMesh(target, fVertexData->refGpuBuffer(), 0, fVertexData->numVertices()); in createNonAAMesh()

123