Home
last modified time | relevance | path

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

/frameworks/rs/
DrsMesh.cpp178 void Mesh::renderPrimitive(Context *rsc, uint32_t primIndex) const { in renderPrimitive()
179 if (primIndex >= mHal.state.primitivesCount) { in renderPrimitive()
184 if (mHal.state.indexBuffers[primIndex]) { in renderPrimitive()
185 … renderPrimitiveRange(rsc, primIndex, 0, mHal.state.indexBuffers[primIndex]->getType()->getDimX()); in renderPrimitive()
189 renderPrimitiveRange(rsc, primIndex, 0, mHal.state.vertexBuffers[0]->getType()->getDimX()); in renderPrimitive()
192 void Mesh::renderPrimitiveRange(Context *rsc, uint32_t primIndex, uint32_t start, uint32_t len) con… in renderPrimitiveRange() argument
193 if (len < 1 || primIndex >= mHal.state.primitivesCount) { in renderPrimitiveRange()
198 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.cpp159 void rsrDrawMeshPrimitive(Context *rsc, Mesh *sm, uint32_t primIndex) { in rsrDrawMeshPrimitive() argument
164 sm->renderPrimitive(rsc, primIndex); in rsrDrawMeshPrimitive()
167 void rsrDrawMeshPrimitiveRange(Context *rsc, Mesh *sm, uint32_t primIndex, in rsrDrawMeshPrimitiveRange() argument
173 sm->renderPrimitiveRange(rsc, primIndex, start, len); in rsrDrawMeshPrimitiveRange()
DrsRuntime.h63 void rsrDrawMeshPrimitive(Context *, Mesh *, uint32_t primIndex);
65 uint32_t primIndex, uint32_t start, uint32_t len);
Drs_hal.h348 … void (*draw)(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len);
/frameworks/rs/driver/
DrsdMeshObj.cpp132 void RsdMeshObj::renderPrimitiveRange(const Context *rsc, uint32_t primIndex, in renderPrimitiveRange() argument
134 if (len < 1 || primIndex >= mRSMesh->mHal.state.primitivesCount || mAttribCount == 0) { in renderPrimitiveRange()
165 const Allocation *idxAlloc = mRSMesh->mHal.state.indexBuffers[primIndex]; in renderPrimitiveRange()
174 RSD_CALL_GL(glDrawElements, mGLPrimitives[primIndex], len, GL_UNSIGNED_SHORT, in renderPrimitiveRange()
178 RSD_CALL_GL(glDrawElements, mGLPrimitives[primIndex], len, GL_UNSIGNED_SHORT, in renderPrimitiveRange()
182 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, size_t start, uint32_t len) const;