Home
last modified time | relevance | path

Searched refs:vertexCount (Results 1 – 25 of 159) sorted by relevance

1234567

/external/skia/src/core/
DSkVertices.cpp30 Sizes(SkVertices::VertexMode mode, int vertexCount, int indexCount, bool hasTexs, in Sizes()
34 fVSize = safe.mul(vertexCount, sizeof(SkPoint)); in Sizes()
35 fTSize = hasTexs ? safe.mul(vertexCount, sizeof(SkPoint)) : 0; in Sizes()
36 fCSize = hasColors ? safe.mul(vertexCount, sizeof(SkColor)) : 0; in Sizes()
37 fBISize = hasBones ? safe.mul(vertexCount, sizeof(BoneIndices)) : 0; in Sizes()
38 fBWSize = hasBones ? safe.mul(vertexCount, sizeof(BoneWeights)) : 0; in Sizes()
48 numFanTris = vertexCount - 2; in Sizes()
51 if (vertexCount > (SkTo<int>(UINT16_MAX) + 1)) { in Sizes()
94 SkVertices::Builder::Builder(VertexMode mode, int vertexCount, int indexCount, in Builder() argument
100 this->init(mode, vertexCount, indexCount, isVolatile, in Builder()
[all …]
DSkDraw_vertices.cpp161 void SkDraw::drawVertices(SkVertices::VertexMode vmode, int vertexCount, in drawVertices() argument
168 SkASSERT(0 == vertexCount || vertices); in drawVertices()
171 if (vertexCount < 3 || (indices && indexCount < 3) || fRC->isEmpty()) { in drawVertices()
215 SkPoint* deformed = outerAlloc.makeArray<SkPoint>(vertexCount); in drawVertices()
219 for (int i = 0; i < vertexCount; i ++) { in drawVertices()
247 worldTransform.mapPoints(deformed, vertices, vertexCount); in drawVertices()
254 SkPoint* devVerts = outerAlloc.makeArray<SkPoint>(vertexCount); in drawVertices()
255 fMatrix->mapPoints(devVerts, vertices, vertexCount); in drawVertices()
260 bounds.set(devVerts, vertexCount); in drawVertices()
266 VertState state(vertexCount, indices, indexCount); in drawVertices()
[all …]
/external/skqp/src/core/
DSkVertices.cpp30 Sizes(SkVertices::VertexMode mode, int vertexCount, int indexCount, bool hasTexs, in Sizes()
34 fVSize = safe.mul(vertexCount, sizeof(SkPoint)); in Sizes()
35 fTSize = hasTexs ? safe.mul(vertexCount, sizeof(SkPoint)) : 0; in Sizes()
36 fCSize = hasColors ? safe.mul(vertexCount, sizeof(SkColor)) : 0; in Sizes()
37 fBISize = hasBones ? safe.mul(vertexCount, sizeof(BoneIndices)) : 0; in Sizes()
38 fBWSize = hasBones ? safe.mul(vertexCount, sizeof(BoneWeights)) : 0; in Sizes()
48 numFanTris = vertexCount - 2; in Sizes()
51 if (vertexCount > (SkTo<int>(UINT16_MAX) + 1)) { in Sizes()
94 SkVertices::Builder::Builder(VertexMode mode, int vertexCount, int indexCount, in Builder() argument
100 this->init(mode, vertexCount, indexCount, isVolatile, in Builder()
[all …]
DSkDraw_vertices.cpp161 void SkDraw::drawVertices(SkVertices::VertexMode vmode, int vertexCount, in drawVertices() argument
168 SkASSERT(0 == vertexCount || vertices); in drawVertices()
171 if (vertexCount < 3 || (indices && indexCount < 3) || fRC->isEmpty()) { in drawVertices()
215 SkPoint* deformed = outerAlloc.makeArray<SkPoint>(vertexCount); in drawVertices()
219 for (int i = 0; i < vertexCount; i ++) { in drawVertices()
247 worldTransform.mapPoints(deformed, vertices, vertexCount); in drawVertices()
254 SkPoint* devVerts = outerAlloc.makeArray<SkPoint>(vertexCount); in drawVertices()
255 fMatrix->mapPoints(devVerts, vertices, vertexCount); in drawVertices()
260 bounds.set(devVerts, vertexCount); in drawVertices()
266 VertState state(vertexCount, indices, indexCount); in drawVertices()
[all …]
/external/skia/include/core/
DSkVertices.h112 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
122 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
130 vertexCount,
141 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
149 vertexCount,
160 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
165 return MakeCopy(mode, vertexCount, positions, texs, colors, nullptr, nullptr, isVolatile);
178 Builder(VertexMode mode, int vertexCount, int indexCount, uint32_t flags);
183 int vertexCount() const;
197 Builder(VertexMode mode, int vertexCount, int indexCount, bool isVolatile, const Sizes&);
[all …]
/external/skqp/include/core/
DSkVertices.h112 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
122 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
130 vertexCount,
141 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
149 vertexCount,
160 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
165 return MakeCopy(mode, vertexCount, positions, texs, colors, nullptr, nullptr, isVolatile);
178 Builder(VertexMode mode, int vertexCount, int indexCount, uint32_t flags);
183 int vertexCount() const;
197 Builder(VertexMode mode, int vertexCount, int indexCount, bool isVolatile, const Sizes&);
[all …]
/external/skqp/src/gpu/
DGrMesh.h36 void setNonIndexedNonInstanced(int vertexCount);
40 void setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount, int vertexCount,
44 int vertexCount);
52 virtual void sendMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
61 int vertexCount, int baseVertex,
129 inline void GrMesh::setNonIndexedNonInstanced(int vertexCount) { in setNonIndexedNonInstanced() argument
132 fNonIndexNonInstanceData.fVertexCount = vertexCount; in setNonIndexedNonInstanced()
154 int vertexCount, int patternRepeatCount, in setIndexedPatterned() argument
158 SkASSERT(vertexCount >= 1); in setIndexedPatterned()
165 fPatternData.fVertexCount = vertexCount; in setIndexedPatterned()
[all …]
/external/skia/src/gpu/
DGrMesh.h41 void setNonIndexedNonInstanced(int vertexCount);
45 void setIndexedPatterned(sk_sp<const GrBuffer> indexBuffer, int indexCount, int vertexCount,
49 int vertexCount);
58 virtual void sendMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
67 int vertexCount, int baseVertex,
147 inline void GrMesh::setNonIndexedNonInstanced(int vertexCount) { in setNonIndexedNonInstanced() argument
150 fNonIndexNonInstanceData.fVertexCount = vertexCount; in setNonIndexedNonInstanced()
172 int vertexCount, int patternRepeatCount, in setIndexedPatterned() argument
176 SkASSERT(vertexCount >= 1); in setIndexedPatterned()
183 fPatternData.fVertexCount = vertexCount; in setIndexedPatterned()
[all …]
/external/skia/src/gpu/ops/
DGrAALinearizingConvexPathRenderer.cpp198 void recordDraw(Target* target, sk_sp<const GrGeometryProcessor> gp, int vertexCount, in recordDraw() argument
200 if (vertexCount == 0 || indexCount == 0) { in recordDraw()
205 void* verts = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, in recordDraw()
211 memcpy(verts, vertices, vertexCount * vertexStride); in recordDraw()
222 mesh->setIndexed(std::move(indexBuffer), indexCount, firstIndex, 0, vertexCount - 1, in recordDraw()
243 int64_t vertexCount = 0; in onPrepareDraws() local
259 if (vertexCount + currentVertices > static_cast<int>(UINT16_MAX)) { in onPrepareDraws()
263 target, gp, vertexCount, vertexStride, vertices, indexCount, indices); in onPrepareDraws()
264 vertexCount = 0; in onPrepareDraws()
267 if (vertexCount + currentVertices > maxVertices) { in onPrepareDraws()
[all …]
DGrDrawVerticesOp.cpp146 fVertexCount = vertices->vertexCount(); in DrawVerticesOp()
427 int vertexCount = mesh.fVertices->vertexCount(); in fillBuffers() local
446 for (int j = 0; j < vertexCount; ++j) { in fillBuffers()
451 verts = v + vertexCount; in fillBuffers()
467 for (int j = 0; j < vertexCount; ++j) { in fillBuffers()
490 vertexOffset += vertexCount; in fillBuffers()
677 uint32_t vertexCount = seed_vertices(type) + (primitiveCount - 1) * primitive_vertices(type); in GR_DRAW_OP_TEST_DEFINE() local
681 randomize_params(seed_vertices(type), vertexCount, kMinVertExtent, kMaxVertExtent, random, in GR_DRAW_OP_TEST_DEFINE()
686 randomize_params(primitive_vertices(type), vertexCount, kMinVertExtent, kMaxVertExtent, in GR_DRAW_OP_TEST_DEFINE()
696 sk_sp<SkVertices> vertices = SkVertices::MakeCopy(kIgnoredMode, vertexCount, positions.begin(), in GR_DRAW_OP_TEST_DEFINE()
DGrTessellatingPathRenderer.cpp79 void* lock(int vertexCount) override { in lock() argument
80 size_t size = vertexCount * stride(); in lock()
89 fVertices = sk_malloc_throw(vertexCount * stride()); in lock()
118 void* lock(int vertexCount) override { in lock() argument
119 fVertexCount = vertexCount; in lock()
120 fVertices = fTarget->makeVertexSpace(stride(), vertexCount, &fVertexBuffer, &fFirstVertex); in lock()
/external/skqp/src/gpu/ops/
DGrAALinearizingConvexPathRenderer.cpp197 const GrPipeline::FixedDynamicState* fixedDynamicState, int vertexCount, in draw() argument
199 if (vertexCount == 0 || indexCount == 0) { in draw()
204 void* verts = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, in draw()
210 memcpy(verts, vertices, vertexCount * vertexStride); in draw()
221 mesh->setIndexed(std::move(indexBuffer), indexCount, firstIndex, 0, vertexCount - 1, in draw()
243 int64_t vertexCount = 0; in onPrepareDraws() local
259 if (vertexCount + currentVertices > static_cast<int>(UINT16_MAX)) { in onPrepareDraws()
262 this->draw(target, gp, pipe.fPipeline, pipe.fFixedDynamicState, vertexCount, in onPrepareDraws()
264 vertexCount = 0; in onPrepareDraws()
267 if (vertexCount + currentVertices > maxVertices) { in onPrepareDraws()
[all …]
DGrDrawVerticesOp.cpp43 fVertexCount = vertices->vertexCount(); in GrDrawVerticesOp()
377 int vertexCount = mesh.fVertices->vertexCount(); in fillBuffers() local
398 for (int j = 0; j < vertexCount; ++j) { in fillBuffers()
403 verts = v + vertexCount; in fillBuffers()
424 for (int j = 0; j < vertexCount; ++j) { in fillBuffers()
457 vertexOffset += vertexCount; in fillBuffers()
626 uint32_t vertexCount = seed_vertices(type) + (primitiveCount - 1) * primitive_vertices(type); in GR_DRAW_OP_TEST_DEFINE() local
630 randomize_params(seed_vertices(type), vertexCount, kMinVertExtent, kMaxVertExtent, random, in GR_DRAW_OP_TEST_DEFINE()
635 randomize_params(primitive_vertices(type), vertexCount, kMinVertExtent, kMaxVertExtent, in GR_DRAW_OP_TEST_DEFINE()
645 sk_sp<SkVertices> vertices = SkVertices::MakeCopy(kIgnoredMode, vertexCount, positions.begin(), in GR_DRAW_OP_TEST_DEFINE()
DGrTessellatingPathRenderer.cpp78 void* lock(int vertexCount) override { in lock() argument
79 size_t size = vertexCount * stride(); in lock()
89 fVertices = sk_malloc_throw(vertexCount * stride()); in lock()
118 void* lock(int vertexCount) override { in lock() argument
119 fVertexCount = vertexCount; in lock()
120 fVertices = fTarget->makeVertexSpace(stride(), vertexCount, &fVertexBuffer, &fFirstVertex); in lock()
/external/skia/experimental/nima/
DNimaActor.cpp195 uint32_t vertexCount = fActorImage->vertexCount(); in updateVertices() local
202 if (!vertexCount || fActorImage->textureIndex() < 0) { in updateVertices()
212 fPositions.resize(vertexCount); in updateVertices()
213 fTexs.resize(vertexCount); in updateVertices()
216 fBoneIdx.resize(vertexCount * 4); in updateVertices()
217 fBoneWgt.resize(vertexCount * 4); in updateVertices()
219 for (uint32_t i = 0; i < vertexCount; i ++) { in updateVertices()
247 vertexCount, in updateVertices()
/external/skqp/experimental/nima/
DNimaActor.cpp195 uint32_t vertexCount = fActorImage->vertexCount(); in updateVertices() local
202 if (!vertexCount || fActorImage->textureIndex() < 0) { in updateVertices()
212 fPositions.resize(vertexCount); in updateVertices()
213 fTexs.resize(vertexCount); in updateVertices()
216 fBoneIdx.resize(vertexCount * 4); in updateVertices()
217 fBoneWgt.resize(vertexCount * 4); in updateVertices()
219 for (uint32_t i = 0; i < vertexCount; i ++) { in updateVertices()
247 vertexCount, in updateVertices()
/external/deqp/external/vulkancts/modules/vulkan/geometry/
DvktGeometryInputGeometryShaderTests.cpp273 for (int vertexCount = 0; vertexCount <= 12; ++vertexCount) in createInputGeometryShaderTests() local
275 const string name = "vertex_count_" + de::toString(vertexCount); in createInputGeometryShaderTests()
278 …acencyGroup->addChild(new TriangleStripAdjacencyVertexCountTest(testCtx, primitives, vertexCount)); in createInputGeometryShaderTests()
/external/swiftshader/src/Vulkan/
DVkPipeline.cpp411 uint32_t GraphicsPipeline::computePrimitiveCount(uint32_t vertexCount) const in computePrimitiveCount()
416 return vertexCount; in computePrimitiveCount()
418 return vertexCount / 2; in computePrimitiveCount()
420 return vertexCount - 1; in computePrimitiveCount()
422 return vertexCount / 3; in computePrimitiveCount()
424 return vertexCount - 2; in computePrimitiveCount()
426 return vertexCount - 2; in computePrimitiveCount()
/external/deqp/external/vulkancts/modules/vulkan/draw/
DvktBasicDrawTests.cpp135 params.vertexCount = vertexC; in DrawParams()
170 cmd.vertexCount = vertexC; in addCommand()
624 de::Random rnd (SEED ^ m_data.params.firstVertex ^ m_data.params.vertexCount); in generateDrawData()
626 const deUint32 vectorSize = m_data.params.firstVertex + m_data.params.vertexCount; in generateDrawData()
654 …m_vk.cmdDraw(*m_cmdBuffer, m_data.params.vertexCount, m_data.params.instanceCount, m_data.params.f… in iterate()
804 de::Random rnd(SEED ^ m_data.commands[0].vertexCount ^ m_data.commands[0].firstVertex); in generateDrawData()
811 const deUint32 index = it->firstVertex + it->vertexCount; in generateDrawData()
823 for (deUint32 idx = 0; idx < it->vertexCount; ++idx) in generateDrawData()
911 std::vector<PositionColorVertex>::const_iterator lastIt = firstIt + it->vertexCount; in iterate()
1158 const deUint32 vertexCount = multiplier * primitives + offset; in populateSubGroup() local
[all …]
/external/skia/src/gpu/mtl/
DGrMtlGpuCommandBuffer.h95 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount, in sendMeshToGpu() argument
97 this->sendInstancedMeshToGpu(primType, vertexBuffer, vertexCount, baseVertex, nullptr, 1, in sendMeshToGpu()
111 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
/external/skqp/src/gpu/mtl/
DGrMtlGpuCommandBuffer.h97 void sendMeshToGpu(GrPrimitiveType primType, const GrBuffer* vertexBuffer, int vertexCount, in sendMeshToGpu() argument
99 this->sendInstancedMeshToGpu(primType, vertexBuffer, vertexCount, baseVertex, nullptr, 1, in sendMeshToGpu()
113 void sendInstancedMeshToGpu(GrPrimitiveType, const GrBuffer* vertexBuffer, int vertexCount,
/external/skia/src/utils/
DSkPatchUtils.cpp255 int vertexCount = SkToS32(mult64); in MakeVertices() local
258 if (vertexCount > 10000 || lodX > 200 || lodY > 200) { in MakeVertices()
267 vertexCount = (lodX + 1) * (lodY + 1); in MakeVertices()
280 SkPMColor4f* tmpColors = srcColors ? alloc.makeArray<SkPMColor4f>(vertexCount) : nullptr; in MakeVertices()
282 SkVertices::Builder builder(SkVertices::kTriangles_VertexMode, vertexCount, indexCount, flags); in MakeVertices()
366 float_to_skcolor(builder.colors(), tmpColors, vertexCount, colorSpace); in MakeVertices()
/external/skqp/src/utils/
DSkPatchUtils.cpp255 int vertexCount = SkToS32(mult64); in MakeVertices() local
258 if (vertexCount > 10000 || lodX > 200 || lodY > 200) { in MakeVertices()
267 vertexCount = (lodX + 1) * (lodY + 1); in MakeVertices()
280 SkPMColor4f* tmpColors = srcColors ? alloc.makeArray<SkPMColor4f>(vertexCount) : nullptr; in MakeVertices()
282 SkVertices::Builder builder(SkVertices::kTriangles_VertexMode, vertexCount, indexCount, flags); in MakeVertices()
366 float_to_skcolor(builder.colors(), tmpColors, vertexCount, colorSpace); in MakeVertices()
/external/skia/tests/
DVerticesTest.cpp18 if (v0->vertexCount() != v1->vertexCount()) { in equal()
32 for (int i = 0; i < v0->vertexCount(); ++i) { in equal()
/external/skqp/tests/
DVerticesTest.cpp18 if (v0->vertexCount() != v1->vertexCount()) { in equal()
32 for (int i = 0; i < v0->vertexCount(); ++i) { in equal()

1234567