/external/skia/samplecode/ |
H A D | vertexdump.cpp | 9 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]); 11 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]) { argument 12 verts[0].set(107, 189); 14 verts[1].set(116, 189); 16 verts[2].set(203, 189); 18 verts[3].set(212, 189); 20 verts[4].set(107, 198); 22 verts[5].set(116, 198); 24 verts[6].set(203, 198); 26 verts[ [all...] |
/external/skia/tests/ |
H A D | ShadowUtilsTest.cpp | 22 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightFunc, kAmbientAlpha, true); local 23 if (expectSuccess != SkToBool(verts)) { 27 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightFunc, kAmbientAlpha, false); 28 if (expectSuccess != SkToBool(verts)) { 32 verts = SkShadowTessellator::MakeSpot(path, ctm, heightFunc, {0, 0, 128}, 128.f, 34 if (expectSuccess != SkToBool(verts)) { 38 verts = SkShadowTessellator::MakeSpot(path, ctm, heightFunc, {0, 0, 128}, 128.f, 40 if (expectSuccess != SkToBool(verts)) {
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
H A D | draw_pt_decompose.h | 2 char *verts = (char *) vertices; \
|
H A D | draw_pipe.c | 178 verts + stride * (i0), \ 179 verts + stride * (i1), \ 180 verts + stride * (i2) ); \ 187 verts + stride * (i0), \ 188 verts + stride * (i1) ); \ 193 do_point( draw, verts + stride * (i0) ); \ 230 draw->pipeline.verts = (char *)vert_info->verts; 262 vert_info->verts, 268 draw->pipeline.verts 321 char *verts = ((char*)vert_info->verts) + local [all...] |
H A D | draw_pipe_util.c | 61 /* This is only used for temporary verts. 125 if (draw->pipeline.verts) 128 char *verts = draw->pipeline.verts; local 132 ((struct vertex_header *)verts)->vertex_id = UNDEFINED_VERTEX_ID; 133 verts += stride;
|
H A D | draw_pt_fetch_shade_pipeline.c | 186 output_verts->verts = 191 (const float (*)[4])input_verts->verts->data, 192 ( float (*)[4])output_verts->verts->data, 218 fetched_vert_info.verts = 221 if (!fetched_vert_info.verts) { 228 fetch( fpme->fetch, fetch_info, (char *)fetched_vert_info.verts ); 236 * the pipeline verts. 245 FREE(vert_info->verts); 258 FREE(vert_info->verts); 291 FREE(vert_info->verts); [all...] |
/external/mesa3d/src/mesa/swrast_setup/ |
H A D | ss_context.h | 39 SWvertex *verts; member in struct:__anon15322
|
H A D | ss_triangle.c | 118 SWvertex *verts = swsetup->verts; local 119 SWvertex *v0 = &verts[e0]; 120 SWvertex *v1 = &verts[e1]; 121 SWvertex *v2 = &verts[e2]; 216 SWvertex *verts = SWSETUP_CONTEXT(ctx)->verts; local 222 _swrast_Point( ctx, &verts[VB->Elts[i]] ); 227 _swrast_Point( ctx, &verts[i] ); 233 SWvertex *verts local [all...] |
/external/skia/src/gpu/ops/ |
H A D | GrAAConvexPathRenderer.cpp | 353 QuadVertex* verts, 366 // Check whether adding the verts for this segment to the current draw would cause index 375 verts += *v; 383 verts[*v + 0].fPos = sega.endPt(); 384 verts[*v + 1].fPos = verts[*v + 0].fPos + sega.endNorm(); 385 verts[*v + 2].fPos = verts[*v + 0].fPos + segb.fMid; 386 verts[*v + 3].fPos = verts[* 350 create_vertices(const SegmentArray& segments, const SkPoint& fanPt, DrawArray* draws, QuadVertex* verts, uint16_t* idxs) argument 682 intptr_t verts = reinterpret_cast<intptr_t>(vertices); local 797 void* verts = target->makeVertexSpace(vertexStride, tess.numPts(), &vertexBuffer, local 882 QuadVertex* verts = reinterpret_cast<QuadVertex*>(target->makeVertexSpace( variable [all...] |
H A D | GrNonAAStrokeRectOp.cpp | 20 could use an indices array, and then only send 8 verts, but not sure that 23 static void init_stroke_rect_strip(SkPoint verts[10], const SkRect& rect, SkScalar width) { argument 29 verts[0].set(rect.fLeft + rad, rect.fTop + rad); 30 verts[1].set(rect.fLeft - rad, rect.fTop - rad); 31 verts[2].set(rect.fRight - rad, rect.fTop + rad); 32 verts[3].set(rect.fRight + rad, rect.fTop - rad); 33 verts[4].set(rect.fRight - rad, rect.fBottom - rad); 34 verts[5].set(rect.fRight + rad, rect.fBottom + rad); 35 verts[6].set(rect.fLeft + rad, rect.fBottom - rad); 36 verts[ 135 void* verts = variable [all...] |
H A D | GrAnalyticRectOp.cpp | 298 RectVertex* verts = variable 300 if (!verts) { 317 verts[0].fPos = {croppedRect.fLeft, croppedRect.fTop}; 318 verts[0].fColor = color; 319 verts[0].fCenter = center; 320 verts[0].fDownDir = downDir; 321 verts[0].fHalfWidth = halfWidth; 322 verts[0].fHalfHeight = halfHeight; 324 verts[1].fPos = {croppedRect.fRight, croppedRect.fTop}; 325 verts[ [all...] |
H A D | GrShadowRRectOp.cpp | 587 static void FillInOverstrokeVerts(CircleVertex** verts, const SkRect& bounds, SkScalar smInset, argument 593 (*verts)->fPos = SkPoint::Make(bounds.fLeft + smInset, bounds.fTop + smInset); 594 (*verts)->fColor = color; 595 (*verts)->fOffset = SkPoint::Make(xOffset, 0); 596 (*verts)->fOuterRadius = outerRadius; 597 (*verts)->fBlurRadius = blurRadius; 598 (*verts)++; 601 (*verts)->fPos = SkPoint::Make(bounds.fRight - smInset, bounds.fTop + smInset); 602 (*verts)->fColor = color; 603 (*verts) [all...] |
H A D | GrRegionOp.cpp | 32 intptr_t verts = vertices; local 35 SkPoint* position = (SkPoint*)verts; 39 GrColor* vertColor = reinterpret_cast<GrColor*>(verts + kColorOffset); 45 verts += vertexStride * kVertsPerInstance; 115 intptr_t verts = reinterpret_cast<intptr_t>(vertices); variable 117 tesselate_region(verts, vertexStride, fRegions[i].fColor, fRegions[i].fRegion); 119 verts += numRectsInRegion * kVertsPerInstance * vertexStride;
|
H A D | GrOvalOpFactory.cpp | 675 // Second, the outer radius is used to compute the verts of the bounding box that is 1285 EllipseVertex* verts = variable 1287 if (!verts) { 1311 verts[0].fPos = SkPoint::Make(bounds.fLeft, bounds.fTop); 1312 verts[0].fColor = color; 1313 verts[0].fOffset = SkPoint::Make(-xMaxOffset, -yMaxOffset); 1314 verts[0].fOuterRadii = SkPoint::Make(xRadRecip, yRadRecip); 1315 verts[0].fInnerRadii = SkPoint::Make(xInnerRadRecip, yInnerRadRecip); 1317 verts[1].fPos = SkPoint::Make(bounds.fLeft, bounds.fBottom); 1318 verts[ 1495 DIEllipseVertex* verts = reinterpret_cast<DIEllipseVertex*>( variable 1813 FillInOverstrokeVerts(CircleVertex** verts, const SkRect& bounds, SkScalar smInset, SkScalar bigInset, SkScalar xOffset, SkScalar outerRadius, SkScalar innerRadius, GrColor color) argument [all...] |
H A D | GrAAFillRectOp.cpp | 49 static void generate_aa_fill_rect_geometry(intptr_t verts, argument 57 SkPoint* fan0Pos = reinterpret_cast<SkPoint*>(verts); 58 SkPoint* fan1Pos = reinterpret_cast<SkPoint*>(verts + 4 * vertexStride); 114 SkPoint* fan0Loc = reinterpret_cast<SkPoint*>(verts + sizeof(SkPoint) + sizeof(GrColor)); 118 // Make verts point to vertex color and then set all the color and coverage vertex attrs 120 verts += sizeof(SkPoint); 126 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = 0; 128 *reinterpret_cast<GrColor*>(verts + i * vertexStride) = color; 129 *reinterpret_cast<float*>(verts + i * vertexStride + coverageOffset) = 0; 141 verts 246 intptr_t verts = variable [all...] |
H A D | GrAAStrokeRectOp.cpp | 438 intptr_t verts = reinterpret_cast<intptr_t>(vertices) + offset; local 443 SkPoint* fan0Pos = reinterpret_cast<SkPoint*>(verts); 444 SkPoint* fan1Pos = reinterpret_cast<SkPoint*>(verts + outerVertexNum * vertexStride); 445 SkPoint* fan2Pos = reinterpret_cast<SkPoint*>(verts + 2 * outerVertexNum * vertexStride); 447 verts + (2 * outerVertexNum + innerVertexNum) * vertexStride); 500 SkPoint* fan0AssistPos = reinterpret_cast<SkPoint*>(verts + 4 * vertexStride); 502 reinterpret_cast<SkPoint*>(verts + (outerVertexNum + 4) * vertexStride); 525 // Make verts point to vertex color and then set all the color and coverage vertex attrs 527 verts += sizeof(SkPoint); 530 *reinterpret_cast<GrColor*>(verts [all...] |
H A D | GrDrawVerticesOp.cpp | 150 void* verts = target->makeVertexSpace(vertexStride, fVertexCount, &vertexBuffer, &firstVertex); local 152 if (!verts) { 195 V* v = (V*)verts; 205 verts = v + vertexCount; 213 mesh.fViewMatrix.mapPoints(((SkPoint*)verts), &positions[j], 1); 215 *((SkPoint*)verts) = positions[j]; 219 *(uint32_t*)((intptr_t)verts + kColorOffset) = colors[j]; 221 *(uint32_t*)((intptr_t)verts + kColorOffset) = mesh.fColor; 226 *(SkPoint*)((intptr_t)verts + localCoordOffset) = localCoords[j]; 228 *(SkPoint*)((intptr_t)verts [all...] |
H A D | GrLatticeOp.cpp | 97 intptr_t verts = reinterpret_cast<intptr_t>(vertices); variable 109 intptr_t patchVerts = verts; 111 SkPoint* positions = reinterpret_cast<SkPoint*>(verts); 117 SkPoint* coords = reinterpret_cast<SkPoint*>(verts + kLocalOffset); 121 GrColor* vertColor = reinterpret_cast<GrColor*>(verts + kColorOffset); 126 verts += kVertsPerRect * vertexStride;
|
/external/mesa3d/src/gallium/auxiliary/postprocess/ |
H A D | filters.h | 41 unsigned int verts; /* How many are vertex shaders */ member in struct:pp_filter_t 49 /* name inner shaders verts init run */
|
H A D | pp_program.c | 63 static const float verts[4][2][4] = { local 83 PIPE_USAGE_STATIC, sizeof(verts)); 84 pipe_buffer_write(p->pipe, p->vbuf, 0, sizeof(verts), verts);
|
H A D | postprocess.h | 60 unsigned int *verts; member in struct:pp_queue_t
|
/external/mesa3d/src/mesa/drivers/common/ |
H A D | meta.c | 1504 struct vertex verts[4]; local 1523 verts[0].x = (GLfloat) dstX0; 1524 verts[0].y = (GLfloat) dstY0; 1525 verts[1].x = (GLfloat) dstX1; 1526 verts[1].y = (GLfloat) dstY0; 1527 verts[2].x = (GLfloat) dstX1; 1528 verts[2].y = (GLfloat) dstY1; 1529 verts[3].x = (GLfloat) dstX0; 1530 verts[3].y = (GLfloat) dstY1; 1532 verts[ 1591 struct vertex verts[4]; local 1761 struct vertex verts[4]; local 1999 } verts[4]; local 2110 struct vertex verts[4]; local 2364 struct vertex verts[4]; local 2633 struct vertex verts[4]; local 3240 struct vertex verts[4]; local 3613 struct vertex verts[4]; local 3852 struct vertex verts[4]; local [all...] |
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
H A D | radeon_blit.c | 282 float verts[12]; local 290 verts[0] = dst_x_offset; 291 verts[1] = dst_y_offset + reg_height; 292 verts[2] = texcoords[0]; 293 verts[3] = texcoords[3]; 295 verts[4] = dst_x_offset + reg_width; 296 verts[5] = dst_y_offset + reg_height; 297 verts[6] = texcoords[1]; 298 verts[7] = texcoords[3]; 300 verts[ [all...] |
/external/skia/src/gpu/ |
H A D | GrTessellator.h | 43 // for all three vertices of a triangle). The 'verts' out parameter is set to point to the resultant 46 WindingVertex** verts);
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
H A D | r200_blit.c | 407 float verts[12]; local 415 verts[0] = dst_x_offset; 416 verts[1] = dst_y_offset + reg_height; 417 verts[2] = texcoords[0]; 418 verts[3] = texcoords[3]; 420 verts[4] = dst_x_offset + reg_width; 421 verts[5] = dst_y_offset + reg_height; 422 verts[6] = texcoords[1]; 423 verts[7] = texcoords[3]; 425 verts[ [all...] |