Lines Matching refs:elem
56 bool RsdMeshObj::isValidGLComponent(const Element *elem, uint32_t fieldIdx) { in isValidGLComponent() argument
59 RsDataType dt = elem->mHal.state.fields[fieldIdx]->mHal.state.dataType; in isValidGLComponent()
67 uint32_t arraySize = elem->mHal.state.fieldArraySizes[fieldIdx]; in isValidGLComponent()
82 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init() local
83 for (uint32_t ct=0; ct < elem->mHal.state.fieldsCount; ct++) { in init()
84 if (isValidGLComponent(elem, ct)) { in init()
105 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init() local
106 uint32_t stride = elem->mHal.state.elementSizeBytes; in init()
107 for (uint32_t fieldI=0; fieldI < elem->mHal.state.fieldsCount; fieldI++) { in init()
108 const Element *f = elem->mHal.state.fields[fieldI]; in init()
110 if (!isValidGLComponent(elem, fieldI)) { in init()
115 mAttribs[userNum].offset = elem->mHal.state.fieldOffsetBytes[fieldI]; in init()
120 tmp.append(elem->mHal.state.fieldNames[fieldI]); in init()