Lines Matching refs:elem
52 bool RsdMeshObj::isValidGLComponent(const Element *elem, uint32_t fieldIdx) { in isValidGLComponent() argument
54 if (elem->getFieldName(fieldIdx)[0] == '#') { in isValidGLComponent()
60 RsDataType dt = elem->getField(fieldIdx)->getComponent().getType(); in isValidGLComponent()
68 uint32_t arraySize = elem->getFieldArraySize(fieldIdx); in isValidGLComponent()
83 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init() local
84 for (uint32_t ct=0; ct < elem->getFieldCount(); ct++) { in init()
85 if (isValidGLComponent(elem, ct)) { in init()
106 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init() local
107 uint32_t stride = elem->getSizeBytes(); in init()
108 for (uint32_t fieldI=0; fieldI < elem->getFieldCount(); fieldI++) { in init()
109 const Component &c = elem->getField(fieldI)->getComponent(); in init()
111 if (!isValidGLComponent(elem, fieldI)) { in init()
116 mAttribs[userNum].offset = elem->getFieldOffsetBytes(fieldI); in init()
121 tmp.append(elem->getFieldName(fieldI)); in init()