Home
last modified time | relevance | path

Searched refs:primIndex (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/libs/rs/driver/
DrsdMeshObj.cpp133 void RsdMeshObj::renderPrimitiveRange(const Context *rsc, uint32_t primIndex, in renderPrimitiveRange() argument
135 if (len < 1 || primIndex >= mRSMesh->mHal.state.primitivesCount || mAttribCount == 0) { in renderPrimitiveRange()
166 Mesh::Primitive_t *prim = mRSMesh->mHal.state.primitives[primIndex]; in renderPrimitiveRange()
176 RSD_CALL_GL(glDrawElements, mGLPrimitives[primIndex], len, GL_UNSIGNED_SHORT, in renderPrimitiveRange()
180 RSD_CALL_GL(glDrawElements, mGLPrimitives[primIndex], len, GL_UNSIGNED_SHORT, in renderPrimitiveRange()
184 RSD_CALL_GL(glDrawArrays, mGLPrimitives[primIndex], start, len); in renderPrimitiveRange()
DrsdMesh.cpp41 void rsdMeshDraw(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t le… in rsdMeshDraw() argument
49 drv->renderPrimitiveRange(rsc, primIndex, start, len); in rsdMeshDraw()
DrsdMesh.h27 uint32_t primIndex, uint32_t start, uint32_t len);
DrsdMeshObj.h40 …void renderPrimitiveRange(const android::renderscript::Context *, uint32_t primIndex, uint32_t sta…
DrsdRuntimeStubs.cpp212 static void SC_DrawMeshPrimitive(Mesh *m, uint32_t primIndex) { in SC_DrawMeshPrimitive() argument
214 rsrDrawMeshPrimitive(rsc, sc, m, primIndex); in SC_DrawMeshPrimitive()
217 static void SC_DrawMeshPrimitiveRange(Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len) { in SC_DrawMeshPrimitiveRange() argument
219 rsrDrawMeshPrimitiveRange(rsc, sc, m, primIndex, start, len); in SC_DrawMeshPrimitiveRange()
/frameworks/base/libs/rs/
DrsMesh.cpp170 void Mesh::renderPrimitive(Context *rsc, uint32_t primIndex) const { in renderPrimitive()
171 if (primIndex >= mHal.state.primitivesCount) { in renderPrimitive()
176 Primitive_t *prim = mHal.state.primitives[primIndex]; in renderPrimitive()
179 renderPrimitiveRange(rsc, primIndex, 0, prim->mIndexBuffer->getType()->getDimX()); in renderPrimitive()
183 renderPrimitiveRange(rsc, primIndex, 0, mHal.state.vertexBuffers[0]->getType()->getDimX()); in renderPrimitive()
186 void Mesh::renderPrimitiveRange(Context *rsc, uint32_t primIndex, uint32_t start, uint32_t len) con… in renderPrimitiveRange() argument
187 if (len < 1 || primIndex >= mHal.state.primitivesCount) { in renderPrimitiveRange()
192 mRSC->mHal.funcs.mesh.draw(mRSC, this, primIndex, start, len); in renderPrimitiveRange()
DrsMesh.h74 void renderPrimitive(Context *, uint32_t primIndex) const;
75 void renderPrimitiveRange(Context *, uint32_t primIndex, uint32_t start, uint32_t len) const;
DrsScriptC_LibGL.cpp206 void rsrDrawMeshPrimitive(Context *rsc, Script *sc, Mesh *sm, uint32_t primIndex) { in rsrDrawMeshPrimitive() argument
211 sm->renderPrimitive(rsc, primIndex); in rsrDrawMeshPrimitive()
214 void rsrDrawMeshPrimitiveRange(Context *rsc, Script *sc, Mesh *sm, uint32_t primIndex, in rsrDrawMeshPrimitiveRange() argument
220 sm->renderPrimitiveRange(rsc, primIndex, start, len); in rsrDrawMeshPrimitiveRange()
DrsRuntime.h72 void rsrDrawMeshPrimitive(Context *, Script *, Mesh *, uint32_t primIndex);
74 uint32_t primIndex, uint32_t start, uint32_t len);
Drs_hal.h187 … void (*draw)(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len);