Home
last modified time | relevance | path

Searched refs:mesh (Results 1 – 25 of 150) sorted by relevance

123456

/third_party/skia/src/gpu/
DGrOpFlushState.cpp228 void GrOpFlushState::drawMesh(const GrSimpleMesh& mesh) { in drawMesh() argument
229 SkASSERT(mesh.fIsInitialized); in drawMesh()
230 if (!mesh.fIndexBuffer) { in drawMesh()
231 this->bindBuffers(nullptr, nullptr, mesh.fVertexBuffer); in drawMesh()
232 this->draw(mesh.fVertexCount, mesh.fBaseVertex); in drawMesh()
234 this->bindBuffers(mesh.fIndexBuffer, nullptr, mesh.fVertexBuffer, mesh.fPrimitiveRestart); in drawMesh()
235 if (0 == mesh.fPatternRepeatCount) { in drawMesh()
236 this->drawIndexed(mesh.fIndexCount, mesh.fBaseIndex, mesh.fMinIndexValue, in drawMesh()
237 mesh.fMaxIndexValue, mesh.fBaseVertex); in drawMesh()
239 this->drawIndexPattern(mesh.fIndexCount, mesh.fPatternRepeatCount, in drawMesh()
[all …]
/third_party/mingw-w64/mingw-w64-headers/direct-x/include/
Dd3dx9shape.h30 float depth, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency);
32 … float length, UINT slices, UINT stacks, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency);
33 …DXCreatePolygon(struct IDirect3DDevice9 *device, float length, UINT sides, struct ID3DXMesh **mesh,
36 UINT stacks, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency);
38 struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency);
40 …float extrusion, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency, GLYPHMETRICSFLOAT *glyph…
42 …FLOAT extrusion, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency, GLYPHMETRICSFLOAT *glyph…
44 …float innerradius, float outerradius, UINT sides, UINT rings, struct ID3DXMesh **mesh, ID3DXBuffer…
Dd3dx9mesh.h507 STDMETHOD(Tessellate)(THIS_ float tess_level, ID3DXMesh *mesh) PURE; in DECLARE_INTERFACE_()
509 DWORD min_tess_level, ID3DXMesh *mesh) PURE; in DECLARE_INTERFACE_()
652 …STDMETHOD(ExtractPerVertexAlbedo)(THIS_ ID3DXMesh *mesh, D3DDECLUSAGE usage, UINT num_channels) PU… in DECLARE_INTERFACE_()
655 UINT *vert_remap, float *vert_weights, struct ID3DXMesh **mesh) PURE; in DECLARE_INTERFACE_()
703 … const D3DVERTEXELEMENT9 *declaration, struct IDirect3DDevice9 *device, struct ID3DXMesh **mesh);
705 DWORD fvf, struct IDirect3DDevice9 *device, struct ID3DXMesh **mesh);
707 HRESULT WINAPI D3DXCreateSPMesh(ID3DXMesh *mesh, const DWORD *adjacency,
711 DWORD *material_count, struct ID3DXPMesh **mesh);
715 HRESULT WINAPI D3DXCreateSkinInfoFromBlendedMesh(ID3DXBaseMesh *mesh, DWORD bone_count,
719 struct IDirect3DDevice9 *device, struct ID3DXPatchMesh **mesh);
[all …]
/third_party/flutter/skia/tests/
DGrMeshTest.cpp59 void drawMesh(const GrMesh& mesh);
153 GrMesh mesh(GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
154 mesh.setNonIndexedNonInstanced(kBoxCountX * 6); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
155 mesh.setVertexData(vbuff, y * kBoxCountX * 6); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
156 helper->drawMesh(mesh); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
173 GrMesh mesh(GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
174 mesh.setIndexed(ibuff, repetitionCount * 6, baseRepetition * 6, baseRepetition * 4, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
176 mesh.setVertexData(vbuff, (i - baseRepetition) * 4); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
177 helper->drawMesh(mesh); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
193 GrMesh mesh(GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
[all …]
/third_party/flutter/skia/src/gpu/ops/
DGrDrawVerticesOp.cpp151 Mesh& mesh = fMeshes.push_back(); in DrawVerticesOp() local
152 mesh.fColor = color; in DrawVerticesOp()
153 mesh.fViewMatrix = viewMatrix; in DrawVerticesOp()
154 mesh.fVertices = std::move(vertices); in DrawVerticesOp()
155 mesh.fIgnoreTexCoords = false; in DrawVerticesOp()
156 mesh.fIgnoreColors = false; in DrawVerticesOp()
158 if (mesh.fVertices->hasBones() && bones) { in DrawVerticesOp()
160 mesh.fVertices = mesh.fVertices->applyBones(bones, boneCount); in DrawVerticesOp()
166 if (mesh.hasPerVertexColors()) { in DrawVerticesOp()
169 if (mesh.hasExplicitLocalCoords()) { in DrawVerticesOp()
[all …]
DGrAAHairLinePathRenderer.cpp997 GrMesh* mesh = target->allocMesh(GrPrimitiveType::kTriangles); in onPrepareDraws() local
998 mesh->setIndexedPatterned(std::move(linesIndexBuffer), kIdxsPerLineSeg, kLineSegNumVertices, in onPrepareDraws()
1000 mesh->setVertexData(std::move(vertexBuffer), firstVertex); in onPrepareDraws()
1001 target->recordDraw(std::move(lineGP), mesh); in onPrepareDraws()
1052 GrMesh* mesh = target->allocMesh(GrPrimitiveType::kTriangles); in onPrepareDraws() local
1053 mesh->setIndexedPatterned(quadsIndexBuffer, kIdxsPerQuad, kQuadNumVertices, quadCount, in onPrepareDraws()
1055 mesh->setVertexData(vertexBuffer, firstVertex); in onPrepareDraws()
1056 target->recordDraw(std::move(quadGP), mesh); in onPrepareDraws()
1061 GrMesh* mesh = target->allocMesh(GrPrimitiveType::kTriangles); in onPrepareDraws() local
1062 mesh->setIndexedPatterned(std::move(quadsIndexBuffer), kIdxsPerQuad, kQuadNumVertices, in onPrepareDraws()
[all …]
/third_party/openGLES/extensions/NV/
DNV_mesh_shader.txt60 new programmable shader types -- the task and mesh shader -- to generate
62 primitive assembly and rasterization logic. When the task and mesh
182 Figure 3.2 shows a block diagram of the alternate mesh processing pipeline
186 Work on the mesh pipeline is initiated by the application drawing a
187 set of mesh tasks via an API command. If an optional task shader is
191 present, triggers the execution of a mesh shader work group that produces
192 an output mesh with a variable-sized number of primitives assembled from
193 vertices in the output mesh. The primitives from these output meshes are
239 tessellation evaluation shaders, geometry shaders, mesh shaders, task
248 A single program object cannot mix mesh and task shader stages
[all …]
/third_party/skia/third_party/externals/opengl-registry/extensions/SGIX/
DSGIX_quad_mesh.txt25 This extension adds two primitive types, the quadrilateral mesh and the
26 line mesh.
44 applications are unlikely to have quad-mesh datasets larger than this
45 size. I wanted to avoid forcing applications to carve up their quad mesh
47 make the decision about optimal mesh width.
50 implementation that just wants to draw the quad mesh as a bunch of
59 the quad mesh into smaller pieces on the host (or ge). to do that, you
88 Given n input vertices to the quad mesh, the last n mod <breadth> vertices
93 within a quad mesh are drawn is intentionally left completely undefined.
98 Given n input vertices to the line mesh, the last n mod <breadth> vertices
[all …]
/third_party/openGLES/extensions/SGIX/
DSGIX_quad_mesh.txt25 This extension adds two primitive types, the quadrilateral mesh and the
26 line mesh.
44 applications are unlikely to have quad-mesh datasets larger than this
45 size. I wanted to avoid forcing applications to carve up their quad mesh
47 make the decision about optimal mesh width.
50 implementation that just wants to draw the quad mesh as a bunch of
59 the quad mesh into smaller pieces on the host (or ge). to do that, you
88 Given n input vertices to the quad mesh, the last n mod <breadth> vertices
93 within a quad mesh are drawn is intentionally left completely undefined.
98 Given n input vertices to the line mesh, the last n mod <breadth> vertices
[all …]
/third_party/openGLES/extensions/SUN/
DSUN_mesh_array.txt34 This extension defines a new mesh primitive.
37 For example if a quad mesh is 4 vertices wide the, vertices in the first
50 No. small meshes are not that common. A mesh is like a series of
73 constructs a mesh primitive using the elements first through first+count-1
74 of each enabled array. The mode specifies if it is a quad mesh or triangle
75 mesh. The only token values accepted by mode are QUAD_MESH_SUN and
77 of the mesh. The elements must be arranged in row major order within the
/third_party/skia/third_party/externals/opengl-registry/extensions/SUN/
DSUN_mesh_array.txt34 This extension defines a new mesh primitive.
37 For example if a quad mesh is 4 vertices wide the, vertices in the first
50 No. small meshes are not that common. A mesh is like a series of
73 constructs a mesh primitive using the elements first through first+count-1
74 of each enabled array. The mode specifies if it is a quad mesh or triangle
75 mesh. The only token values accepted by mode are QUAD_MESH_SUN and
77 of the mesh. The elements must be arranged in row major order within the
/third_party/skia/src/gpu/geometry/
DGrAATriangulator.h36 void apply(VertexList* mesh, const Comparator&, EventList* events, const GrAATriangulator*);
68 Poly* tessellate(const VertexList& mesh, const Comparator&) const override;
75 void connectPartners(VertexList* mesh, const Comparator&) const;
76 void removeNonBoundaryEdges(const VertexList& mesh) const;
78 bool collapseOverlapRegions(VertexList* mesh, const Comparator&, EventComparator comp) const;
DGrTriangulator.cpp968 void GrTriangulator::mergeVertices(Vertex* src, Vertex* dst, VertexList* mesh, in mergeVertices() argument
982 mesh->remove(src); in mergeVertices()
986 Vertex* GrTriangulator::makeSortedVertex(const SkPoint& p, uint8_t alpha, VertexList* mesh, in makeSortedVertex() argument
992 Vertex* nextV = prevV ? prevV->fNext : mesh->fHead; in makeSortedVertex()
1006 v->fID = mesh->fHead->fID - 1.0f; in makeSortedVertex()
1008 v->fID = mesh->fTail->fID + 1.0f; in makeSortedVertex()
1013 mesh->insert(v, prevV, nextV); in makeSortedVertex()
1057 Vertex** current, VertexList* mesh, in checkForIntersection() argument
1089 v = this->makeSortedVertex(p, alpha, mesh, top, c); in checkForIntersection()
1140 bool GrTriangulator::mergeCoincidentVertices(VertexList* mesh, const Comparator& c) const { in mergeCoincidentVertices() argument
[all …]
DGrTriangulator.h67 void contoursToMesh(VertexList* contours, int contourCnt, VertexList* mesh,
81 SimplifyResult simplify(VertexList* mesh, const Comparator&) const;
154 void mergeVertices(Vertex* src, Vertex* dst, VertexList* mesh, const Comparator&) const;
162 Vertex* makeSortedVertex(const SkPoint&, uint8_t alpha, VertexList* mesh, Vertex* reference,
166 VertexList* mesh, const Comparator&) const;
168 bool mergeCoincidentVertices(VertexList* mesh, const Comparator&) const;
169 void buildEdges(VertexList* contours, int contourCnt, VertexList* mesh,
DGrAATriangulator.cpp109 void GrAATriangulator::connectPartners(VertexList* mesh, const Comparator& c) const { in connectPartners() argument
110 for (Vertex* outer = mesh->fHead; outer; outer = outer->fNext) { in connectPartners()
142 void GrAATriangulator::removeNonBoundaryEdges(const VertexList& mesh) const { in removeNonBoundaryEdges()
145 for (Vertex* v = mesh.fHead; v != nullptr; v = v->fNext) { in removeNonBoundaryEdges()
245 void GrAATriangulator::Event::apply(VertexList* mesh, const Comparator& c, EventList* events, in apply() argument
257 Vertex* dest = triangulator->makeSortedVertex(fPoint, fAlpha, mesh, prev, c); in apply()
308 bool GrAATriangulator::collapseOverlapRegions(VertexList* mesh, const Comparator& c, in collapseOverlapRegions() argument
315 for (Vertex* v = mesh->fHead; v != nullptr; v = v->fNext) { in collapseOverlapRegions()
386 event->apply(mesh, c, &events, this); in collapseOverlapRegions()
619 Poly* GrAATriangulator::tessellate(const VertexList& mesh, const Comparator& c) const { in tessellate() argument
[all …]
/third_party/flutter/skia/src/gpu/ccpr/
DGrSampleMaskProcessor.cpp100 GrMesh& mesh = out->emplace_back(GrPrimitiveType::kTriangles); in appendMesh() local
101 mesh.setNonIndexedNonInstanced(instanceCount * 3); in appendMesh()
102 mesh.setVertexData(std::move(instanceBuffer), baseInstance * 3); in appendMesh()
108 GrMesh& mesh = out->emplace_back(GrPrimitiveType::kTriangleStrip); in appendMesh() local
109 mesh.setInstanced(std::move(instanceBuffer), instanceCount, baseInstance, 4); in appendMesh()
DGrCCPathProcessor.cpp136 GrMesh mesh(primitiveType); in drawPaths() local
139 mesh.setIndexedInstanced(resources.refIndexBuffer(), numIndicesPerInstance, in drawPaths()
142 mesh.setVertexData(resources.refVertexBuffer()); in drawPaths()
144 flushState->rtCommandBuffer()->draw(*this, pipeline, fixedDynamicState, nullptr, &mesh, 1, in drawPaths()
DGrStencilAtlasOp.cpp127 GrMesh mesh(GrPrimitiveType::kTriangleStrip); in onExecute() local
128 mesh.setInstanced( in onExecute()
133 StencilResolveProcessor(), resolvePipeline, &scissorRectState, nullptr, &mesh, 1, in onExecute()
/third_party/gstreamer/gstplugins_base/ext/gl/
Dgstglfilterglass.c273 gfloat mesh[] = { in gst_gl_filter_glass_draw_background_gradient() local
295 gl->VertexPointer (3, GL_FLOAT, 7 * sizeof (gfloat), mesh); in gst_gl_filter_glass_draw_background_gradient()
296 gl->ColorPointer (4, GL_FLOAT, 7 * sizeof (gfloat), &mesh[3]); in gst_gl_filter_glass_draw_background_gradient()
317 gfloat mesh[] = { in gst_gl_filter_glass_draw_video_plane() local
344 gl->VertexPointer (3, GL_FLOAT, 9 * sizeof (gfloat), mesh); in gst_gl_filter_glass_draw_video_plane()
345 gl->TexCoordPointer (2, GL_FLOAT, 9 * sizeof (gfloat), &mesh[3]); in gst_gl_filter_glass_draw_video_plane()
346 gl->ColorPointer (4, GL_FLOAT, 9 * sizeof (gfloat), &mesh[5]); in gst_gl_filter_glass_draw_video_plane()
/third_party/skia/src/gpu/ops/
DDrawVerticesOp.cpp324 Mesh& mesh = fMeshes.push_back(); in DrawVerticesOpImpl() local
325 mesh.fColor = color; in DrawVerticesOpImpl()
326 mesh.fViewMatrix = matrixProvider.localToDevice(); in DrawVerticesOpImpl()
327 mesh.fVertices = std::move(vertices); in DrawVerticesOpImpl()
328 mesh.fIgnoreColors = false; in DrawVerticesOpImpl()
337 this->setTransformedBounds(mesh.fVertices->bounds(), in DrawVerticesOpImpl()
338 mesh.fViewMatrix, in DrawVerticesOpImpl()
431 for (const auto& mesh : fMeshes) { in onPrepareDraws() local
432 SkVerticesPriv info(mesh.fVertices->priv()); in onPrepareDraws()
449 GrColor meshColor = mesh.fColor.toBytes_RGBA(); in onPrepareDraws()
[all …]
/third_party/flutter/skia/gm/
Dfwidth_squircle.cpp174 GrMesh mesh(GrPrimitiveType::kTriangleStrip); in onExecute() local
175 mesh.setNonIndexedNonInstanced(4); in onExecute()
176 mesh.setVertexData(std::move(vertexBuffer)); in onExecute()
178 nullptr, nullptr, &mesh, 1, SkRect::MakeIWH(100, 100)); in onExecute()
Dclockwise.cpp164 GrMesh mesh(GrPrimitiveType::kTriangleStrip); in onExecute() local
165 mesh.setNonIndexedNonInstanced(4); in onExecute()
166 mesh.setVertexData(std::move(vertexBuffer)); in onExecute()
168 nullptr, nullptr, &mesh, 1, SkRect::MakeIWH(100, 100)); in onExecute()
/third_party/flutter/skia/src/gpu/
DGrTessellator.cpp496 void apply(VertexList* mesh, Comparator& c, EventList* events, SkArenaAlloc& alloc);
1172 void merge_vertices(Vertex* src, Vertex* dst, VertexList* mesh, Comparator& c, in merge_vertices() argument
1186 mesh->remove(src); in merge_vertices()
1190 Vertex* create_sorted_vertex(const SkPoint& p, uint8_t alpha, VertexList* mesh, in create_sorted_vertex() argument
1196 Vertex* nextV = prevV ? prevV->fNext : mesh->fHead; in create_sorted_vertex()
1210 v->fID = mesh->fHead->fID - 1.0f; in create_sorted_vertex()
1212 v->fID = mesh->fTail->fID + 1.0f; in create_sorted_vertex()
1217 mesh->insert(v, prevV, nextV); in create_sorted_vertex()
1261 VertexList* mesh, Comparator& c, SkArenaAlloc& alloc) { in check_for_intersection() argument
1291 v = create_sorted_vertex(p, alpha, mesh, top, c, alloc); in check_for_intersection()
[all …]
/third_party/flutter/skia/samplecode/
DSampleCCPRGeometry.cpp351 SkSTArray<1, GrMesh> mesh; in onExecute() local
359 proc->appendMesh(std::move(instBuff), fView->fQuadPointInstances.count(), 0, &mesh); in onExecute()
367 proc->appendMesh(std::move(instBuff), fView->fTriPointInstances.count(), 0, &mesh); in onExecute()
371 if (!mesh.empty()) { in onExecute()
372 SkASSERT(1 == mesh.count()); in onExecute()
373 proc->draw(state, pipeline, nullptr, mesh.begin(), 1, this->bounds()); in onExecute()
/third_party/flutter/skia/bench/
DVertexColorSpaceBench.cpp223 GrMesh* mesh = target->allocMesh(GrPrimitiveType::kTriangleStrip); in onPrepareDraws() local
224 mesh->setNonIndexedNonInstanced(kVertexCount); in onPrepareDraws()
225 mesh->setVertexData(std::move(vertexBuffer), firstVertex); in onPrepareDraws()
226 target->recordDraw(gp, mesh); in onPrepareDraws()

123456