• Home
  • Raw
  • Download

Lines Matching refs:mHal

25     mHal.drv = NULL;  in Mesh()
26 mHal.state.primitives = NULL; in Mesh()
27 mHal.state.primitivesCount = 0; in Mesh()
28 mHal.state.indexBuffers = NULL; in Mesh()
29 mHal.state.indexBuffersCount = 0; in Mesh()
30 mHal.state.vertexBuffers = NULL; in Mesh()
31 mHal.state.vertexBuffersCount = 0; in Mesh()
41 mHal.drv = NULL; in Mesh()
42 mHal.state.primitivesCount = primitivesCount; in Mesh()
43 mHal.state.indexBuffersCount = primitivesCount; in Mesh()
44 mHal.state.primitives = new RsPrimitive[mHal.state.primitivesCount]; in Mesh()
45 mHal.state.indexBuffers = new Allocation *[mHal.state.indexBuffersCount]; in Mesh()
46 for (uint32_t i = 0; i < mHal.state.primitivesCount; i ++) { in Mesh()
47 mHal.state.primitives[i] = RS_PRIMITIVE_POINT; in Mesh()
49 for (uint32_t i = 0; i < mHal.state.indexBuffersCount; i ++) { in Mesh()
50 mHal.state.indexBuffers[i] = NULL; in Mesh()
52 mHal.state.vertexBuffersCount = vertexBuffersCount; in Mesh()
53 mHal.state.vertexBuffers = new Allocation *[mHal.state.vertexBuffersCount]; in Mesh()
54 for (uint32_t i = 0; i < mHal.state.vertexBuffersCount; i ++) { in Mesh()
55 mHal.state.vertexBuffers[i] = NULL; in Mesh()
58 mVertexBuffers = new ObjectBaseRef<Allocation>[mHal.state.vertexBuffersCount]; in Mesh()
59 mIndexBuffers = new ObjectBaseRef<Allocation>[mHal.state.primitivesCount]; in Mesh()
64 mRSC->mHal.funcs.mesh.destroy(mRSC, this); in ~Mesh()
67 delete[] mHal.state.vertexBuffers; in ~Mesh()
68 delete[] mHal.state.primitives; in ~Mesh()
69 delete[] mHal.state.indexBuffers; in ~Mesh()
77 mRSC->mHal.funcs.mesh.init(mRSC, this); in init()
89 stream->addU32(mHal.state.vertexBuffersCount); in serialize()
90 for (uint32_t vCount = 0; vCount < mHal.state.vertexBuffersCount; vCount ++) { in serialize()
91 mHal.state.vertexBuffers[vCount]->serialize(stream); in serialize()
94 stream->addU32(mHal.state.primitivesCount); in serialize()
96 for (uint32_t pCount = 0; pCount < mHal.state.primitivesCount; pCount ++) { in serialize()
97 stream->addU8((uint8_t)mHal.state.primitives[pCount]); in serialize()
99 if (mHal.state.indexBuffers[pCount]) { in serialize()
101 mHal.state.indexBuffers[pCount]->serialize(stream); in serialize()
176 for (uint32_t ct = 0; ct < mHal.state.primitivesCount; ct ++) { in render()
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()
196 if (len < 1 || primIndex >= mHal.state.primitivesCount) { in renderPrimitiveRange()
201 mRSC->mHal.funcs.mesh.draw(mRSC, this, primIndex, start, len); in renderPrimitiveRange()
205 for (uint32_t ct = 0; ct < mHal.state.vertexBuffersCount; ct ++) { in uploadAll()
206 if (mHal.state.vertexBuffers[ct]) { in uploadAll()
207 rsc->mHal.funcs.allocation.markDirty(rsc, mHal.state.vertexBuffers[ct]); in uploadAll()
211 for (uint32_t ct = 0; ct < mHal.state.primitivesCount; ct ++) { in uploadAll()
212 if (mHal.state.indexBuffers[ct]) { in uploadAll()
213 rsc->mHal.funcs.allocation.markDirty(rsc, mHal.state.indexBuffers[ct]); in uploadAll()
224 for (uint32_t ct=0; ct < mHal.state.vertexBuffersCount; ct++) { in computeBBox()
225 const Type *bufferType = mHal.state.vertexBuffers[ct]->getType(); in computeBBox()
233 posPtr = (float*)((uint8_t*)mHal.state.vertexBuffers[ct]->getPtr() + offset); in computeBBox()
289 *numVtx = sm->mHal.state.vertexBuffersCount; in rsaMeshGetVertexBufferCount()
294 *numIdx = sm->mHal.state.primitivesCount; in rsaMeshGetIndexCount()
299 rsAssert(vtxDataCount == sm->mHal.state.vertexBuffersCount); in rsaMeshGetVertices()
302 vtxData[ct] = sm->mHal.state.vertexBuffers[ct]; in rsaMeshGetVertices()
303 sm->mHal.state.vertexBuffers[ct]->incUserRef(); in rsaMeshGetVertices()
309 rsAssert(idxDataCount == sm->mHal.state.primitivesCount); in rsaMeshGetIndices()
312 va[ct] = sm->mHal.state.indexBuffers[ct]; in rsaMeshGetIndices()
313 primType[ct] = sm->mHal.state.primitives[ct]; in rsaMeshGetIndices()
314 if (sm->mHal.state.indexBuffers[ct]) { in rsaMeshGetIndices()
315 sm->mHal.state.indexBuffers[ct]->incUserRef(); in rsaMeshGetIndices()