Home
last modified time | relevance | path

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

12

/frameworks/compile/libbcc/lib/Renderscript/runtime/
Drs_mesh.c10 Mesh_t *mesh = (Mesh_t *)m.p; in rsgMeshGetVertexAllocationCount() local
11 if (mesh == NULL) { in rsgMeshGetVertexAllocationCount()
14 return mesh->mHal.state.vertexBuffersCount; in rsgMeshGetVertexAllocationCount()
19 Mesh_t *mesh = (Mesh_t *)m.p; in rsgMeshGetPrimitiveCount() local
20 if (mesh == NULL) { in rsgMeshGetPrimitiveCount()
23 return mesh->mHal.state.primitivesCount; in rsgMeshGetPrimitiveCount()
28 Mesh_t *mesh = (Mesh_t *)m.p; in rsgMeshGetVertexAllocation() local
29 if (mesh == NULL || index >= mesh->mHal.state.vertexBuffersCount) { in rsgMeshGetVertexAllocation()
33 rs_allocation returnAlloc = {mesh->mHal.state.vertexBuffers[index]}; in rsgMeshGetVertexAllocation()
39 Mesh_t *mesh = (Mesh_t *)m.p; in rsgMeshGetIndexAllocation() local
[all …]
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
Dmesh.rs4 rs_mesh mesh;
14 _RS_ASSERT(rsgMeshGetVertexAllocationCount(mesh) == 2);
15 _RS_ASSERT(rsgMeshGetPrimitiveCount(mesh) == 3);
17 rs_allocation meshV0 = rsgMeshGetVertexAllocation(mesh, 0);
18 rs_allocation meshV1 = rsgMeshGetVertexAllocation(mesh, 1);
19 rs_allocation meshV2 = rsgMeshGetVertexAllocation(mesh, 2);
24 rs_allocation meshI0 = rsgMeshGetIndexAllocation(mesh, 0);
25 rs_allocation meshI1 = rsgMeshGetIndexAllocation(mesh, 1);
26 rs_allocation meshI2 = rsgMeshGetIndexAllocation(mesh, 2);
27 rs_allocation meshI3 = rsgMeshGetIndexAllocation(mesh, 3);
[all …]
/frameworks/base/libs/hwui/
DPatchCache.cpp79 Patch* mesh = NULL; in get() local
81 mesh = mCache.valueAt(index); in get()
84 if (!mesh) { in get()
89 mesh = new Patch(width, height, transparentQuads); in get()
90 mesh->updateColorKey(colorKey); in get()
91 mesh->copy(xDivs, yDivs); in get()
92 mesh->updateVertices(bitmapWidth, bitmapHeight, 0.0f, 0.0f, pixelWidth, pixelHeight); in get()
99 mCache.add(description, mesh); in get()
100 } else if (!mesh->matches(xDivs, yDivs, colorKey)) { in get()
102 mesh->updateVertices(bitmapWidth, bitmapHeight, 0.0f, 0.0f, pixelWidth, pixelHeight); in get()
[all …]
DLayerRenderer.cpp126 if (mLayer->mesh) { in generateMesh()
127 delete mLayer->mesh; in generateMesh()
130 mLayer->mesh = NULL; in generateMesh()
144 if (mLayer->mesh && mLayer->meshElementCount < elementCount) { in generateMesh()
145 delete mLayer->mesh; in generateMesh()
148 mLayer->mesh = NULL; in generateMesh()
153 if (!mLayer->mesh) { in generateMesh()
154 mLayer->mesh = new TextureVertex[count * 4]; in generateMesh()
164 TextureVertex* mesh = mLayer->mesh; in generateMesh() local
175 TextureVertex::set(mesh++, r->left, r->top, u1, v1); in generateMesh()
[all …]
DLayer.cpp30 mesh = NULL; in Layer()
48 if (mesh) delete mesh; in ~Layer()
DOpenGLRenderer.cpp998 TextureVertex* mesh = mCaches.getRegionMesh(); in composeLayerRegion() local
1021 setupDrawMeshIndices(&mesh[0].position[0], &mesh[0].texture[0]); in composeLayerRegion()
1032 TextureVertex::set(mesh++, r->left, r->top, u1, v1); in composeLayerRegion()
1033 TextureVertex::set(mesh++, r->right, r->top, u2, v1); in composeLayerRegion()
1034 TextureVertex::set(mesh++, r->left, r->bottom, u1, v2); in composeLayerRegion()
1035 TextureVertex::set(mesh++, r->right, r->bottom, u2, v2); in composeLayerRegion()
1042 mesh = mCaches.getRegionMesh(); in composeLayerRegion()
1127 Vertex mesh[count * 6]; in clearLayerRegions() local
1128 Vertex* vertex = mesh; in clearLayerRegions()
1149 setupDrawVertices(&mesh[0].position[0]); in clearLayerRegions()
[all …]
/frameworks/rs/scriptc/
Drs_mesh.rsh30 * Returns the number of allocations in the mesh that contain
33 * @param m mesh to get data from
34 * @return number of allocations in the mesh that contain vertex
44 * @param m mesh to get data from
45 * @return number of primitive groups in the mesh. This would
53 * Returns an allocation that is part of the mesh and contains
56 * @param m mesh to get data from
67 * @param m mesh to get data from
75 * Returns the primitive describing how a part of the mesh is
78 * @param m mesh to get data from
[all …]
Drs_graphics.rsh321 * Draw a mesh using the current context state. The whole mesh is
329 * Draw part of a mesh using the current context state.
330 * @param ism mesh object to render
337 * Draw specified index range of part of a mesh using the current context state.
338 * @param ism mesh object to render
400 * Computes an axis aligned bounding box of a mesh object
403 rsgMeshComputeBoundingBox(rs_mesh mesh, float *minX, float *minY, float *minZ,
409 rsgMeshComputeBoundingBox(rs_mesh mesh, float3 *bBoxMin, float3 *bBoxMax) {
411 rsgMeshComputeBoundingBox(mesh, &x1, &y1, &z1, &x2, &y2, &z2);
/frameworks/support/renderscript/v8/rs_support/scriptc/
Drs_mesh.rsh30 * Returns the number of allocations in the mesh that contain
33 * @param m mesh to get data from
34 * @return number of allocations in the mesh that contain vertex
44 * @param m mesh to get data from
45 * @return number of primitive groups in the mesh. This would
53 * Returns an allocation that is part of the mesh and contains
56 * @param m mesh to get data from
67 * @param m mesh to get data from
75 * Returns the primitive describing how a part of the mesh is
78 * @param m mesh to get data from
[all …]
Drs_graphics.rsh321 * Draw a mesh using the current context state. The whole mesh is
329 * Draw part of a mesh using the current context state.
330 * @param ism mesh object to render
337 * Draw specified index range of part of a mesh using the current context state.
338 * @param ism mesh object to render
400 * Computes an axis aligned bounding box of a mesh object
403 rsgMeshComputeBoundingBox(rs_mesh mesh, float *minX, float *minY, float *minZ,
409 rsgMeshComputeBoundingBox(rs_mesh mesh, float3 *bBoxMin, float3 *bBoxMax) {
411 rsgMeshComputeBoundingBox(mesh, &x1, &y1, &z1, &x2, &y2, &z2);
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DRenderable.java77 public void setMesh(Mesh mesh) { in setMesh() argument
78 mData.mesh = mesh; in setMesh()
80 mField.set_mesh(0, mData.mesh, true); in setMesh()
84 public void setMesh(String mesh, String indexName) { in setMesh() argument
85 mMeshName = mesh; in setMesh()
114 public void resolveMeshData(Mesh mesh) { in resolveMeshData() argument
115 mData.mesh = mesh; in resolveMeshData()
116 if (mData.mesh == null) { in resolveMeshData()
120 int subIndexCount = mData.mesh.getPrimitiveCount(); in resolveMeshData()
125 if (mData.mesh.getIndexSetAllocation(i).getName().equals(mMeshIndexName)) { in resolveMeshData()
Dcull.rs36 rsgMeshComputeBoundingBox(obj->mesh,
72 if (!rsIsObject(drawable->mesh) || drawable->cullType == CULL_ALWAYS) {
/frameworks/native/services/surfaceflinger/
DLayerDim.cpp63 LayerMesh mesh; in onDraw() local
64 computeGeometry(hw, &mesh); in onDraw()
66 glVertexPointer(2, GL_FLOAT, 0, mesh.getVertices()); in onDraw()
67 glDrawArrays(GL_TRIANGLE_FAN, 0, mesh.getVertexCount()); in onDraw()
DLayerBase.cpp236 void LayerBase::computeGeometry(const sp<const DisplayDevice>& hw, LayerMesh* mesh) const in computeGeometry()
245 if (mesh) { in computeGeometry()
246 tr.transform(mesh->mVertices[0], win.left, win.top); in computeGeometry()
247 tr.transform(mesh->mVertices[1], win.left, win.bottom); in computeGeometry()
248 tr.transform(mesh->mVertices[2], win.right, win.bottom); in computeGeometry()
249 tr.transform(mesh->mVertices[3], win.right, win.top); in computeGeometry()
251 mesh->mVertices[i][1] = hw_h - mesh->mVertices[i][1]; in computeGeometry()
358 LayerMesh mesh; in clearWithOpenGL() local
359 computeGeometry(hw, &mesh); in clearWithOpenGL()
361 glVertexPointer(2, GL_FLOAT, 0, mesh.getVertices()); in clearWithOpenGL()
[all …]
DLayerScreenshot.cpp145 LayerMesh mesh; in onDraw() local
146 computeGeometry(hw, &mesh); in onDraw()
160 glVertexPointer(2, GL_FLOAT, 0, mesh.getVertices()); in onDraw()
161 glDrawArrays(GL_TRIANGLE_FAN, 0, mesh.getVertexCount()); in onDraw()
/frameworks/rs/
DrsMesh.cpp64 mRSC->mHal.funcs.mesh.destroy(mRSC, this); in ~Mesh()
77 mRSC->mHal.funcs.mesh.init(mRSC, this); in init()
150 Mesh *mesh = new Mesh(rsc, vertexBuffersCount, primitivesCount); in createFromStream() local
151 mesh->setName(name.string(), name.size()); in createFromStream()
153 mesh->setVertexBuffer(vertexBuffers[vCount].get(), vCount); in createFromStream()
156 mesh->setPrimitive(indexBuffers[pCount].get(), primitives[pCount], pCount); in createFromStream()
169 mesh->init(); in createFromStream()
170 mesh->uploadAll(rsc); in createFromStream()
172 return mesh; in createFromStream()
201 mRSC->mHal.funcs.mesh.draw(mRSC, this, primIndex, start, len); in renderPrimitiveRange()
/frameworks/ex/carousel/java/com/android/ex/carousel/
DCarouselController.java167 public void setGeometryForItem(int n, Mesh mesh) { in setGeometryForItem() argument
169 mRenderScript.setGeometry(n, mesh); in setGeometryForItem()
181 Mesh mesh = mRenderScript.loadGeometry(resId); in setGeometryForItem() local
182 mRenderScript.setGeometry(n, mesh); in setGeometryForItem()
534 Mesh mesh = mRenderScript.loadGeometry(resId); in setDefaultGeometry() local
535 mRenderScript.setDefaultGeometry(mesh); in setDefaultGeometry()
565 Mesh mesh = mRenderScript.loadGeometry(resId); in setLoadingGeometry() local
566 mRenderScript.setLoadingGeometry(mesh); in setLoadingGeometry()
DCarouselViewHelper.java128 Mesh mesh = getGeometry(id); in handleMessage() local
129 if (mesh != null) { in handleMessage()
130 mSyncHandler.obtainMessage(SET_GEOMETRY_N, id, 0, mesh).sendToTarget(); in handleMessage()
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
DSimpleModelRS.java144 Mesh mesh = entry.getMesh(); in initMeshes() local
145 mMeshes.set_mMesh(i, mesh, false); in initMeshes()
146 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false); in initMeshes()
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
DFBOTestRS.java145 Mesh mesh = entry.getMesh(); in initMeshes() local
146 mMeshes.set_mMesh(i, mesh, false); in initMeshes()
147 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false); in initMeshes()
DFBOSyncRS.java146 Mesh mesh = entry.getMesh(); in initMeshes() local
147 mMeshes.set_mMesh(i, mesh, false); in initMeshes()
148 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false); in initMeshes()
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/
DShadersTestRS.java157 Mesh mesh = entry.getMesh(); in initMeshes() local
158 mMeshes.set_mMesh(i, mesh, false); in initMeshes()
159 mMeshes.set_mNumIndexSets(i, mesh.getPrimitiveCount(), false); in initMeshes()
/frameworks/base/docs/html/guide/topics/graphics/renderscript/
Dgraphics.jd25 <li><a href="#drawing-mesh">Drawing with a mesh</a></li>
80 such as shader and mesh building and memory allocation and binding. The SDK samples follow the
178 // the mesh to render
313 * Allocate memory for the particles to render and create the mesh to draw
530 <li><code>rsgDrawRect()</code>: Sets up a mesh and draws a rectangle to the screen. It uses the
533 <li><code>rsgDrawQuad()</code>: Sets up a mesh and draws a quadrilateral to the screen.</li>
535 <li><code>rsgDrawQuadTexCoords()</code>: Sets up a mesh and draws a quadrilateral to the screen
542 <h3 id="drawing-mesh">Drawing with a mesh</h3>
551 <li>Build the mesh with the {@link android.renderscript.Mesh.TriangleMeshBuilder} class, which
554 <li>Build the mesh using an {@link android.renderscript.Allocation} or a set of {@link
[all …]
/frameworks/compile/slang/tests/P_export_types/
Dexport_types.rs23 rs_mesh mesh;
/frameworks/base/graphics/jni/
Dandroid_renderscript_RenderScript.cpp1340 nMeshGetVertexBufferCount(JNIEnv *_env, jobject _this, RsContext con, jint mesh) in nMeshGetVertexBufferCount() argument
1342 LOG_API("nMeshGetVertexBufferCount, con(%p), Mesh(%p)", con, (RsMesh)mesh); in nMeshGetVertexBufferCount()
1344 rsaMeshGetVertexBufferCount(con, (RsMesh)mesh, &vtxCount); in nMeshGetVertexBufferCount()
1349 nMeshGetIndexCount(JNIEnv *_env, jobject _this, RsContext con, jint mesh) in nMeshGetIndexCount() argument
1351 LOG_API("nMeshGetIndexCount, con(%p), Mesh(%p)", con, (RsMesh)mesh); in nMeshGetIndexCount()
1353 rsaMeshGetIndexCount(con, (RsMesh)mesh, &idxCount); in nMeshGetIndexCount()
1358 nMeshGetVertices(JNIEnv *_env, jobject _this, RsContext con, jint mesh, jintArray _ids, int numVtxI… in nMeshGetVertices() argument
1360 LOG_API("nMeshGetVertices, con(%p), Mesh(%p)", con, (RsMesh)mesh); in nMeshGetVertices()
1363 rsaMeshGetVertices(con, (RsMesh)mesh, allocs, (uint32_t)numVtxIDs); in nMeshGetVertices()
1373 nMeshGetIndices(JNIEnv *_env, jobject _this, RsContext con, jint mesh, jintArray _idxIds, jintArray… in nMeshGetIndices() argument
[all …]

12