Home
last modified time | relevance | path

Searched refs:vertexStride (Results 1 – 23 of 23) sorted by relevance

/external/skia/src/gpu/
DGrAARectRenderer.cpp112 size_t vertexStride = gp->getVertexStride(); in generateGeometry() local
114 vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorAttr) : in generateGeometry()
115 vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorCoverageAttr)); in generateGeometry()
121 void* vertices = helper.init(batchTarget, kTriangles_GrPrimitiveType, vertexStride, in generateGeometry()
132 i * kVertsPerAAFillRect * vertexStride, in generateGeometry()
133 vertexStride, in generateGeometry()
208 size_t vertexStride, in generateAAFillRectGeometry() argument
217 SkPoint* fan1Pos = reinterpret_cast<SkPoint*>(verts + 4 * vertexStride); in generateAAFillRectGeometry()
223 set_inset_fan(fan0Pos, vertexStride, devRect, -SK_ScalarHalf, -SK_ScalarHalf); in generateAAFillRectGeometry()
224 set_inset_fan(fan1Pos, vertexStride, devRect, inset, inset); in generateAAFillRectGeometry()
[all …]
DGrRectBatch.cpp117 size_t vertexStride = gp->getVertexStride(); in generateGeometry() local
119 vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorLocalCoordAttr) : in generateGeometry()
120 vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorAttr)); in generateGeometry()
122 void* vertices = helper.init(batchTarget, vertexStride, instanceCount); in generateGeometry()
132 intptr_t offset = GrTCast<intptr_t>(vertices) + kVerticesPerQuad * i * vertexStride; in generateGeometry()
136 geom.fRect.fRight, geom.fRect.fBottom, vertexStride); in generateGeometry()
137 geom.fViewMatrix.mapPointsWithStride(positions, vertexStride, kVerticesPerQuad); in generateGeometry()
144 vertexStride); in generateGeometry()
146 geom.fLocalMatrix.mapPointsWithStride(coords, vertexStride, kVerticesPerQuad); in generateGeometry()
154 vertColor = (GrColor*) ((intptr_t) vertColor + vertexStride); in generateGeometry()
DGrBatch.cpp50 size_t vertexStride, const GrIndexBuffer* indexBuffer, in init() argument
60 void* vertices = batchTarget->makeVertSpace(vertexStride, vertexCount, in init()
76 void* GrBatch::QuadHelper::init(GrBatchTarget* batchTarget, size_t vertexStride, int quadsToDraw) { in init() argument
83 return this->INHERITED::init(batchTarget, kTriangles_GrPrimitiveType, vertexStride, in init()
DGrAtlasTextContext.cpp1271 size_t vertexStride = get_vertex_stride(format); in bmpAppendGlyph() local
1279 this->appendGlyphCommon(blob, &run, subRun, r, color, vertexStride, kA8_GrMaskFormat == format, in bmpAppendGlyph()
1342 size_t vertexStride = get_vertex_stride_df(kA8_GrMaskFormat, subRun->fUseLCDText); in dfAppendGlyph() local
1345 this->appendGlyphCommon(blob, &run, subRun, glyphRect, color, vertexStride, useColorVerts, in dfAppendGlyph()
1368 size_t vertexStride, bool useVertexColor, in appendGlyphCommon() argument
1382 vertex += vertexStride; in appendGlyphCommon()
1389 vertex += vertexStride; in appendGlyphCommon()
1396 vertex += vertexStride; in appendGlyphCommon()
1407 vertex += vertexStride; in appendGlyphCommon()
1412 vertex += vertexStride; in appendGlyphCommon()
[all …]
DGrAAConvexPathRenderer.cpp703 size_t vertexStride, in extract_verts() argument
710 *((SkPoint*)((intptr_t)verts + i * vertexStride)) = tess.point(i); in extract_verts()
721 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = scaledColor; in extract_verts()
723 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = color; in extract_verts()
724 *reinterpret_cast<float*>(verts + i * vertexStride + sizeof(GrColor)) = in extract_verts()
806 size_t vertexStride = gp->getVertexStride(); in generateGeometryLinesOnly() local
809 vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorAttr) : in generateGeometryLinesOnly()
810 vertexStride == sizeof(GrDefaultGeoProcFactory::PositionColorCoverageAttr)); in generateGeometryLinesOnly()
828 void* verts = batchTarget->makeVertSpace(vertexStride, tess.numPts(), in generateGeometryLinesOnly()
845 extract_verts(tess, verts, vertexStride, args.fColor, idxs, canTweakAlphaForCoverage); in generateGeometryLinesOnly()
[all …]
DGrAADistanceFieldPathRenderer.cpp207 size_t vertexStride = dfProcessor->getVertexStride(); in generateGeometry() local
208 SkASSERT(vertexStride == 2 * sizeof(SkPoint)); in generateGeometry()
211 void* vertices = batchTarget->makeVertSpace(vertexStride, in generateGeometry()
273 offset += i * kVerticesPerQuad * vertexStride; in generateGeometry()
280 vertexStride, in generateGeometry()
458 size_t vertexStride, in writePathVertices() argument
483 positions->setRectFan(r.left(), r.top(), r.right(), r.bottom(), vertexStride); in writePathVertices()
491 vertexStride); in writePathVertices()
DGrBatch.h120 void* init(GrBatchTarget* batchTarget, GrPrimitiveType, size_t vertexStride,
143 void* init(GrBatchTarget* batchTarget, size_t vertexStride, int quadsToDraw);
DGrBatchTarget.h125 void putBackVertices(size_t vertices, size_t vertexStride) { in putBackVertices() argument
126 fVertexPool->putBack(vertices * vertexStride); in putBackVertices()
DGrOvalRenderer.cpp712 size_t vertexStride = gp->getVertexStride(); in generateGeometry() local
713 SkASSERT(vertexStride == sizeof(CircleVertex)); in generateGeometry()
715 CircleVertex* verts = reinterpret_cast<CircleVertex*>(helper.init(batchTarget, vertexStride, in generateGeometry()
937 size_t vertexStride = gp->getVertexStride(); in generateGeometry() local
938 SkASSERT(vertexStride == sizeof(EllipseVertex)); in generateGeometry()
940 helper.init(batchTarget, vertexStride, instanceCount)); in generateGeometry()
1204 size_t vertexStride = gp->getVertexStride(); in generateGeometry() local
1205 SkASSERT(vertexStride == sizeof(DIEllipseVertex)); in generateGeometry()
1208 helper.init(batchTarget, vertexStride, instanceCount)); in generateGeometry()
1569 size_t vertexStride = gp->getVertexStride(); in generateGeometry() local
[all …]
DGrDefaultPathRenderer.cpp261 size_t vertexStride = gp->getVertexStride(); in generateGeometry() local
262 SkASSERT(vertexStride == sizeof(SkPoint)); in generateGeometry()
321 void* verts = batchTarget->makeVertSpace(vertexStride, maxVertices, in generateGeometry()
378 batchTarget->putBackVertices((size_t)(maxVertices - vertexOffset), (size_t)vertexStride); in generateGeometry()
DGrContext.cpp456 size_t vertexStride = gp->getVertexStride(); in generateGeometry() local
458 SkASSERT(vertexStride == sizeof(GrDefaultGeoProcFactory::PositionAttr)); in generateGeometry()
470 void* verts = batchTarget->makeVertSpace(vertexStride, vertexCount, in generateGeometry()
803 size_t vertexStride = gp->getVertexStride(); in generateGeometry() local
805 SkASSERT(vertexStride == sizeof(SkPoint) + (this->hasLocalCoords() ? sizeof(SkPoint) : 0) in generateGeometry()
813 void* verts = batchTarget->makeVertSpace(vertexStride, this->vertexCount(), in generateGeometry()
854 verts = (void*)((intptr_t)verts + vertexStride); in generateGeometry()
DGrAAHairLinePathRenderer.cpp873 size_t vertexStride = lineGP->getVertexStride(); in generateGeometry() local
876 batchTarget->makeVertSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex)); in generateGeometry()
905 size_t vertexStride = sizeof(BezierVertex); in generateGeometry() local
907 void *vertices = batchTarget->makeVertSpace(vertexStride, vertexCount, in generateGeometry()
DGrAtlasTextContext.h271 size_t vertexStride, bool useVertexColor,
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/collision/shapes/
DMeshCollisionShape.java53 protected int numVertices, numTriangles, vertexStride, triangleIndexStride; field in MeshCollisionShape
73 this.vertexStride = bulletMesh.vertexStride; in createCollisionMesh()
92 capsule.write(vertexStride, "vertexStride", 0); in write()
104 vertexStride = capsule.readInt("vertexStride", 0); in read()
116 bulletMesh.vertexStride = vertexStride; in createShape()
121 …Array(numTriangles, triangleIndexBase, triangleIndexStride, numVertices, vertexBase, vertexStride); in createShape()
DGImpactCollisionShape.java54 protected int numVertices, numTriangles, vertexStride, triangleIndexStride; field in GImpactCollisionShape
75 this.vertexStride = bulletMesh.vertexStride; in createCollisionMesh()
95 capsule.write(vertexStride, "vertexStride", 0); in write()
108 vertexStride = capsule.readInt("vertexStride", 0); in read()
120 bulletMesh.vertexStride = vertexStride; in createShape()
125 …Array(numTriangles, triangleIndexBase, triangleIndexStride, numVertices, vertexBase, vertexStride); in createShape()
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/shapes/
DGImpactCollisionShape.java56 protected int numVertices, numTriangles, vertexStride, triangleIndexStride; field in GImpactCollisionShape
78 vertexStride = 12; //3 verts * 4 bytes per. in createCollisionMesh()
114 capsule.write(vertexStride, "vertexStride", 0); in write()
127 vertexStride = capsule.readInt("vertexStride", 0); in read()
150 …VertexArray(triangleIndexBase, vertexBase, numTriangles, numVertices, vertexStride, triangleIndexS… in createShape()
DMeshCollisionShape.java56 protected int numVertices, numTriangles, vertexStride, triangleIndexStride; field in MeshCollisionShape
75 vertexStride = 12; //3 verts * 4 bytes per. in createCollisionMesh()
110 capsule.write(vertexStride, "vertexStride", 0); in write()
122 vertexStride = capsule.readInt("vertexStride", 0); in read()
143 …VertexArray(triangleIndexBase, vertexBase, numTriangles, numVertices, vertexStride, triangleIndexS… in createShape()
/external/jmonkeyengine/engine/src/bullet-native/
Dcom_jme3_bullet_util_NativeMeshUtil.cpp49 …e, jobject vertexIndexBase, jint numTriangles, jint numVertices, jint vertexStride, jint triangleI… in Java_com_jme3_bullet_util_NativeMeshUtil_createTriangleIndexVertexArray() argument
53 …ndexVertexArray(numTriangles, triangles, triangleIndexStride, numVertices, vertices, vertexStride); in Java_com_jme3_bullet_util_NativeMeshUtil_createTriangleIndexVertexArray()
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/util/
DNativeMeshUtil.java51 int vertexStride = 12; //3 verts * 4 bytes per. in getTriangleIndexVertexArray() local
72 …VertexArray(triangleIndexBase, vertexBase, numTriangles, numVertices, vertexStride, triangleIndexS… in getTriangleIndexVertexArray()
/external/skia/gm/
Dbeziereffects.cpp74 size_t vertexStride = this->geometryProcessor()->getVertexStride(); in onGenerateGeometry() local
75 SkASSERT(vertexStride == sizeof(Vertex)); in onGenerateGeometry()
76 Vertex* verts = reinterpret_cast<Vertex*>(helper.init(batchTarget, vertexStride, 1)); in onGenerateGeometry()
469 size_t vertexStride = this->geometryProcessor()->getVertexStride(); in onGenerateGeometry() local
470 SkASSERT(vertexStride == sizeof(Vertex)); in onGenerateGeometry()
471 Vertex* verts = reinterpret_cast<Vertex*>(helper.init(batchTarget, vertexStride, 1)); in onGenerateGeometry()
Dconvexpolyeffect.cpp59 size_t vertexStride = this->geometryProcessor()->getVertexStride(); in onGenerateGeometry() local
60 SkASSERT(vertexStride == sizeof(SkPoint)); in onGenerateGeometry()
62 SkPoint* verts = reinterpret_cast<SkPoint*>(helper.init(batchTarget, vertexStride, 1)); in onGenerateGeometry()
/external/skia/src/gpu/effects/
DGrDashingEffect.cpp187 DashCap cap, const size_t vertexStride) { in setup_dashed_rect() argument
191 SkASSERT(vertexStride == sizeof(DashCircleVertex)); in setup_dashed_rect()
207 SkASSERT(kNonRound_DashCap == cap && vertexStride == sizeof(DashLineVertex)); in setup_dashed_rect()
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/util/
DConverter.java238 jBulletIndexedMesh.vertexStride = 12; //3 verts * 4 bytes per. in convert()