Home
last modified time | relevance | path

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

123456

/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/skqp/src/gpu/ops/
DGrDrawVerticesOp.cpp48 Mesh& mesh = fMeshes.push_back(); in GrDrawVerticesOp() local
49 mesh.fColor = color; in GrDrawVerticesOp()
50 mesh.fViewMatrix = viewMatrix; in GrDrawVerticesOp()
51 mesh.fVertices = std::move(vertices); in GrDrawVerticesOp()
52 mesh.fIgnoreTexCoords = false; in GrDrawVerticesOp()
53 mesh.fIgnoreColors = false; in GrDrawVerticesOp()
54 mesh.fIgnoreBones = false; in GrDrawVerticesOp()
56 if (mesh.fVertices->hasBones() && bones) { in GrDrawVerticesOp()
58 mesh.fVertices = mesh.fVertices->applyBones(bones, boneCount); in GrDrawVerticesOp()
70 if (mesh.hasPerVertexColors()) { in GrDrawVerticesOp()
[all …]
DGrAAHairLinePathRenderer.cpp993 GrMesh* mesh = target->allocMesh(GrPrimitiveType::kTriangles); in onPrepareDraws() local
994 mesh->setIndexedPatterned(std::move(linesIndexBuffer), kIdxsPerLineSeg, kLineSegNumVertices, in onPrepareDraws()
996 mesh->setVertexData(std::move(vertexBuffer), firstVertex); in onPrepareDraws()
997 target->draw(std::move(lineGP), pipe.fPipeline, pipe.fFixedDynamicState, mesh); in onPrepareDraws()
1048 GrMesh* mesh = target->allocMesh(GrPrimitiveType::kTriangles); in onPrepareDraws() local
1049 mesh->setIndexedPatterned(quadsIndexBuffer, kIdxsPerQuad, kQuadNumVertices, quadCount, in onPrepareDraws()
1051 mesh->setVertexData(vertexBuffer, firstVertex); in onPrepareDraws()
1052 target->draw(std::move(quadGP), pipe.fPipeline, pipe.fFixedDynamicState, mesh); in onPrepareDraws()
1057 GrMesh* mesh = target->allocMesh(GrPrimitiveType::kTriangles); in onPrepareDraws() local
1058 mesh->setIndexedPatterned(std::move(quadsIndexBuffer), kIdxsPerQuad, kQuadNumVertices, in onPrepareDraws()
[all …]
/external/skqp/tests/
DGrMeshTest.cpp59 void drawMesh(const GrMesh& mesh);
159 GrMesh mesh(GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
160 mesh.setNonIndexedNonInstanced(kBoxCountX * 6); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
161 mesh.setVertexData(vbuff, y * kBoxCountX * 6); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
162 helper->drawMesh(mesh); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
179 GrMesh mesh(GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
180 mesh.setIndexed(ibuff, repetitionCount * 6, baseRepetition * 6, baseRepetition * 4, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
182 mesh.setVertexData(vbuff, (i - baseRepetition) * 4); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
183 helper->drawMesh(mesh); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
199 GrMesh mesh(GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
[all …]
/external/skia/tests/
DGrMeshTest.cpp59 void drawMesh(const GrMesh& mesh);
157 GrMesh mesh(GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
158 mesh.setNonIndexedNonInstanced(kBoxCountX * 6); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
159 mesh.setVertexData(vbuff, y * kBoxCountX * 6); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
160 helper->drawMesh(mesh); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
177 GrMesh mesh(GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
178 mesh.setIndexed(ibuff, repetitionCount * 6, baseRepetition * 6, baseRepetition * 4, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
180 mesh.setVertexData(vbuff, (i - baseRepetition) * 4); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
181 helper->drawMesh(mesh); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
197 GrMesh mesh(GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
[all …]
DGrPipelineDynamicStateTest.cpp146 GrMesh& mesh = meshes.emplace_back(GrPrimitiveType::kTriangleStrip); in onExecute() local
147 mesh.setNonIndexedNonInstanced(4); in onExecute()
148 mesh.setVertexData(fVertexBuffer, 4 * i); in onExecute()
/external/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.cpp993 GrMesh* mesh = target->allocMesh(GrPrimitiveType::kTriangles); in onPrepareDraws() local
994 mesh->setIndexedPatterned(std::move(linesIndexBuffer), kIdxsPerLineSeg, kLineSegNumVertices, in onPrepareDraws()
996 mesh->setVertexData(std::move(vertexBuffer), firstVertex); in onPrepareDraws()
997 target->recordDraw(std::move(lineGP), mesh); in onPrepareDraws()
1048 GrMesh* mesh = target->allocMesh(GrPrimitiveType::kTriangles); in onPrepareDraws() local
1049 mesh->setIndexedPatterned(quadsIndexBuffer, kIdxsPerQuad, kQuadNumVertices, quadCount, in onPrepareDraws()
1051 mesh->setVertexData(vertexBuffer, firstVertex); in onPrepareDraws()
1052 target->recordDraw(std::move(quadGP), mesh); in onPrepareDraws()
1057 GrMesh* mesh = target->allocMesh(GrPrimitiveType::kTriangles); in onPrepareDraws() local
1058 mesh->setIndexedPatterned(std::move(quadsIndexBuffer), kIdxsPerQuad, kQuadNumVertices, in onPrepareDraws()
[all …]
/external/skia/gm/
Dfwidth_squircle.cpp147 GrMesh mesh(GrPrimitiveType::kTriangleStrip); in onExecute() local
148 mesh.setNonIndexedNonInstanced(4); in onExecute()
149 mesh.setVertexData(std::move(vertexBuffer)); in onExecute()
151 nullptr, nullptr, &mesh, 1, SkRect::MakeIWH(100, 100)); in onExecute()
Dclockwise.cpp129 GrMesh mesh(GrPrimitiveType::kTriangleStrip); in onExecute() local
130 mesh.setNonIndexedNonInstanced(4); in onExecute()
131 mesh.setVertexData(std::move(vertexBuffer)); in onExecute()
133 nullptr, nullptr, &mesh, 1, SkRect::MakeIWH(100, 100)); in onExecute()
/external/skqp/gm/
Dfwidth_squircle.cpp150 GrMesh mesh(GrPrimitiveType::kTriangleStrip); in onExecute() local
151 mesh.setNonIndexedNonInstanced(4); in onExecute()
152 mesh.setVertexData(std::move(vertexBuffer)); in onExecute()
154 nullptr, nullptr, &mesh, 1, SkRect::MakeIWH(100, 100)); in onExecute()
Dclockwise.cpp125 GrMesh mesh(GrPrimitiveType::kTriangleStrip); in onExecute() local
126 mesh.setNonIndexedNonInstanced(4); in onExecute()
127 mesh.setVertexData(std::move(vertexBuffer)); in onExecute()
129 nullptr, nullptr, &mesh, 1, SkRect::MakeIWH(100, 100)); in onExecute()
/external/skia/src/gpu/
DGrTessellator.cpp479 void apply(VertexList* mesh, Comparator& c, SkArenaAlloc& alloc);
1152 void merge_vertices(Vertex* src, Vertex* dst, VertexList* mesh, Comparator& c, in merge_vertices() argument
1166 mesh->remove(src); in merge_vertices()
1169 Vertex* create_sorted_vertex(const SkPoint& p, uint8_t alpha, VertexList* mesh, in create_sorted_vertex() argument
1175 Vertex* nextV = prevV ? prevV->fNext : mesh->fHead; in create_sorted_vertex()
1189 v->fID = mesh->fHead->fID - 1.0f; in create_sorted_vertex()
1191 v->fID = mesh->fTail->fID + 1.0f; in create_sorted_vertex()
1196 mesh->insert(v, prevV, nextV); in create_sorted_vertex()
1221 VertexList* mesh, Comparator& c, SkArenaAlloc& alloc) { in check_for_intersection() argument
1251 v = create_sorted_vertex(p, alpha, mesh, top, c, alloc); in check_for_intersection()
[all …]
/external/skqp/src/gpu/
DGrTessellator.cpp479 void apply(VertexList* mesh, Comparator& c, SkArenaAlloc& alloc);
1152 void merge_vertices(Vertex* src, Vertex* dst, VertexList* mesh, Comparator& c, in merge_vertices() argument
1166 mesh->remove(src); in merge_vertices()
1169 Vertex* create_sorted_vertex(const SkPoint& p, uint8_t alpha, VertexList* mesh, in create_sorted_vertex() argument
1175 Vertex* nextV = prevV ? prevV->fNext : mesh->fHead; in create_sorted_vertex()
1189 v->fID = mesh->fHead->fID - 1.0f; in create_sorted_vertex()
1191 v->fID = mesh->fTail->fID + 1.0f; in create_sorted_vertex()
1196 mesh->insert(v, prevV, nextV); in create_sorted_vertex()
1221 VertexList* mesh, Comparator& c, SkArenaAlloc& alloc) { in check_for_intersection() argument
1251 v = create_sorted_vertex(p, alpha, mesh, top, c, alloc); in check_for_intersection()
[all …]
/external/skia/src/gpu/ccpr/
DGrCCPathProcessor.cpp132 GrMesh mesh(primitiveType); in drawPaths() local
135 mesh.setIndexedInstanced(resources.refIndexBuffer(), numIndicesPerInstance, in drawPaths()
138 mesh.setVertexData(resources.refVertexBuffer()); in drawPaths()
140 flushState->rtCommandBuffer()->draw(*this, pipeline, fixedDynamicState, nullptr, &mesh, 1, in drawPaths()
/external/skqp/src/gpu/ccpr/
DGrCCPathProcessor.cpp130 GrMesh mesh(primitiveType); in drawPaths() local
133 mesh.setIndexedInstanced(resources.refIndexBuffer(), numIndicesPerInstance, in drawPaths()
136 mesh.setVertexData(resources.refVertexBuffer()); in drawPaths()
138 flushState->rtCommandBuffer()->draw(*this, pipeline, fixedDynamicState, nullptr, &mesh, 1, in drawPaths()
/external/tensorflow/tensorflow/core/protobuf/tpu/
Dtopology.proto7 // Describes the geometry of a TPU mesh.
24 // in the TPU mesh topology. Each entry [task, device, axis] gives the
/external/skia/samplecode/
DSampleCCPRGeometry.cpp345 SkSTArray<1, GrMesh> mesh; in onExecute() local
353 proc.appendMesh(std::move(instBuff), fView->fQuadPointInstances.count(), 0, &mesh); in onExecute()
361 proc.appendMesh(std::move(instBuff), fView->fTriPointInstances.count(), 0, &mesh); in onExecute()
365 if (!mesh.empty()) { in onExecute()
366 SkASSERT(1 == mesh.count()); in onExecute()
367 proc.draw(state, pipeline, nullptr, mesh.begin(), 1, this->bounds()); in onExecute()
/external/skqp/samplecode/
DSampleCCPRGeometry.cpp342 SkSTArray<1, GrMesh> mesh; in onExecute() local
351 proc.appendMesh(std::move(instBuff), fView->fQuadPointInstances.count(), 0, &mesh); in onExecute()
359 proc.appendMesh(std::move(instBuff), fView->fTriPointInstances.count(), 0, &mesh); in onExecute()
363 if (!mesh.empty()) { in onExecute()
364 SkASSERT(1 == mesh.count()); in onExecute()
365 proc.draw(state, pipeline, nullptr, mesh.begin(), 1, this->bounds()); in onExecute()
/external/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()
/external/skqp/bench/
DVertexColorSpaceBench.cpp222 GrMesh* mesh = target->allocMesh(GrPrimitiveType::kTriangleStrip); in onPrepareDraws() local
223 mesh->setNonIndexedNonInstanced(kVertexCount); in onPrepareDraws()
224 mesh->setVertexData(std::move(vertexBuffer), firstVertex); in onPrepareDraws()
227 target->draw(gp, pipe.fPipeline, pipe.fFixedDynamicState, mesh); in onPrepareDraws()
/external/skqp/src/gpu/gl/
DGrGLGpuCommandBuffer.h85 const GrMesh mesh[], in onDraw() argument
89 dynamicStateArrays, mesh, meshCount); in onDraw()
/external/skia/src/gpu/gl/
DGrGLGpuCommandBuffer.h85 const GrMesh mesh[], in onDraw() argument
89 dynamicStateArrays, mesh, meshCount); in onDraw()

123456