Home
last modified time | relevance | path

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

1234567

/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 …]
/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/src/gpu/ops/
DGrDrawVerticesOp.cpp152 Mesh& mesh = fMeshes.push_back(); in DrawVerticesOp() local
153 mesh.fColor = color; in DrawVerticesOp()
154 mesh.fViewMatrix = viewMatrix; in DrawVerticesOp()
155 mesh.fVertices = std::move(vertices); in DrawVerticesOp()
156 mesh.fIgnoreTexCoords = false; in DrawVerticesOp()
157 mesh.fIgnoreColors = false; in DrawVerticesOp()
159 if (mesh.fVertices->hasBones() && bones) { in DrawVerticesOp()
161 mesh.fVertices = mesh.fVertices->applyBones(bones, boneCount); in DrawVerticesOp()
167 if (mesh.hasPerVertexColors()) { in DrawVerticesOp()
170 if (mesh.hasExplicitLocalCoords()) { in DrawVerticesOp()
[all …]
/external/skia/tests/
DGrMeshTest.cpp65 void drawMesh(const GrMesh& mesh, GrPrimitiveType);
163 GrMesh mesh; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
164 mesh.setNonIndexedNonInstanced(kBoxCountX * 6); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
165 mesh.setVertexData(helper->fVertBuffer, y * kBoxCountX * 6); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
166 helper->drawMesh(mesh, GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
186 GrMesh mesh; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
187 mesh.setIndexed(helper->fIndexBuffer, repetitionCount * 6, baseRepetition * 6, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
190 mesh.setVertexData(helper->fVertBuffer, (i - baseRepetition) * 4); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
191 helper->drawMesh(mesh, GrPrimitiveType::kTriangles); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
209 GrMesh mesh; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
[all …]
/external/libvpx/libvpx/tools/3D-Reconstruction/sketch_3D_reconstruction/
DScene.pde3 ArrayList<Triangle> mesh;
13 mesh = new ArrayList<Triangle>();
24 mesh.add(new Triangle(p1, p2, p3, c1, c2, c3));
25 mesh.add(new Triangle(p3, p4, p1, c3, c4, c1));
27 bvh = new BVH(mesh);
41 // build mesh
44 for (int i = 0; i < mesh.size(); i++) {
45 Triangle t = mesh.get(i);
DBVH.pde100 ArrayList<Triangle> mesh;
101 BVH(ArrayList<Triangle> mesh) {
102 this.mesh = mesh;
106 int mesh_size = this.mesh.size();
115 Triangle t = this.mesh.get(i);
128 // Build left node and right node by partitioning the mesh based on triangle
133 Triangle t = this.mesh.get(i);
149 if (mesh.size() == 0) {
152 if (mesh.size() == 1) {
153 Triangle t = mesh.get(0);
/external/skia/src/gpu/dawn/
DGrDawnOpsRenderPass.h46 const GrMesh mesh[],
49 void sendArrayMeshToGpu(GrPrimitiveType type, const GrMesh& mesh, int vertexCount, in sendArrayMeshToGpu() argument
51 SkASSERT(!mesh.instanceBuffer()); in sendArrayMeshToGpu()
52 this->sendInstancedMeshToGpu(type, mesh, vertexCount, baseVertex, 1, 0); in sendArrayMeshToGpu()
54 void sendIndexedMeshToGpu(GrPrimitiveType type, const GrMesh& mesh, int indexCount, in sendIndexedMeshToGpu() argument
57 SkASSERT(!mesh.instanceBuffer()); in sendIndexedMeshToGpu()
58 this->sendIndexedInstancedMeshToGpu(type, mesh, indexCount, baseIndex, baseVertex, 1, 0); in sendIndexedMeshToGpu()
DGrDawnOpsRenderPass.cpp180 void GrDawnOpsRenderPass::sendInstancedMeshToGpu(GrPrimitiveType, const GrMesh& mesh, in sendInstancedMeshToGpu() argument
183 wgpu::Buffer vb = static_cast<const GrDawnBuffer*>(mesh.vertexBuffer())->get(); in sendInstancedMeshToGpu()
189 void GrDawnOpsRenderPass::sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrMesh& mesh, in sendIndexedInstancedMeshToGpu() argument
193 wgpu::Buffer vb = static_cast<const GrDawnBuffer*>(mesh.vertexBuffer())->get(); in sendIndexedInstancedMeshToGpu()
194 wgpu::Buffer ib = static_cast<const GrDawnBuffer*>(mesh.indexBuffer())->get(); in sendIndexedInstancedMeshToGpu()
/external/skia/src/gpu/tessellate/
DGrPathShader.h38 GrMesh mesh; in issueDraw() local
39 mesh.setNonIndexedNonInstanced(vertexCount); in issueDraw()
40 mesh.setVertexData(std::move(vertexBuffer), baseVertex); in issueDraw()
41 this->issueDraw(state, pipeline, fixedDynamicState, mesh, bounds); in issueDraw()
45 const GrPipeline::FixedDynamicState* fixedDynamicState, const GrMesh& mesh, in issueDraw() argument
52 state->opsRenderPass()->drawMeshes(programInfo, &mesh, 1); in issueDraw()
DGrTessellatePathOp.cpp151 GrMesh mesh; in drawStencilPass() local
152 mesh.setNonIndexedNonInstanced(fCubicInstanceCount * 4); in drawStencilPass()
153 mesh.setVertexData(fCubicInstanceBuffer, fBaseCubicInstance * 4); in drawStencilPass()
155 state, &pipeline, fixedDynamicState, mesh, this->bounds()); in drawStencilPass()
247 GrMesh mesh; in drawCoverPass() local
248 mesh.setInstanced(fCubicInstanceBuffer, fCubicInstanceCount, fBaseCubicInstance, 4); in drawCoverPass()
251 state, &pipeline, fixedDynamicState, mesh, this->bounds()); in drawCoverPass()
255 GrMesh mesh; in drawCoverPass() local
256 mesh.setNonIndexedNonInstanced(4); in drawCoverPass()
259 state, &pipeline, fixedDynamicState, mesh, this->bounds()); in drawCoverPass()
/external/skia/src/gpu/mtl/
DGrMtlOpsRenderPass.mm104 const GrMesh& mesh = meshes[i];
118 mesh.sendToGpu(programInfo.primitiveType(), this);
283 void GrMtlOpsRenderPass::sendArrayMeshToGpu(GrPrimitiveType primitiveType, const GrMesh& mesh,
285 this->bindGeometry(mesh.vertexBuffer(), 0, nullptr);
292 void GrMtlOpsRenderPass::sendIndexedMeshToGpu(GrPrimitiveType primitiveType, const GrMesh& mesh,
296 this->bindGeometry(mesh.vertexBuffer(), fCurrentVertexStride*baseVertex, nullptr);
299 if (mesh.indexBuffer()) {
300 SkASSERT(!mesh.indexBuffer()->isCpuBuffer());
301 SkASSERT(!static_cast<const GrGpuBuffer*>(mesh.indexBuffer())->isMapped());
303 mtlIndexBuffer = static_cast<const GrMtlBuffer*>(mesh.indexBuffer())->mtlBuffer();
[all …]
/external/skia/src/gpu/vk/
DGrVkOpsRenderPass.h77 void sendArrayMeshToGpu(GrPrimitiveType primitiveType, const GrMesh& mesh, int vertexCount, in sendArrayMeshToGpu() argument
79 SkASSERT(!mesh.instanceBuffer()); in sendArrayMeshToGpu()
80 this->sendInstancedMeshToGpu(primitiveType, mesh, vertexCount, baseVertex, 1, 0); in sendArrayMeshToGpu()
82 void sendIndexedMeshToGpu(GrPrimitiveType primitiveType, const GrMesh& mesh, int indexCount, in sendIndexedMeshToGpu() argument
85 SkASSERT(!mesh.instanceBuffer()); in sendIndexedMeshToGpu()
86 this->sendIndexedInstancedMeshToGpu(primitiveType, mesh, indexCount, baseIndex, baseVertex, in sendIndexedMeshToGpu()
DGrVkOpsRenderPass.cpp602 const GrMesh& mesh = meshes[i]; in onDrawMeshes() local
625 mesh.sendToGpu(programInfo.primitiveType(), this); in onDrawMeshes()
631 void GrVkOpsRenderPass::sendInstancedMeshToGpu(GrPrimitiveType, const GrMesh& mesh, int vertexCount, in sendInstancedMeshToGpu() argument
635 SkASSERT(!mesh.vertexBuffer() || !mesh.vertexBuffer()->isCpuBuffer()); in sendInstancedMeshToGpu()
636 SkASSERT(!mesh.instanceBuffer() || !mesh.instanceBuffer()->isCpuBuffer()); in sendInstancedMeshToGpu()
637 auto gpuVertexBuffer = static_cast<const GrGpuBuffer*>(mesh.vertexBuffer()); in sendInstancedMeshToGpu()
638 auto gpuInstanceBuffer = static_cast<const GrGpuBuffer*>(mesh.instanceBuffer()); in sendInstancedMeshToGpu()
644 void GrVkOpsRenderPass::sendIndexedInstancedMeshToGpu(GrPrimitiveType, const GrMesh& mesh, in sendIndexedInstancedMeshToGpu() argument
647 SkASSERT(mesh.primitiveRestart() == GrPrimitiveRestart::kNo); in sendIndexedInstancedMeshToGpu()
648 SkASSERT(!mesh.vertexBuffer() || !mesh.vertexBuffer()->isCpuBuffer()); in sendIndexedInstancedMeshToGpu()
[all …]
/external/skia/src/gpu/ccpr/
DGrSampleMaskProcessor.cpp100 GrMesh& mesh = out->push_back(); in appendMesh() local
101 mesh.setNonIndexedNonInstanced(instanceCount * 3); in appendMesh()
102 mesh.setVertexData(std::move(instanceBuffer), baseInstance * 3); in appendMesh()
108 GrMesh& mesh = out->push_back(); in appendMesh() local
109 mesh.setInstanced(std::move(instanceBuffer), instanceCount, baseInstance, 4); in appendMesh()
DGrCCPathProcessor.cpp138 GrMesh mesh; in drawPaths() local
139 mesh.setIndexedInstanced(resources.refIndexBuffer(), numIndicesPerInstance, in drawPaths()
142 mesh.setVertexData(resources.refVertexBuffer()); in drawPaths()
154 flushState->opsRenderPass()->drawMeshes(programInfo, &mesh, 1); in drawPaths()
/external/deqp-deps/glslang/Test/baseResults/
Dspv.meshShaderPerView_Errors.mesh.out1 spv.meshShaderPerView_Errors.mesh
3 ERROR: 0:20: '[]' : mesh view output array size must be gl_MaxMeshViewCountNV or implicitly sized
6 ERROR: 0:26: '[]' : mesh view output array size must be gl_MaxMeshViewCountNV or implicitly sized
/external/angle/third_party/glslang/src/Test/baseResults/
Dspv.meshShaderPerView_Errors.mesh.out1 spv.meshShaderPerView_Errors.mesh
3 ERROR: 0:20: '[]' : mesh view output array size must be gl_MaxMeshViewCountNV or implicitly sized
6 ERROR: 0:26: '[]' : mesh view output array size must be gl_MaxMeshViewCountNV or implicitly sized
/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/gm/
Dfwidth_squircle.cpp220 GrMesh mesh; in onExecute() local
221 mesh.setNonIndexedNonInstanced(4); in onExecute()
222 mesh.setVertexData(std::move(fVertexBuffer)); in onExecute()
225 flushState->opsRenderPass()->drawMeshes(*fProgramInfo, &mesh, 1); in onExecute()
/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/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 …]

1234567