Lines Matching refs:mHal
55 RsDataType dt = elem->mHal.state.fields[fieldIdx]->mHal.state.dataType;
63 uint32_t arraySize = elem->mHal.state.fieldArraySizes[fieldIdx];
77 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) {
78 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement();
79 for (uint32_t ct=0; ct < elem->mHal.state.fieldsCount; ct++) {
100 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) {
101 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement();
102 uint32_t stride = elem->mHal.state.elementSizeBytes;
103 for (uint32_t fieldI=0; fieldI < elem->mHal.state.fieldsCount; fieldI++) {
104 const Element *f = elem->mHal.state.fields[fieldI];
110 mAttribs[userNum].size = f->mHal.state.vectorSize;
111 mAttribs[userNum].offset = elem->mHal.state.fieldOffsetBytes[fieldI];
112 mAttribs[userNum].type = rsdTypeToGLType(f->mHal.state.dataType);
113 mAttribs[userNum].normalized = f->mHal.state.dataType != RS_TYPE_FLOAT_32;
116 tmp.append(elem->mHal.state.fieldNames[fieldI]);
130 if (len < 1 || primIndex >= mRSMesh->mHal.state.primitivesCount || mAttribCount == 0) {
135 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) {
136 const Allocation *alloc = mRSMesh->mHal.state.vertexBuffers[ct];
137 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
146 Allocation *alloc = mRSMesh->mHal.state.vertexBuffers[allocIndex];
147 DrvAllocation *drvAlloc = (DrvAllocation *)alloc->mHal.drv;
154 mAttribs[ct].ptr = (const uint8_t*)alloc->mHal.drvState.lod[0].mallocPtr;
161 const Allocation *idxAlloc = mRSMesh->mHal.state.indexBuffers[primIndex];
163 DrvAllocation *drvAlloc = (DrvAllocation *)idxAlloc->mHal.drv;
175 idxAlloc->mHal.drvState.lod[0].mallocPtr);
185 mGLPrimitives = new uint32_t[mRSMesh->mHal.state.primitivesCount];
186 for (uint32_t i = 0; i < mRSMesh->mHal.state.primitivesCount; i ++) {
187 switch (mRSMesh->mHal.state.primitives[i]) {