Home
last modified time | relevance | path

Searched refs:verts (Results 1 – 25 of 66) sorted by relevance

123

/third_party/skia/src/gpu/ops/
DShadowRRectOp.cpp268 void fillInCircleVerts(const Geometry& args, bool isStroked, CircleVertex** verts) const { in fillInCircleVerts()
285 (*verts)->fPos = center + SkPoint::Make(-octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
286 (*verts)->fColor = color; in fillInCircleVerts()
287 (*verts)->fOffset = SkPoint::Make(-octOffset, -1); in fillInCircleVerts()
288 (*verts)->fDistanceCorrection = distanceCorrection; in fillInCircleVerts()
289 (*verts)++; in fillInCircleVerts()
291 (*verts)->fPos = center + SkPoint::Make(octOffset * halfWidth, -halfWidth); in fillInCircleVerts()
292 (*verts)->fColor = color; in fillInCircleVerts()
293 (*verts)->fOffset = SkPoint::Make(octOffset, -1); in fillInCircleVerts()
294 (*verts)->fDistanceCorrection = distanceCorrection; in fillInCircleVerts()
[all …]
DStrokeRectOp.cpp64 void init_nonaa_stroke_rect_strip(SkPoint verts[10], const SkRect& rect, SkScalar width) { in init_nonaa_stroke_rect_strip()
67 verts[0].set(rect.fLeft + rad, rect.fTop + rad); in init_nonaa_stroke_rect_strip()
68 verts[1].set(rect.fLeft - rad, rect.fTop - rad); in init_nonaa_stroke_rect_strip()
69 verts[2].set(rect.fRight - rad, rect.fTop + rad); in init_nonaa_stroke_rect_strip()
70 verts[3].set(rect.fRight + rad, rect.fTop - rad); in init_nonaa_stroke_rect_strip()
71 verts[4].set(rect.fRight - rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip()
72 verts[5].set(rect.fRight + rad, rect.fBottom + rad); in init_nonaa_stroke_rect_strip()
73 verts[6].set(rect.fLeft + rad, rect.fBottom - rad); in init_nonaa_stroke_rect_strip()
74 verts[7].set(rect.fLeft - rad, rect.fBottom + rad); in init_nonaa_stroke_rect_strip()
75 verts[8] = verts[0]; in init_nonaa_stroke_rect_strip()
[all …]
DAAConvexPathRenderer.cpp369 VertexWriter& verts, in create_vertices() argument
403 verts << p0 << color << SkPoint{0, 0} << negOneDists; in create_vertices()
404 verts << (p0 + sega.endNorm()) << color << SkPoint{0, -SK_Scalar1} << negOneDists; in create_vertices()
405 verts << (p0 + segb.fMid) << color << SkPoint{0, -SK_Scalar1} << negOneDists; in create_vertices()
406 verts << (p0 + segb.fNorms[0]) << color << SkPoint{0, -SK_Scalar1} << negOneDists; in create_vertices()
425 verts << fanPt << color << SkPoint{0, dist} << negOneDists; in create_vertices()
426 verts << v1Pos << color << SkPoint{0, 0} << negOneDists; in create_vertices()
427 verts << v2Pos << color << SkPoint{0, 0} << negOneDists; in create_vertices()
428 verts << (v1Pos + segb.fNorms[0]) << color << SkPoint{0, -SK_Scalar1} << negOneDists; in create_vertices()
429 verts << (v2Pos + segb.fNorms[0]) << color << SkPoint{0, -SK_Scalar1} << negOneDists; in create_vertices()
[all …]
DAAHairLinePathRenderer.cpp523 void set_uv_quad(const SkPoint qpts[3], BezierVertex verts[kQuadNumVertices]) { in set_uv_quad()
526 DevToUV.apply(verts, kQuadNumVertices, sizeof(BezierVertex), sizeof(SkPoint)); in set_uv_quad()
532 BezierVertex verts[kQuadNumVertices]) { in bloat_quad()
556 BezierVertex& a0 = verts[0]; in bloat_quad()
557 BezierVertex& a1 = verts[1]; in bloat_quad()
558 BezierVertex& b0 = verts[2]; in bloat_quad()
559 BezierVertex& c0 = verts[3]; in bloat_quad()
560 BezierVertex& c1 = verts[4]; in bloat_quad()
609 SkMatrixPriv::MapPointsWithStride(*toSrc, &verts[0].fPos, sizeof(BezierVertex), in bloat_quad()
622 BezierVertex verts[kQuadNumVertices], in set_conic_coeffs()
[all …]
/third_party/skia/samplecode/
Dvertexdump.cpp9 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]);
11 void setup_vertexbug(SkPoint verts[], SkPoint texs[], uint16_t index[]) { in setup_vertexbug() argument
12 verts[0].set(107, 189); in setup_vertexbug()
14 verts[1].set(116, 189); in setup_vertexbug()
16 verts[2].set(203, 189); in setup_vertexbug()
18 verts[3].set(212, 189); in setup_vertexbug()
20 verts[4].set(107, 198); in setup_vertexbug()
22 verts[5].set(116, 198); in setup_vertexbug()
24 verts[6].set(203, 198); in setup_vertexbug()
26 verts[7].set(212, 198); in setup_vertexbug()
[all …]
DSampleVertices.cpp79 auto verts = SkVertices::MakeCopy(fRecs[i].fMode, fRecs[i].fCount, in onDrawContent() local
85 canvas->drawVertices(verts, SkBlendMode::kModulate, paint); in onDrawContent()
90 canvas->drawVertices(verts, SkBlendMode::kModulate, paint); in onDrawContent()
95 canvas->drawVertices(verts, SkBlendMode::kModulate, paint); in onDrawContent()
/third_party/skia/tests/
DShadowTest.cpp22 void check_result(skiatest::Reporter* reporter, sk_sp<SkVertices> verts, in check_result() argument
24 if (expectSuccess != SkToBool(verts)) { in check_result()
28 if (SkToBool(verts)) { in check_result()
29 if (kDont_ExpectVerts == expectVerts && verts->priv().vertexCount()) { in check_result()
31 } else if (kDo_ExpectVerts == expectVerts && !verts->priv().vertexCount()) { in check_result()
40 auto verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, true); in tessellate_shadow() local
41 check_result(reporter, verts, expectVerts, expectSuccess); in tessellate_shadow()
43 verts = SkShadowTessellator::MakeAmbient(path, ctm, heightParams, false); in tessellate_shadow()
44 check_result(reporter, verts, expectVerts, expectSuccess); in tessellate_shadow()
46 verts = SkShadowTessellator::MakeSpot(path, ctm, heightParams, {0, 0, 128}, 128.f, true, false); in tessellate_shadow()
[all …]
/third_party/mesa3d/src/mesa/state_tracker/
Dst_draw.c451 struct st_util_vertex *verts; in st_draw_quad() local
457 &vb.buffer_offset, &vb.buffer.resource, (void **) &verts); in st_draw_quad()
463 verts[0].x = x0; in st_draw_quad()
464 verts[0].y = y1; in st_draw_quad()
465 verts[0].z = z; in st_draw_quad()
466 verts[0].r = color[0]; in st_draw_quad()
467 verts[0].g = color[1]; in st_draw_quad()
468 verts[0].b = color[2]; in st_draw_quad()
469 verts[0].a = color[3]; in st_draw_quad()
470 verts[0].s = s0; in st_draw_quad()
[all …]
Dst_cb_bitmap.c662 struct st_util_vertex *verts; in st_DrawAtlasBitmaps() local
686 &vb.buffer_offset, &vb.buffer.resource, (void **) &verts); in st_DrawAtlasBitmaps()
688 if (unlikely(!verts)) { in st_DrawAtlasBitmaps()
710 verts->x = clip_x0; in st_DrawAtlasBitmaps()
711 verts->y = clip_y0; in st_DrawAtlasBitmaps()
712 verts->z = z; in st_DrawAtlasBitmaps()
713 verts->r = color[0]; in st_DrawAtlasBitmaps()
714 verts->g = color[1]; in st_DrawAtlasBitmaps()
715 verts->b = color[2]; in st_DrawAtlasBitmaps()
716 verts->a = color[3]; in st_DrawAtlasBitmaps()
[all …]
Dst_pbo.c221 float *verts = NULL; in st_pbo_draw() local
226 &vbo.buffer_offset, &vbo.buffer.resource, (void **) &verts); in st_pbo_draw()
227 if (!verts) in st_pbo_draw()
230 verts[0] = x0; in st_pbo_draw()
231 verts[1] = y0; in st_pbo_draw()
232 verts[2] = x0; in st_pbo_draw()
233 verts[3] = y1; in st_pbo_draw()
234 verts[4] = x1; in st_pbo_draw()
235 verts[5] = y0; in st_pbo_draw()
236 verts[6] = x1; in st_pbo_draw()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe.c186 verts + stride * (i0), \
187 verts + stride * (i1), \
188 verts + stride * (i2)); \
195 verts + stride * (i0), \
196 verts + stride * (i1)); \
201 do_point(draw, verts + stride * (i0)); \
238 draw->pipeline.verts = (char *)vert_info->verts; in draw_pipeline_run()
270 vert_info->verts, in draw_pipeline_run()
277 draw->pipeline.verts = NULL; in draw_pipeline_run()
289 verts + stride * (i0), \
[all …]
Ddraw_pipe_util.c125 if (draw->pipeline.verts) in draw_reset_vertex_ids()
128 char *verts = draw->pipeline.verts; in draw_reset_vertex_ids() local
132 ((struct vertex_header *)verts)->vertex_id = UNDEFINED_VERTEX_ID; in draw_reset_vertex_ids()
133 verts += stride; in draw_reset_vertex_ids()
Ddraw_pt_fetch_shade_pipeline.c205 output_verts->verts = in draw_vertex_shader_run()
211 (const float (*)[4])input_verts->verts->data, in draw_vertex_shader_run()
212 ( float (*)[4])output_verts->verts->data, in draw_vertex_shader_run()
246 fetched_vert_info.verts = in fetch_pipeline_generic()
250 if (!fetched_vert_info.verts) { in fetch_pipeline_generic()
263 fetch(fpme->fetch, fetch_info, (char *)fetched_vert_info.verts); in fetch_pipeline_generic()
279 FREE(vert_info->verts); in fetch_pipeline_generic()
297 FREE(vert_info->verts); in fetch_pipeline_generic()
317 FREE(vert_info->verts); in fetch_pipeline_generic()
327 FREE(vert_info->verts); in fetch_pipeline_generic()
[all …]
Ddraw_tess.c117 char *output = (char *)output_verts->verts->data; in llvm_store_tcs_output()
165 const float (*input)[4] = (const float (*)[4])input_verts->verts->data; in draw_tess_ctrl_shader_run()
173 output_verts->verts = NULL; in draw_tess_ctrl_shader_run()
205 output_verts->verts = REALLOC(output_verts->verts, old_size, new_size); in draw_tess_ctrl_shader_run()
331 const float (*input)[4] = (const float (*)[4])input_verts->verts->data; in draw_tess_eval_shader_run()
339 output_verts->verts = NULL; in draw_tess_eval_shader_run()
378 output_verts->verts = REALLOC(output_verts->verts, old_size, new_size); in draw_tess_eval_shader_run()
391 char *output = (char *)output_verts->verts; in draw_tess_eval_shader_run()
Ddraw_pt_fetch.c146 char *verts) in draw_pt_fetch_run() argument
166 verts ); in draw_pt_fetch_run()
174 char *verts) in draw_pt_fetch_run_linear() argument
194 verts ); in draw_pt_fetch_run_linear()
Ddraw_prim_assembler.c115 char *output = (char*)asmblr->output_verts->verts; in copy_verts()
116 const char *input = (const char*)asmblr->input_verts->verts; in copy_verts()
137 char *input = (char*)asmblr->input_verts->verts; in inject_primid()
294 output_verts->verts = (struct vertex_header*)MALLOC( in draw_prim_assembler_run()
/third_party/skia/third_party/externals/spirv-cross/shaders-msl-no-opt/asm/tesc/
Dbuiltin-control-point-initializer.asm.tesc9 OpEntryPoint TessellationControl %main "main" %gl_out %gl_InvocationID %verts
21 OpName %verts "verts"
27 OpDecorate %verts Location 0
52 %verts = OpVariable %_ptr_Output__arr_Verts_uint_4 Output %verts_zero
62 %34 = OpAccessChain %_ptr_Output_float %verts %30 %int_0
Dblock-control-point-initializer.asm.tesc9 OpEntryPoint TessellationControl %main "main" %gl_out %gl_InvocationID %verts
23 OpName %verts "verts"
31 OpDecorate %verts Location 0
57 %verts = OpVariable %_ptr_Output__arr_Verts_uint_4 Output %verts_zero
67 %34 = OpAccessChain %_ptr_Output_float %verts %30 %int_0
/third_party/skia/third_party/externals/spirv-cross/shaders-no-opt/asm/tesc/
Darray-of-block-output-initializer.asm.tesc9 … OpEntryPoint TessellationControl %main "main" %gl_out %gl_InvocationID %_ %patches %v2 %v3 %verts
33 OpName %verts "verts"
52 OpDecorate %verts Location 8
94 %verts = OpVariable %_ptr_Output__arr_vert2_uint_4 Output %verts_zero
/third_party/mesa3d/src/gallium/auxiliary/postprocess/
Dpp_program.c62 static const float verts[4][2][4] = { in pp_init_prog() local
82 PIPE_USAGE_DEFAULT, sizeof(verts)); in pp_init_prog()
83 pipe_buffer_write(p->pipe, p->vbuf, 0, sizeof(verts), verts); in pp_init_prog()
/third_party/skia/gm/
Dbeziereffects.cpp185 Vertex* verts = reinterpret_cast<Vertex*>(helper.vertices()); in onPrepareDraws() local
186 if (!verts) { in onPrepareDraws()
190 SkPointPriv::SetRectTriStrip(&verts[0].fPosition, rect, sizeof(Vertex)); in onPrepareDraws()
192 SkPoint3 pt3 = {verts[v].fPosition.x(), verts[v].fPosition.y(), 1.f}; in onPrepareDraws()
193 fKLM.mapHomogeneousPoints((SkPoint3* ) verts[v].fKLM, &pt3, 1); in onPrepareDraws()
395 Vertex* verts = reinterpret_cast<Vertex*>(helper.vertices()); in onPrepareDraws() local
396 if (!verts) { in onPrepareDraws()
400 SkPointPriv::SetRectTriStrip(&verts[0].fPosition, rect, sizeof(Vertex)); in onPrepareDraws()
401 fDevToUV.apply(verts, 4, sizeof(Vertex), sizeof(SkPoint)); in onPrepareDraws()
Druntimecolorfilter.cpp119 auto verts = SkVertices::MakeCopy(SkVertices::kTriangleFan_VertexMode, 4, pos, pos, kColors); variable
127 surf->getCanvas()->drawVertices(verts, SkPaint());
162 canvas->drawVertices(verts, mode, makePaint(useCF, useShader)); in __anon101948970302()
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-no-opt/asm/tesc/
Darray-of-block-output-initializer.asm.tesc30 } verts[4];
78 verts[gl_InvocationID].v4 = _9_0_init[gl_InvocationID];
79 verts[gl_InvocationID].v5 = _9_1_init[gl_InvocationID];
/third_party/skia/bench/
DVertexColorSpaceBench.cpp207 void* verts = target->makeVertexSpace(vertexStride, kVertexCount, &vertexBuffer, in onPrepareDraws() local
209 if (!verts) { in onPrepareDraws()
220 V* v = (V*)verts; in onPrepareDraws()
239 V* v = (V*)verts; in onPrepareDraws()
252 V* v = (V*)verts; in onPrepareDraws()
/third_party/glslang/Test/
Dreflection.options.vert29 VertexInfo verts[2];
56 f += ubo.verts[gl_InstanceID].position[0];

123