Home
last modified time | relevance | path

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

/frameworks/rs/driver/runtime/
Drs_mesh.c12 Mesh_t *mesh = (Mesh_t *)m.p; in rsgMeshGetVertexAllocationCount() local
13 if (mesh == NULL) { in rsgMeshGetVertexAllocationCount()
16 return mesh->mHal.state.vertexBuffersCount; in rsgMeshGetVertexAllocationCount()
21 Mesh_t *mesh = (Mesh_t *)m.p; in rsgMeshGetPrimitiveCount() local
22 if (mesh == NULL) { in rsgMeshGetPrimitiveCount()
25 return mesh->mHal.state.primitivesCount; in rsgMeshGetPrimitiveCount()
30 Mesh_t *mesh = (Mesh_t *)m.p; in rsgMeshGetVertexAllocation() local
31 if (mesh == NULL || index >= mesh->mHal.state.vertexBuffersCount) { in rsgMeshGetVertexAllocation()
35 rs_allocation returnAlloc = {mesh->mHal.state.vertexBuffers[index]}; in rsgMeshGetVertexAllocation()
43 Mesh_t *mesh = (Mesh_t *)m.p; in rsgMeshGetIndexAllocation() local
[all …]
/frameworks/rs/
DrsMesh.cpp64 mRSC->mHal.funcs.mesh.destroy(mRSC, this); in ~Mesh()
77 mRSC->mHal.funcs.mesh.init(mRSC, this); in init()
147 Mesh *mesh = new Mesh(rsc, vertexBuffersCount, primitivesCount); in createFromStream() local
148 mesh->assignName(name); in createFromStream()
150 mesh->setVertexBuffer(vertexBuffers[vCount].get(), vCount); in createFromStream()
153 mesh->setPrimitive(indexBuffers[pCount].get(), primitives[pCount], pCount); in createFromStream()
166 mesh->init(); in createFromStream()
167 mesh->uploadAll(rsc); in createFromStream()
169 return mesh; in createFromStream()
198 mRSC->mHal.funcs.mesh.draw(mRSC, this, primIndex, start, len); in renderPrimitiveRange()
DrsDriverLoader.cpp143 ret &= fn(RS_HAL_GRAPHICS_MESH_INIT, (void **)&rsc->mHal.funcs.mesh.init); in LoadHalTable()
144 ret &= fn(RS_HAL_GRAPHICS_MESH_DRAW, (void **)&rsc->mHal.funcs.mesh.draw); in LoadHalTable()
145 ret &= fn(RS_HAL_GRAPHICS_MESH_DESTROY, (void **)&rsc->mHal.funcs.mesh.destroy); in LoadHalTable()
Drs_hal.h350 } mesh; member
/frameworks/native/libs/renderengine/gl/
DGLESRenderEngine.cpp569 Mesh mesh(Mesh::TRIANGLES, c * 6, 2); in fillRegionWithColor() local
570 Mesh::VertexArray<vec2> position(mesh.getPositionArray<vec2>()); in fillRegionWithColor()
586 drawMesh(mesh); in fillRegionWithColor()
710 FloatRect GLESRenderEngine::setupLayerCropping(const LayerSettings& layer, Mesh& mesh) { in setupLayerCropping() argument
719 Mesh::VertexArray<vec2> cropCoords(mesh.getCropCoordArray<vec2>()); in setupLayerCropping()
730 const LayerSettings& layer, const Mesh& mesh) { in handleRoundedCorners() argument
768 drawMesh(mesh); in handleRoundedCorners()
771 drawMesh(mesh); in handleRoundedCorners()
778 drawMesh(mesh); in handleRoundedCorners()
923 Mesh mesh(Mesh::TRIANGLE_FAN, 4, 2, 2); in drawLayers() local
[all …]
DGLESRenderEngine.h126 void drawMesh(const Mesh& mesh) override;
160 FloatRect setupLayerCropping(const LayerSettings& layer, Mesh& mesh);
167 const Mesh& mesh);
/frameworks/rs/script_api/
Drs_graphics.spec112 summary: How to intepret mesh vertex data
114 Describes the way mesh vertex data is interpreted when rendering
136 Opaque handle to a RenderScript mesh object.
448 summary: Draw a mesh
450 Draw a mesh using the current context state.
452 If primitiveIndex is specified, draw part of a mesh using the current context state.
454 …If start and len are also specified, draw specified index range of part of a mesh using the curren…
456 Otherwise the whole mesh is rendered.
677 arg: rs_mesh mesh
687 Computes an axis aligned bounding box of a mesh object
[all …]
/frameworks/rs/script_api/include/
Drs_graphics.rsh138 * rs_primitive: How to intepret mesh vertex data
142 * Describes the way mesh vertex data is interpreted when rendering
185 * Opaque handle to a RenderScript mesh object.
750 * rsgDrawMesh: Draw a mesh
754 * Draw a mesh using the current context state.
756 * If primitiveIndex is specified, draw part of a mesh using the current context state.
758 …* If start and len are also specified, draw specified index range of part of a mesh using the curr…
760 * Otherwise the whole mesh is rendered.
763 * ism: mesh object to render
1024 * Computes an axis aligned bounding box of a mesh object
[all …]
/frameworks/compile/slang/tests/P_export_types_v20/
Dexport_types.rs26 rs_mesh mesh;
/frameworks/native/libs/renderengine/include/renderengine/
DRenderEngine.h161 virtual void drawMesh(const Mesh& mesh) = 0;
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp2707 nMeshGetVertexBufferCount(JNIEnv *_env, jobject _this, jlong con, jlong mesh) in nMeshGetVertexBufferCount() argument
2710 ALOGD("nMeshGetVertexBufferCount, con(%p), Mesh(%p)", (RsContext)con, (RsMesh)mesh); in nMeshGetVertexBufferCount()
2713 rsaMeshGetVertexBufferCount((RsContext)con, (RsMesh)mesh, &vtxCount); in nMeshGetVertexBufferCount()
2718 nMeshGetIndexCount(JNIEnv *_env, jobject _this, jlong con, jlong mesh) in nMeshGetIndexCount() argument
2721 ALOGD("nMeshGetIndexCount, con(%p), Mesh(%p)", (RsContext)con, (RsMesh)mesh); in nMeshGetIndexCount()
2724 rsaMeshGetIndexCount((RsContext)con, (RsMesh)mesh, &idxCount); in nMeshGetIndexCount()
2729 nMeshGetVertices(JNIEnv *_env, jobject _this, jlong con, jlong mesh, jlongArray _ids, jint numVtxID… in nMeshGetVertices() argument
2732 ALOGD("nMeshGetVertices, con(%p), Mesh(%p)", (RsContext)con, (RsMesh)mesh); in nMeshGetVertices()
2736 rsaMeshGetVertices((RsContext)con, (RsMesh)mesh, allocs, (uint32_t)numVtxIDs); in nMeshGetVertices()
2747 nMeshGetIndices(JNIEnv *_env, jobject _this, jlong con, jlong mesh, jlongArray _idxIds, jintArray _… in nMeshGetIndices() argument
[all …]
/frameworks/native/services/surfaceflinger/
DLayer.h361 void computeGeometry(const RenderArea& renderArea, renderengine::Mesh& mesh,
DLayer.cpp623 renderengine::Mesh& mesh, in computeGeometry() argument
641 renderengine::Mesh::VertexArray<vec2> position(mesh.getPositionArray<vec2>()); in computeGeometry()
/frameworks/rs/driver/
DrsdRuntimeStubs.cpp1064 void rsgMeshComputeBoundingBox(::rs_mesh mesh, argument
1068 rsrMeshComputeBoundingBox(rsc, (Mesh *)mesh.p, minX, minY, minZ, maxX, maxY, maxZ);