Lines Matching refs:indexBuffer
238 sk_sp<const GrBuffer> indexBuffer = nullptr;
242 indices = target->makeIndexSpace(fIndexCount, &indexBuffer, &firstIndex);
258 this->drawVertices(target, std::move(gp), std::move(vertexBuffer), firstVertex, indexBuffer,
290 sk_sp<GrBuffer> indexBuffer = this->isIndexed() ?
295 if (vertexBuffer && (!this->isIndexed() || indexBuffer)) {
297 std::move(indexBuffer), 0);
316 indexBuffer = rp->createBuffer(fIndexCount * sizeof(uint16_t),
320 indices = indexBuffer ? static_cast<uint16_t*>(indexBuffer->map()) : nullptr;
337 if (indexBuffer) {
338 indexBuffer->unmap();
343 rp->assignUniqueKeyToResource(indexKey, indexBuffer.get());
346 this->drawVertices(target, std::move(gp), std::move(vertexBuffer), 0, std::move(indexBuffer),
465 sk_sp<const GrBuffer> indexBuffer,
469 mesh->setIndexed(std::move(indexBuffer), fIndexCount, firstIndex, 0, fVertexCount - 1,