Home
last modified time | relevance | path

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

/frameworks/rs/driver/
DrsdMeshObj.cpp128 void RsdMeshObj::renderPrimitiveRange(const Context *rsc, uint32_t primIndex, in renderPrimitiveRange() argument
130 if (len < 1 || primIndex >= mRSMesh->mHal.state.primitivesCount || mAttribCount == 0) { in renderPrimitiveRange()
161 const Allocation *idxAlloc = mRSMesh->mHal.state.indexBuffers[primIndex]; in renderPrimitiveRange()
170 RSD_CALL_GL(glDrawElements, mGLPrimitives[primIndex], len, GL_UNSIGNED_SHORT, in renderPrimitiveRange()
174 RSD_CALL_GL(glDrawElements, mGLPrimitives[primIndex], len, GL_UNSIGNED_SHORT, in renderPrimitiveRange()
178 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.h41 uint32_t primIndex, uint32_t start, uint32_t len) const;
DrsdRuntimeStubs.cpp312 static void SC_DrawMeshPrimitive(Mesh *m, uint32_t primIndex) { in SC_DrawMeshPrimitive() argument
314 rsrDrawMeshPrimitive(rsc, sc, m, primIndex); in SC_DrawMeshPrimitive()
317 static void SC_DrawMeshPrimitiveRange(Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len) { in SC_DrawMeshPrimitiveRange() argument
319 rsrDrawMeshPrimitiveRange(rsc, sc, m, primIndex, start, len); in SC_DrawMeshPrimitiveRange()
/frameworks/rs/
DrsMesh.cpp181 void Mesh::renderPrimitive(Context *rsc, uint32_t primIndex) const { in renderPrimitive()
182 if (primIndex >= mHal.state.primitivesCount) { in renderPrimitive()
187 if (mHal.state.indexBuffers[primIndex]) { in renderPrimitive()
188 … renderPrimitiveRange(rsc, primIndex, 0, mHal.state.indexBuffers[primIndex]->getType()->getDimX()); in renderPrimitive()
192 renderPrimitiveRange(rsc, primIndex, 0, mHal.state.vertexBuffers[0]->getType()->getDimX()); in renderPrimitive()
195 void Mesh::renderPrimitiveRange(Context *rsc, uint32_t primIndex, uint32_t start, uint32_t len) con… in renderPrimitiveRange() argument
196 if (len < 1 || primIndex >= mHal.state.primitivesCount) { in renderPrimitiveRange()
201 mRSC->mHal.funcs.mesh.draw(mRSC, this, primIndex, start, len); in renderPrimitiveRange()
DrsMesh.h79 void renderPrimitive(Context *, uint32_t primIndex) const;
80 void renderPrimitiveRange(Context *, uint32_t primIndex, uint32_t start, uint32_t len) const;
DrsScriptC_LibGL.cpp167 void rsrDrawMeshPrimitive(Context *rsc, Script *sc, Mesh *sm, uint32_t primIndex) { in rsrDrawMeshPrimitive() argument
172 sm->renderPrimitive(rsc, primIndex); in rsrDrawMeshPrimitive()
175 void rsrDrawMeshPrimitiveRange(Context *rsc, Script *sc, Mesh *sm, uint32_t primIndex, in rsrDrawMeshPrimitiveRange() argument
181 sm->renderPrimitiveRange(rsc, primIndex, start, len); in rsrDrawMeshPrimitiveRange()
DrsRuntime.h62 void rsrDrawMeshPrimitive(Context *, Script *, Mesh *, uint32_t primIndex);
64 uint32_t primIndex, uint32_t start, uint32_t len);
Drs_hal.h245 … void (*draw)(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len);
/frameworks/support/renderscript/v8/rs_support/
Drs_hal.h244 … void (*draw)(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len);