Lines Matching refs:primitivesCount
27 mHal.state.primitivesCount = 0; in Mesh()
40 uint32_t primitivesCount) : ObjectBase(rsc) { in Mesh() argument
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()
46 for (uint32_t i = 0; i < mHal.state.primitivesCount; i ++) { in Mesh()
59 mIndexBuffers = new ObjectBaseRef<Allocation>[mHal.state.primitivesCount]; in Mesh()
92 stream->addU32(mHal.state.primitivesCount); in serialize()
94 for (uint32_t pCount = 0; pCount < mHal.state.primitivesCount; pCount ++) { in serialize()
127 uint32_t primitivesCount = stream->loadU32(); in createFromStream() local
130 if (primitivesCount) { in createFromStream()
131 indexBuffers = new ObjectBaseRef<Allocation>[primitivesCount]; in createFromStream()
132 primitives = new RsPrimitive[primitivesCount]; in createFromStream()
135 for (uint32_t pCount = 0; pCount < primitivesCount; pCount ++) { in createFromStream()
147 Mesh *mesh = new Mesh(rsc, vertexBuffersCount, primitivesCount); in createFromStream()
152 for (uint32_t pCount = 0; pCount < primitivesCount; pCount ++) { in createFromStream()
160 if (primitivesCount) { in createFromStream()
173 for (uint32_t ct = 0; ct < mHal.state.primitivesCount; ct ++) { in render()
179 if (primIndex >= mHal.state.primitivesCount) { in renderPrimitive()
193 if (len < 1 || primIndex >= mHal.state.primitivesCount) { in renderPrimitiveRange()
208 for (uint32_t ct = 0; ct < mHal.state.primitivesCount; ct ++) { in uploadAll()