Lines Matching refs:indexCount
178 int indexCount, uint16_t* indices) { in recordDraw() argument
179 if (vertexCount == 0 || indexCount == 0) { in recordDraw()
194 uint16_t* idxs = target->makeIndexSpace(indexCount, &indexBuffer, &firstIndex); in recordDraw()
199 memcpy(idxs, indices, indexCount * sizeof(uint16_t)); in recordDraw()
201 mesh->setIndexed(std::move(indexBuffer), indexCount, firstIndex, 0, vertexCount - 1, in recordDraw()
218 int64_t indexCount = 0; in onPrepareDraws() local
236 this->recordDraw(target, vertexCount, vertexStride, vertices, indexCount, indices); in onPrepareDraws()
238 indexCount = 0; in onPrepareDraws()
250 if (indexCount + currentIndices > maxIndices) { in onPrepareDraws()
251 maxIndices = std::max(indexCount + currentIndices, maxIndices * 2); in onPrepareDraws()
271 indices + indexCount); in onPrepareDraws()
273 indexCount += currentIndices; in onPrepareDraws()
275 if (vertexCount <= SK_MaxS32 && indexCount <= SK_MaxS32) { in onPrepareDraws()
276 this->recordDraw(target, vertexCount, vertexStride, vertices, indexCount, indices); in onPrepareDraws()