Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTFixedPoint.cpp33 HeaderStruct_Fixed_Mesh *CreateFixedObjectMesh(HeaderStruct_Mesh *mesh) in CreateFixedObjectMesh() argument
37 new_mesh->fCenter[0] = PVRTF2X(mesh->fCenter[0]); in CreateFixedObjectMesh()
38 new_mesh->fCenter[1] = PVRTF2X(mesh->fCenter[1]); in CreateFixedObjectMesh()
39 new_mesh->fCenter[2] = PVRTF2X(mesh->fCenter[2]); in CreateFixedObjectMesh()
42 new_mesh->nNumVertex = mesh->nNumVertex; in CreateFixedObjectMesh()
43 new_mesh->nNumFaces = mesh->nNumFaces; in CreateFixedObjectMesh()
44 new_mesh->nNumStrips = mesh->nNumStrips; in CreateFixedObjectMesh()
45 new_mesh->nMaterial = mesh->nMaterial; in CreateFixedObjectMesh()
47 if(mesh->nNumVertex) in CreateFixedObjectMesh()
49 new_mesh->pVertex = new VERTTYPE[mesh->nNumVertex*3]; in CreateFixedObjectMesh()
[all …]
DPVRTModelPOD.cpp804 static bool WriteInterleaved(FILE * const pFile, SPODMesh &mesh) in WriteInterleaved() argument
806 if(!mesh.pInterleaved) in WriteInterleaved()
811 CPODData **pCPODData = new CPODData*[7 + mesh.nNumUVW]; in WriteInterleaved()
813 if(mesh.sVertex.n) pCPODData[ui32CPODDataSize++] = &mesh.sVertex; in WriteInterleaved()
814 if(mesh.sNormals.n) pCPODData[ui32CPODDataSize++] = &mesh.sNormals; in WriteInterleaved()
815 if(mesh.sTangents.n) pCPODData[ui32CPODDataSize++] = &mesh.sTangents; in WriteInterleaved()
816 if(mesh.sBinormals.n) pCPODData[ui32CPODDataSize++] = &mesh.sBinormals; in WriteInterleaved()
817 if(mesh.sVtxColours.n) pCPODData[ui32CPODDataSize++] = &mesh.sVtxColours; in WriteInterleaved()
818 if(mesh.sBoneIdx.n) pCPODData[ui32CPODDataSize++] = &mesh.sBoneIdx; in WriteInterleaved()
819 if(mesh.sBoneWeight.n) pCPODData[ui32CPODDataSize++] = &mesh.sBoneWeight; in WriteInterleaved()
[all …]
DPVRTModelPOD.h727 EPVRTError PVRTModelPODScaleAndConvertVtxData(SPODMesh &mesh, const EPVRTDataType eNewType);
759 void PVRTModelPODReorderFaces(SPODMesh &mesh, const int i32El1, const int i32El2, const int i32El3);
767 void PVRTModelPODToggleInterleaved(SPODMesh &mesh, unsigned int ui32AlignToNBytes = 1);
775 void PVRTModelPODDeIndex(SPODMesh &mesh);
782 void PVRTModelPODToggleStrips(SPODMesh &mesh);
790 unsigned int PVRTModelPODCountIndices(const SPODMesh &mesh);
/external/skia/src/gpu/
DGrMesh.h134 const GrNonInstancedMesh* init(const GrMesh& mesh) { in init() argument
135 fMesh = &mesh; in init()
136 if (mesh.fInstanceCount <= mesh.fMaxInstancesPerDraw) { in init()
139 return &mesh; in init()
141 SkASSERT(mesh.isInstanced()); in init()
142 fInstanceBatch.fIndexBuffer.reset(mesh.fIndexBuffer.get()); in init()
143 fInstanceBatch.fVertexBuffer.reset(mesh.fVertexBuffer.get()); in init()
144 fInstanceBatch.fIndexCount = mesh.fMaxInstancesPerDraw * in init()
145 mesh.fIndicesPerInstance; in init()
146 fInstanceBatch.fVertexCount = mesh.fMaxInstancesPerDraw * in init()
[all …]
DGrGpuCommandBuffer.cpp39 const GrMesh* mesh, in draw() argument
47 this->onDraw(pipeline, primProc, mesh, meshCount, bounds); in draw()
DGrTessellator.cpp1040 void merge_vertices(Vertex* src, Vertex* dst, VertexList* mesh, Comparator& c, in merge_vertices() argument
1058 mesh->remove(src); in merge_vertices()
1151 void merge_coincident_vertices(VertexList* mesh, Comparator& c, SkArenaAlloc& alloc) { in merge_coincident_vertices() argument
1152 if (!mesh->fHead) { in merge_coincident_vertices()
1155 for (Vertex* v = mesh->fHead->fNext; v != nullptr; v = v->fNext) { in merge_coincident_vertices()
1160 merge_vertices(v->fPrev, v, mesh, c, alloc); in merge_coincident_vertices()
1167 void build_edges(VertexList* contours, int contourCnt, VertexList* mesh, Comparator& c, in build_edges() argument
1174 mesh->append(v); in build_edges()
1459 void remove_non_boundary_edges(const VertexList& mesh, SkPath::FillType fillType, in remove_non_boundary_edges() argument
1463 for (Vertex* v = mesh.fHead; v != nullptr; v = v->fNext) { in remove_non_boundary_edges()
[all …]
/external/skia/src/gpu/ops/
DGrDrawVerticesOp.cpp54 Mesh& mesh = fMeshes.push_back(); in GrDrawVerticesOp() local
55 mesh.fColor = color; in GrDrawVerticesOp()
56 mesh.fViewMatrix = viewMatrix; in GrDrawVerticesOp()
57 mesh.fVertices = std::move(vertices); in GrDrawVerticesOp()
58 mesh.fFlags = flags; in GrDrawVerticesOp()
61 if (mesh.hasPerVertexColors()) { in GrDrawVerticesOp()
64 if (mesh.hasExplicitLocalCoords()) { in GrDrawVerticesOp()
74 this->setTransformedBounds(mesh.fVertices->bounds(), viewMatrix, HasAABloat::kNo, zeroArea); in GrDrawVerticesOp()
175 const Mesh& mesh = fMeshes[i]; in onPrepareDraws() local
177 int indexCount = mesh.fVertices->indexCount(); in onPrepareDraws()
[all …]
DGrAAHairLinePathRenderer.cpp863 GrMesh mesh; in onPrepareDraws() local
864 mesh.initInstanced(kTriangles_GrPrimitiveType, vertexBuffer, linesIndexBuffer.get(), in onPrepareDraws()
867 target->draw(lineGP.get(), mesh); in onPrepareDraws()
920 GrMesh mesh; in onPrepareDraws() local
921 mesh.initInstanced(kTriangles_GrPrimitiveType, vertexBuffer, quadsIndexBuffer.get(), in onPrepareDraws()
924 target->draw(quadGP.get(), mesh); in onPrepareDraws()
929 GrMesh mesh; in onPrepareDraws() local
930 mesh.initInstanced(kTriangles_GrPrimitiveType, vertexBuffer, quadsIndexBuffer.get(), in onPrepareDraws()
933 target->draw(conicGP.get(), mesh); in onPrepareDraws()
DGrNonAAStrokeRectOp.cpp159 GrMesh mesh; in onPrepareDraws() local
160 mesh.init(primType, vertexBuffer, firstVertex, vertexCount); in onPrepareDraws()
161 target->draw(gp.get(), mesh); in onPrepareDraws()
DGrMeshDrawOp.cpp92 void GrMeshDrawOp::Target::draw(const GrGeometryProcessor* gp, const GrMesh& mesh) { in draw() argument
94 op->fMeshes.push_back(mesh); in draw()
DGrAtlasTextOp.cpp149 GrMesh mesh; in flush() local
152 mesh.initInstanced(kTriangles_GrPrimitiveType, flushInfo->fVertexBuffer.get(), in flush()
155 target->draw(flushInfo->fGeometryProcessor.get(), mesh); in flush()
DGrDefaultPathRenderer.cpp252 GrMesh mesh; in onPrepareDraws() local
254 mesh.initIndexed(primitiveType, vertexBuffer, indexBuffer, firstVertex, firstIndex, in onPrepareDraws()
257 mesh.init(primitiveType, vertexBuffer, firstVertex, vertexOffset); in onPrepareDraws()
259 target->draw(gp.get(), mesh); in onPrepareDraws()
DGrAALinearizingConvexPathRenderer.cpp193 GrMesh mesh; in draw() local
211 mesh.initIndexed(kTriangles_GrPrimitiveType, vertexBuffer, indexBuffer, firstVertex, in draw()
213 target->draw(gp, mesh); in draw()
DGrTessellatingPathRenderer.cpp315 GrMesh mesh; in drawVertices() local
316 mesh.init(primitiveType, vb, firstVertex, count); in drawVertices()
317 target->draw(gp, mesh); in drawVertices()
DGrAAConvexPathRenderer.cpp815 GrMesh mesh; in prepareLinesOnlyDraws() local
816 mesh.initIndexed(kTriangles_GrPrimitiveType, in prepareLinesOnlyDraws()
820 target->draw(gp.get(), mesh); in prepareLinesOnlyDraws()
902 GrMesh mesh; in onPrepareDraws() local
906 mesh.initIndexed(kTriangles_GrPrimitiveType, vertexBuffer, indexBuffer, in onPrepareDraws()
908 target->draw(quadProcessor.get(), mesh); in onPrepareDraws()
DGrShadowRRectOp.cpp353 GrMesh mesh; in onPrepareDraws() local
354 mesh.initIndexed(kTriangles_GrPrimitiveType, vertexBuffer, indexBuffer, firstVertex, in onPrepareDraws()
356 target->draw(gp.get(), mesh); in onPrepareDraws()
768 GrMesh mesh; in onPrepareDraws() local
769 mesh.initIndexed(kTriangles_GrPrimitiveType, vertexBuffer, indexBuffer, firstVertex, in onPrepareDraws()
771 target->draw(gp.get(), mesh); in onPrepareDraws()
/external/vulkan-validation-layers/demos/smoke/
DMeshes.cpp165 BuildPyramid(Mesh &mesh) in BuildPyramid() argument
185 mesh.build(vertices, faces); in BuildPyramid()
191 BuildIcosphere(Mesh &mesh) : mesh_(mesh), radius_(1.0f) in BuildIcosphere() argument
328 BuildTeapot(Mesh &mesh) in BuildTeapot() argument
340 mesh.positions_.emplace_back(Mesh::Position{ in BuildTeapot()
346 mesh.normals_.emplace_back(Mesh::Normal{ in BuildTeapot()
354 mesh.faces_.emplace_back(Mesh::Face{ in BuildTeapot()
435 for (const auto &mesh : meshes) { in Meshes() local
437 draw.indexCount = mesh.index_count(); in Meshes()
445 first_index += mesh.index_count(); in Meshes()
[all …]
DSimulation.cpp285 MeshPicker mesh; in Simulation() local
290 Meshes::Type type = mesh.pick(); in Simulation()
291 float scale = mesh.scale(type); in Simulation()
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11gears/
Dd3d11gears.cpp47 struct mesh* mesh; member
86 static mesh* build_gear(ID3D11Device* dev, int triangle_budget, float inner_radius, float outer_rad… in build_gear()
230 return new mesh(dev, D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST, in build_gear()
297 gears[i].mesh->bind_and_draw(ctx); in draw_one()
516 gears[0].mesh = build_gear(dev, triangles / 2, 1.0f, 4.0f, 1.0f, 20, 0.7f); in init()
517 gears[1].mesh = build_gear(dev, triangles / 4, 0.5f, 2.0f, 2.0f, 10, 0.7f); in init()
518 gears[2].mesh = build_gear(dev, triangles / 4, 1.3f, 2.0f, 0.5f, 10, 0.7f); in init()
/external/skia/src/gpu/vk/
DGrVkGpuCommandBuffer.cpp428 const GrNonInstancedMesh& mesh) { in bindGeometry() argument
434 SkASSERT(!mesh.vertexBuffer()->isCPUBacked()); in bindGeometry()
436 vbuf = (GrVkVertexBuffer*)mesh.vertexBuffer(); in bindGeometry()
442 if (mesh.isIndexed()) { in bindGeometry()
443 SkASSERT(!mesh.indexBuffer()->isCPUBacked()); in bindGeometry()
444 GrVkIndexBuffer* ibuf = (GrVkIndexBuffer*)mesh.indexBuffer(); in bindGeometry()
548 const GrMesh& mesh = meshes[i]; in onDraw() local
550 const GrNonInstancedMesh* nonIdxMesh = iter.init(mesh); in onDraw()
/external/skia/src/gpu/gl/
DGrGLGpuCommandBuffer.h52 const GrMesh* mesh, in onDraw() argument
60 fGpu->draw(pipeline, primProc, mesh, meshCount); in onDraw()
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11app/
Dd3d11u.h80 struct mesh struct
90 mesh(ID3D11Device* dev, D3D11_PRIMITIVE_TOPOLOGY topology, argument
126 ~mesh() in ~mesh() argument
157 mesh* create_tex_quad(ID3D11Device* dev, const BYTE* vs, unsigned vs_size) in create_tex_quad() argument
172 return new mesh(dev, D3D11_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP, in create_tex_quad()
181 mesh* quad;
/external/skia/tests/
DBlitRowTest.cpp224 Mesh mesh(srcBM, &paint); in test_diagonal() local
236 mesh.draw(&canvas1, &paint); in test_diagonal()
/external/iw/
Dmesh.c14 SECTION(mesh);
605 COMMAND(mesh, join, "<mesh ID> [[freq <freq in MHz> <HT20|HT40+|HT40-|NOHT>]"
623 COMMAND(mesh, leave, NULL, NL80211_CMD_LEAVE_MESH, 0, CIB_NETDEV, leave_mesh,
DAndroid.mk8 mesh.c mpath.c mpp.c scan.c reg.c \

12