Lines Matching refs:primitives
24 mHal.state.primitives = NULL; in Mesh()
36 mHal.state.primitives = new Primitive_t *[mHal.state.primitivesCount]; in Mesh()
38 mHal.state.primitives[i] = new Primitive_t; in Mesh()
53 if (mHal.state.primitives) { in ~Mesh()
55 mHal.state.primitives[i]->mIndexBuffer.clear(); in ~Mesh()
56 delete mHal.state.primitives[i]; in ~Mesh()
58 delete[] mHal.state.primitives; in ~Mesh()
84 Primitive_t * prim = mHal.state.primitives[pCount]; in serialize()
121 RsPrimitive *primitives = NULL; in createFromStream() local
124 primitives = new RsPrimitive[primitivesCount]; in createFromStream()
128 primitives[pCount] = (RsPrimitive)stream->loadU8(); in createFromStream()
145 mesh->setPrimitive(indexBuffers[pCount].get(), primitives[pCount], pCount); in createFromStream()
154 delete[] primitives; in createFromStream()
176 Primitive_t *prim = mHal.state.primitives[primIndex]; in renderPrimitive()
203 if (mHal.state.primitives[ct]->mIndexBuffer.get()) { in uploadAll()
204 … rsc->mHal.funcs.allocation.markDirty(rsc, mHal.state.primitives[ct]->mIndexBuffer.get()); in uploadAll()
303 va[ct] = sm->mHal.state.primitives[ct]->mIndexBuffer.get(); in rsaMeshGetIndices()
304 primType[ct] = sm->mHal.state.primitives[ct]->mPrimitive; in rsaMeshGetIndices()
305 if (sm->mHal.state.primitives[ct]->mIndexBuffer.get()) { in rsaMeshGetIndices()
306 sm->mHal.state.primitives[ct]->mIndexBuffer->incUserRef(); in rsaMeshGetIndices()